yashsingh1/xdaforums huggingface dataset:
[Honor 6, 6 Plus Q&A, Help & Troubleshooting] CherryDT:
Hello, I have the H60-L12 model with NFC, running stock B313 firmware. I already enabled NFC communication in the settings and I can see the NFC logo in the status bar.

However, when I try "NFC Tools" to read an NFC tag, or "Banking Card Reader" to read my credit cards' NFC chips, nothing happens.

What might be wrong?

Best regards,

CherryDT
[Sony Xperia M] thichthat:
Reserved

Useful information:

See 3rd post for disabling internal storage

List of old versions can be found here: https://drive.google.com/folderview?id=0B2-0MyP06DN5LWs1YWZudm5La3M&usp=sharing

Manually install method:

If you have problem with installing via apk file, try this method:

- Extract all files zip files from apk file

- In apk/assets/nui you will see a zip file. Extract and copy it to your phone.

- Reboot to recovery and flash method_zip.zip

- Reboot again.

Done!

Recommended setting:

Normal usage:

Use built-in undervolt table

CPU: max=1026MHz

governor=intellidemand

GPU: max=320MHz

io sched=zen

Battery saving:

CPU: max=810MHz

governor=conservative

Hard gaming:

Set all to max. It's easy for you.
[Sony Xperia M] thichthat:
MOD: Disable emulated storage (internal storage)

MOD: Disable emulated storage (internal storage)

FOR ANDROID 6.0+: http://xdaforums.com/showpost.php?p=63787343&postcount=845

This mod works on almost roms. I tested it on CM11, CM12, Bliss pop v2.3, AICP, CM12.1 (beta 2 and 3), Flex OS and XenonHD

Update: Maybe not works on CM12.1 nightly

Unlike init.d method, this method is more stable. It will disable the emulated storage and change default storage to your real sdcard.

To use this mod, you must have:

- A computer running Windows

- Java Runtime (jre) installed (to use apktool)

- Your xperia M using

NUI kernel

- You have to move ALL data from internal storage to sdcard before using this mod

- Download this file: http://www.mediafire.com/download/rj3vnokcbl8eyit/disable_emulated_storage_20150917_2.zip

Update log:

9/17/2015: Update apktool to v2.0.1. Fix problem on some nightly builds. Add zip align tool.

6/27/2015: Use 7z instead of zip1.exe

7/29/2015: Fix for dual SIM

7/30/2015: Adapted to v4.5

Guide:

Extract files from disable_emulated_storage.zip

Run 1Pulling_Files.bat and follow the instructions

After running 2Patching.bat, 3 files named backup.zip, NUI_MOD.zip and NUI_MOD_1.zip are generated

Flash NUI_MOD.zip

If it doesn't work, flash NUI_MOD_1.zip

If both files don't work, flash backup.zip

Enjoy! ;)

Notice:

If you want to remove your sdcard, turn off phone first.

Wiping dalvik cache is recommend

Pre-built

file (just flash it and enjoy):

RazorRC-2.0 (Thanks to [MENTION=6262655]Garv Maggu[/MENTION] ):

http://xdaforums.com/showpost.php?p=63414136&postcount=757

Tipsy OS V2.0 (Thanks to [MENTION=6262655]Garv Maggu[/MENTION] ):

http://xdaforums.com/showpost.php?p=63359465&postcount=751

For CyanideL RC20.0 (thanks to [MENTION=6262655]Garv Maggu[/MENTION])

http://xdaforums.com/showpost.php?p=63291657&postcount=739

For Archidroid_V3.1.3:

http://www.mediafire.com/download/y7r8zb67iybj0ud/NUI_MOD_Archidroid_3.1.3.zip

For xenonHD stable_2 06-06-2015:

http://www.mediafire.com/download/52wr93mc2z6mdhm/NUI_MOD_xenon_stable2.zip

For AOSP-20151807-DUALSIM:

Link: http://xdaforums.com/showpost.php?p=62119355&postcount=560

ROM info:

