Attached is a version for CM10 based JellyBean ROMs. This should work on CM10, AOKP and similar ROMs. Only the screenoff version is available, lockscreen version doesn't work. Make a backup of your Nfc.apk before applying this one!
For Stock JB ROMs use the modded apk in http://forum.xda-developers.com/show...&postcount=112
1. backup your /system/app/Nfc.apk
2. push Nfc_screenoff.apk to /system/app/Nfc.apk or use a root-enabled file manager to replace the file
For reference I'm also attaching a .diff of the changes I made. If you try this at home it's important to (bak)smali the classes.dex file and replace it in the original apk, recompiling it as a whole always broke NFC functionality for me.
I managed to get this working on my gsm GNex running stock Jelly Bean, by manually applying the changes in XlAfbk's diff file to the Nfc.apk/odex files in my phone. I'm attaching my modded apk here for others running stock JB to try, but of course, I make no guarantees that it will work for everyone.
One thing to be aware of (as it tripped me up the first time I tried). If you use a file browser with root access to copy this into your /system/app directory, you may need to adjust permissions on it after copying before it will work. Permissions should be rw-r--r--.
Also, of course make sure to backup your original files (and if you copied them to another directory, you may need to reset the permissions on your backed up files after you restore them.)
|Thread Tools||Search this Thread|