Parallax OS 1.0 (thanks to [MENTION=6262655]Garv Maggu[/MENTION] )

See screenshots below:
[Sony Xperia M] BlackArtsInc:
Thanks so much for this kernel! :)

What's the default voltage for any given CPU frequency and how much can we undervolt safely at 1.3Ghz for instance?

Not sent by me.
[Sony Xperia M] thichthat:
You can reboot your phone to have the default voltage value

This is my UV settings. I suggest using Kernel Tuner

From 384MHz to 702MHz I reduce 200mV

From 702 to 1.6GHz I reduce 150mV (Don't reduce more. Otherwise, your phone will reboot immediately)

384000: 750000
432000: 775000
486000: 775000
540000: 800000
594000: 800000
648000: 825000
702000: 825000
756000: 875000
810000: 875000
864000: 900000
918000: 900000
972000: 925000
1026000: 925000
1080000: 975000
1134000: 975000
1188000: 1000000
1242000: 1000000
1296000: 1025000
1350000: 1025000
1404000: 1037500
1458000: 1037500
1512000: 1050000
1620000: 1100000
[Sony Xperia M] BlackArtsInc:
Wiil try tonight and post the results.

My ROM at the moment is RR 537 CM12.

N.
[Sony Xperia M] BlackArtsInc:
Well...as is the case with almost every OC kernel I've tried, the second core is stuck at maximum frequency. Kernel Tuner cannot make the settings stick. Any suggestions?

Not sent by me.
[Sony Xperia M] thichthat:
That's because of the mpdecision included in almost qcom devices. You can try the newest Kernel Tuner 2015 (with green icon). Or you can use these command in terminal:

su
stop mpdecision
[Sony Xperia M] BlackArtsInc:
So I can use Kernel Tuner 2014 and be OK even after a reboot? OK thanks!

Not sent by me.
[Sony Xperia M] dastan4eva:
Sir

Thanks for the awesome kernel , everything works fine

Few requests

Can you check out and add commits from this kernel http://xdaforums.com/xperia-l/orig-development/kernel-thunderzap-4-1-r2-sound-control-t2390831 if you have time
[Sony Xperia M] thichthat:
Yes. I will include this feature in the 2.0 version. So you can use other apps to set CPU

Almost feature in that kernel was included in my kernel. Just enjoy the smoothness and longer battery life!
[Sony Xperia M] icoolguy1995:
SOME REMARKS:

1) Is undervolt is really working? You know i have tried undervolting from inside ACPUCLOCK file but i didn't find any difference.

2) AFAIK mpdecision maintains clock speed disabling it will give you max freqs all the time.

3) Use intelliplug it governs frequency better than mpdecision.
[Sony Xperia M] thichthat:
There's only one method to make sure UV work: If you under volt more than 250mV and change cpu freq again, your phone will reboot immediately! That because voltage table will be read when cpu freq is changed

About the mpdecision, I've found a way to disable it. I found this code in init.qcom.rc

Just delete this code and you'll have permission to control 2nd core.
[Sony Xperia M] imdkiller:
Will it improve battery life in cm12?
[Sony Xperia M] haresh311999:
Cannot download [MENTION=4929675]thichthat[/MENTION]
[Sony Xperia M] KHM90:
Links are working fine, there may b server problem... Try again?
[Sony Xperia M] haresh311999:
Ya It was a server problem...now its fine.....anyway thanks[emoji2] [emoji2]
[Sony Xperia M] manal.21sinha:
Finally a fully working OC Kernel for CM12!

Been waiting for this for so long. Just installed it moments ago. FindYanot's kernel was working fine except that there was Camera and Flashlight FC issues. But no such issues in this one, so I am delighted. No other feature seems to be broken at the moment.

One question: Where to install Kernel Tuner 2015 from? Kernel Tuner 2014 was updated on Feb 28, 2015 according to Play Store, so is that gonna work as needed? (override mpdecision and set on boot)
[Sony Xperia M] thichthat:
It's KT 2014. Sorry I forgot the version.

Btw, the doubletap2wake function is now working. 2.0 version will be release soon!
[Sony Xperia M] itsnie:
Dude, can you add intelliplug to v2.0?
[Sony Xperia M] thichthat:
OK I'll try to fix it. Also, the built-in script set the voltage setting automatically, so I think you shouldn't change it.

In CM builds, I can't use phone's shutter button to capture pictures because the phone recognize this button as focus. I think it will be better if we use it as camera button (in stock rom we used to use it in that way). So I think that people like it..
[Sony Xperia M] mszain:
Can i just delete those files(0/ and /obb) straight away ?

Because i already copied the sama file in my sdcard.
[Sony Xperia M] dim^n:
Not understand fully why that was made... Our camera button have 2 positions, it usefull to focus and then make capture. Focus by screen tap is not the same, the exposure will be differed a lot. Ive ckecked, camera focus and camera both acts like camera, and now we have 2 camera buttons :D

And another thing known for our device is annoying not correct auto focus, while recording video. I dont know another way to disable it by pressing hw focus. I use video record not often, but if I use it, I dont want to corrupt my recordings. Accidentally camera launches via easy to press focus button is third reason. It was usefull to launch camera by long-press cam button. And finally I lose some usefull features, that I configured via Xposed additions, like media play/pause, flashlight, call end, that was configured on camera+camera focus buttons. I think its decrease of functionality. As i understand, I cant bring it back, only downgrade to NUI 3.0?
[Sony Xperia M] thichthat:
OK I understand. I'll try to make a editable file in sysfs to control on/off this function. I still don't know why your device have 2 positions in camera button.. in my device (and my friend's device), we only can use it as focus button.. maybe we have diffrent hw button in contries.. :rolleyes:
[Sony Xperia M] dim^n:
Hmmm, its a surprise :eek: I dont hear that exists M with 1-position cam button since September 2013, all reviews dont tell anything but 2-position. Mostly because I'm living in Europe. Anyway thanks for future update, optional disable will be great!
[Sony Xperia M] apacher:
that true, 1-position will focus and 2 will shut
[Sony Xperia M] iks8:
Yes it has 2 positions

Btw

Our phone has two microphones but only one works on customs roms, can you enable second microphone for video recording?

Ps

Has anyone tried this kernel with aosp rom?
[Sony Xperia M] Damian11131:
Yes works on AOKP and XenonHD.

This kernel works on all ROMs from 4.4 :)
[Sony Xperia M] SunitTalwar:
with panaroid it works well since panaroid is based on aosp so it should work on all aosp roms
[Sony Xperia M] 8hodgsonkh:
Disable sd emulation thing

I installed the mod, but when i boot it looks like nothing has changed, how can i verify its worked? btw im using a college computer and i dont think it has java installed(it gave no errors when making the mod with the 2nd method.
[Sony Xperia M] thichthat:
I bought my phone in Vietnam. It's made from China..

Anw, this feature is disabled. The update is now pending on play store

About the 2nd microphone: all kernel support it, the only problem is your rom :rolleyes:

I haven't tried on AOSP yet, but I think it should work..
[Sony Xperia M] ososmam:
thank you for make the easy way for the nui_mod disable emulated storage but is there a way to make the sd faster(it lag sometimes) to play with very good experience

and second request if there away on kernel to use camera button as power button cause mine destroyed today :(
[Sony Xperia M] bluepinkpanther:
buy faster sd card?
[Sony Xperia M] ososmam:
I think there a way but I don't remember the details that we increase the memory cache to make it faster is that right or possible ?

about the camera button to be alternative for power button is this possible ?
[Sony Xperia M] thichthat:
The maximum speed of external sdcard is about 8mbps for write and 12mbps for reading. I tried adjusting buffer size but nothing changed.. maybe it's a hardware's limitation..

You can use camera as power button by editing your ROM:

Open /system/usr/keylayout/fih-gpio_key.kl

At the end you'll see that line: 0x2fe Focus and 0x210 Camera

Change "focus" and "camera" to "POWER". Save and reboot
[Sony Xperia M] ososmam:
thank you for that info but if I need to change it if the phone is power off
[Sony Xperia M] thichthat:
When your phone is off, linux kernel isn't loaded yet, so there's no method to change the power button.

Btw, new version is available on play store!

I'll test f2fs soon.
[Sony Xperia M] iks8:
on every rom that I tried videos are recorded using front microphone (cm11, aosp 4.4, cm12, aosp 5.1), second mic was working only on stock rom. nvm I tought it's kernel fault.

maybe your button is broken, side buttons on this phone are preatty low quality

btw is there a big difference in speed between internal storage and 10 class sd card?
[Sony Xperia M] 8hodgsonkh:
Getting bootloop using latest kernel and cm12.1, can someone who's successfully done it in cm12.1 send me their niumod.zip please
[Sony Xperia M] iks8:
well I tried it on aosp and it works but again I think there is something wrong with graphic. ui is less smoth than on stock kernel. I belive that gpu oc is breaking something and this higher gpu freq isn't giving any performance boost. I had the same issue when I tried it on cm11 (but with older version)
[Sony Xperia M] sidsharma2201:
Please post this kernel

Hey I'm noob here. I request to you compile stock kernel of XenonHD ROM ( I know you use it too) with no tweaks, just low brightness.

Agree some had issues with it but it was only feature i was thriving ( not much of a gamer anymore).

Please just pack a simple kernel with default frequencies and LOW MINIMUM BRIGHTNESS.

Thanks :)
[Sony Xperia M] thichthat:
1. OK. I'm trying to fix this issue.

2. I bought a second-hand phone. Maybe that's why it's broken.

3. Yes. You can use A1 SD Benchmark to check that. The average speed of internal storage is about 40MB/s, but sdcard is only about 8 to 12MB/s.

Tomorrow I tried to find the codes that control speed of memory. For internal they set it to UHS_DDR50, and sdcard is UHS_SDR12

Can anyone having an UHS-I sdcard make a benchmark?
[Sony Xperia M] thichthat:
Never ask again. I don't have much time to make kernels for individual
[Sony Xperia M] mszain:
Will i get bootloop if i update to v3.3, or its alreaady safe?.

Ive disabled my emulated storage and now my microsd become usefull:D
[Sony Xperia M] dim^n:
I use it. Transcend 32G is nearly 2x faster than 32G class10, ~1,5G nandroid backup via online nandroid is ready for 4 minutes instead of 7. I run A1 SD Benchmark on microsd Transcend UHS-1 32G and average result is 22mb/s read and 12 mb/s for write. Huh, the only speed of that 32G class 10 inserted in not slow tf701 tab is 20/9 Oo Maybe the reason in cache and i/o governor?
[Sony Xperia M] thichthat:
It's safe since V3.2_r1

The reason is not in cache and i/o. That's because the phone will decide which bus speed should be used. The lower speed (max=12MB/s) is good for class 10 sdcard. I'm trying to force my phone to recognize class 10 sdcard as UHS-I sdcard but didn't success :(
[Sony Xperia M] iks8:
[MENTION=4929675]thichthat[/MENTION]

mine sandisk class 10 uhs1 scored 31mb/s read and 10.3 mb/s write but on stock kernel

btw what is your statement about graphic performance? I tried your kernel yesterday and I've noticed that us is noticeable more laggy. I reflashed stock kernel and all was fine again.
[Sony Xperia M] thichthat:
I haven't tried it on CM12 and CM11 yet. Maybe you should try using other governor
[Sony Xperia M] dim^n:
Hm, speeding up sdcard is something new :D Good luck with it!

Try to use kernel tweaker or device control to set 320mHz to video core, its enough.
[Sony Xperia M] AndyPhoenix9879:
I can't seem to get the disable_internal_storage script to work D: It always say permission denied for pushing the NUI Mod.

EDIT: I tried pushing that file manually, got stuck in loading the apps during boot up. Restore nandroid backup and tried again, it said error so I manually added the files to the folder and re-run it. I got this hell long of Warning: String " bla bla bla " does not have a default translation. Am I missing something else?
[Sony Xperia M] bluemeda:
not work for XMD.

network signal is missing :(
[Sony Xperia M] thichthat:
Anyone else try it on XMD? In my country, finding a XMD is very difficult
[Sony Xperia M] thichthat:
You got "permission denied" error when Pulling or Pushing files?

Did you use the correct version of it (disable_emulated_storage_4.zip)? Older version will 100% not work (Only work if you have installed FPC to your computer)

Which rom you are using? I heard someone said that they cannot use this mod on CM12.1 nightlies

Don't worry about these warning. It's normal in apktool. That's because some texts didn't be translated into english.
[Sony Xperia M] AndyPhoenix9879:
Sorry, my mistake for using the older one of your mod, this time with the latest mod, the files were pushed successfully but it didn't boot into TWRP nor can I find the files it pushed! Using FlexOS (outdated one tho, could that be the problem? Flashing new or just updating it gives me a very long boot up time, that's why I never bothered on updating it)
[Sony Xperia M] meohen1989:
May be just my feeling.

Using NUI Kernel with xeon Rom makes phone very slow and not smooth any more :/ .
[Sony Xperia M] thichthat:
I just add feature, not edit many things in source code. Maybe that's because you didn't set correctly cpu settings.

Btw, I've just re-flash newest version of xenonHD and re-install the kernel. It works well. Max cpu freq set to 810MHz with conservative governor and gpu is 320MHz. No lag for me and battery life is good (I only use some simple feature, not hard gaming).
[Sony Xperia M] dim^n:
Ive encountered again old bug with program https://play.google.com/store/apps/details?id=com.farproc.wifi.analyzer&hl=ru

It has too slow update time, and this is a kernel problem, I desided it, when installed Elixer kernel on stock rom. AICP kernel has normal value of some WIFI update interval, and NUI kernel has too low.
[Sony Xperia M] thichthat:
I didn't change these settings. It's the same value with CM's stock kernel.
[Sony Xperia M] mszain:
i set both of the cpu to 1,2 ghz with ondemand governor.

Changed these parameters : sampling_down_factor: 40,up_treshold_multi_core:50,input_boost n optimal_freq:702000.

I also set gpu freq to 320 and ioscheduler to sioplus.

Running smooth so far except for the heating problem especially while playing coc.
[Sony Xperia M] thichthat:
New version is available on play store!!!!

What's new?

Remove CM11 support. That's because someone reported that the kernel will make CM11 runs slower.

Add some new settings (only for Nui kernel).

Revert to stock microphone settings.
[Sony Xperia M] dim^n:
Can you set it to min possible? Its really slow! Same problem on tab, in any programm its annoying to have unwanted waitings.

Bad idea. So, if Ive installed it (I can get a repack anyway), my device becomes a brick?
[Sony Xperia M] thichthat:
I still can't get the keyword to find this setting in source code. Can you explain more clearly about this problem? Or can you attach a kmsg or logcat?

I don't understand what you mean. I tested the newest install apk in my phone and I got no error. If your phone gets brick, you can re-flash stock kernel via fastboot.
[Sony Xperia M] dim^n:
Wifi Analyzer is a programm where I can view real-time diagram with wifi aps, I use it for search of open aps. Some value in kernel dont let the app to make fast updates of diagram, and it becames useless. In programm I can change update rate from L0 to L5, L0 is fastest. Its definitely kernel problem, on old Optimus One with cm7 it updates as fast as possible. I know, that problem goes from CM team, but in AICP kernel devs 100% fixed that. Not sure if the name of dat setting can be in logs.

I mean, U stop support for cm11? Can I brick device after installation of your kernel?
[Sony Xperia M] allrested:
It's work on my XMD with Single-sim firmware on flexOS, but i've got weird bug with the screen brightness. The screen become unstable when lower than 60%. The screen going dimmed and brighter in just a second. And sometimes it can't wake from sleep when using smartassv2 gov.
[Sony Xperia M] Agu_Ra:
Just installed kernel. dt2w is cool future, I'll keep it testing. But is there way to add it to the system settings? Writing it in build.prop for example? I'd make init.d script to turn it on on boot, but AFAIK init.d doesn't work on our device on CM.
[Sony Xperia M] thichthat:
I've just tested this app. Update interval is pretty fast (for L0 speed, it update every <2 secs). Can you run the app and send me your kmsg?

The apk app can not longer be installed on cm11. You can still install it on cm11 or stock 4.3 using manually method. But I don't recommend.
[Sony Xperia M] thichthat:
Smartassv2 is still for testing (please read changelog). About brightness problem, you can try adjusting minimum brightness setting in settings menu.

dt2w feature is still very unstable and it can make battery drain. I'll support running init.d on boot in next version.
[Sony Xperia M] Agu_Ra:
But it works kind of good, sometimes it needs 2 tries to wake the screen, but my power key is broken a bit, so it also works not properly. I was surprised, that it doesn't lose its functionality in deep sleep, even in morning I waked the screen from one try. About battery drain, for the one night battery level changed from 41 to 25, but it may be governor's bug (smartass). BTW, when bat. level is about to 40 or lower it always drains too fast, I think it is power controller issue. So, needs more testing. And one more time, thank you for your work, especially for bringing this function to our device.

About init.d, it doesn't work on our device for some reason, I tried adding script for enabling dt2w, but no success (script just doesn't run at start, I added string echo 'init.d' >> /storage/sdcard1/init.log to check does it work at all, but it doesn't, and when I run script manually, everything works).
[Sony Xperia M] dim^n:
1. Ok, I'll try.

2. What Ive said, its bad idea, leaving many people without updates. Not all who is running KK encountered problems, such as me, and who have bugs should 1. flash original kernel 2. use this with bugs 3. manually search solutions 4. wait for updates 5. use NUI with L etc. And there is enough reports about problems on L, thats why U should disable apk install for L too :D Ive repack it into zip, cause apk never installs a kernel (some error, I dont mind).
[Sony Xperia M] thichthat:
OK I'll include cm11 support in next version. If you have problem with installing via apk file, can you describe the error? Or can you send me the install log in /system/kernel/nui/LOG.txt? Thanks.
[Sony Xperia M] dim^n:
After 10-15 secs of third step it says, "thats an error, check logs". There is no logs in that path...

About wifi analyzer, Ive desided, that it works same as on your device, so you can test it with all your tools which I dont have. 2-3 seconds is too big for me, its not some coinsidence, that in aicp and others it set to less than a second.
[Sony Xperia M] rspousta:
Problems in CM11

On previous versions I had problems with installing on CM11 too. Files was extracted on sdcard, but they wasn't copied into /system/kernel/nui (folder was void). I've upgraded to CM12.1 recetly and I have no problems with this kernel. Thank you for your work.
[Sony Xperia M] thichthat:
Ok. I recently had the same problem. I saw the problem in the code and fixed it. New version will be release after I resolve problem with init.d.

I'm now having lots of pratice so that I don't have much time to spend on computer. I will still update it as soon as I can. Thanks for using my kernel!
[Sony Xperia M] KHM90:
We need to move all Internal Data to External "SDcard" OR "SDcard/0" for Swapping the storage?
[Sony Xperia M] thichthat:
I've just uploaded new version. It's being verified and will be available in several hours.

[MENTION=5988636]dim^n[/MENTION] : Sorry I still can't find this parameter in the kernel source. Maybe that's because AICP haven't updated wifi driver yet. I won't downgrade it because it's too complicate.
[Sony Xperia M] thichthat:
Just copy it to the root or your sdcard. While init.d method links 0 folder to /data, this method directly mounts your sdcard as primary storage.

If you forget, your data will NOT be lost. It's still in /data/media/0 so you can move it to your real sdcard.

Don't forget to move /data/media/obb to /sdcard/Android/obb. This folder keeps games' data.
[Sony Xperia M] KHM90:
Many Thanks for Help:)
[Sony Xperia M] itsnie:
I still not get update from playstore :crying: