5,598,171 Members 43,122 Now Online
XDA Developers Android and Mobile Development Forum

[MOD] NFC With the Screen Off

Tip us?
 
khaffner
Old
#131  
Junior Member
Thanks Meter 0
Posts: 11
Join Date: Jul 2010
I can confirm that the nfcmod_screenoff.zip does NOT work on Samsung Nexus S with official Android 4.1.1 (JRO03E). Nor did the nfcmod_stock.zip. Luckily, I did a full backup before testing
 
XlAfbk
Old
#132  
XlAfbk's Avatar
Senior Member
Thanks Meter 251
Posts: 1,199
Join Date: Aug 2010
guessing from the filenames you just installed the files from first post without even reading it... Stock JB version is in http://forum.xda-developers.com/show...&postcount=112
maguro (GNex), mako (N4), manta (N10), all on CM11 nightlies, faux m kernel.
 
dwreck420
Old
#133  
Member
Thanks Meter 8
Posts: 95
Join Date: Nov 2008
Location: Richmond, VA

 
DONATE TO ME
Exclamation Battery Life?

Quote:
Originally Posted by XlAfbk View Post
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

Install instructions:
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
3. reboot

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.
Do you think this will increase battery usage?
 
XlAfbk
Old
#134  
XlAfbk's Avatar
Senior Member
Thanks Meter 251
Posts: 1,199
Join Date: Aug 2010
nope, it won't.

BTW, CM10 and AOKP have added a NFC mode option which enables users to choose when NFC should be active: unlocked, screen on, always.
maguro (GNex), mako (N4), manta (N10), all on CM11 nightlies, faux m kernel.
 
Beast84
Old
#135  
Beast84's Avatar
Senior Member
Thanks Meter 21
Posts: 979
Join Date: Oct 2007
Location: Albuquerque

 
DONATE TO ME
Quote:
Originally Posted by XlAfbk View Post
nope, it won't.

BTW, CM10 and AOKP have added a NFC mode option which enables users to choose when NFC should be active: unlocked, screen on, always.
When was this added to CMX? I know AOKP has it & I read CM was implementing it but I haven't seen it
His
Phone: Galaxy Note 3
ROM: Stainless
Recovery: TWRP


Hers
Phone: Galaxy S III
ROM: CM11
Recovery: TWRP


Gtalk: oppositeofh2o

Dropbox - Sign up for free!
 
pittnuma
Old
#136  
pittnuma's Avatar
Senior Member
Thanks Meter 9
Posts: 108
Join Date: Dec 2009
Location: Ripon, UK
Quote:
Originally Posted by XlAfbk View Post
nope, it won't.

BTW, CM10 and AOKP have added a NFC mode option which enables users to choose when NFC should be active: unlocked, screen on, always.
Been trying to find this, where is the setting within cm10?

Sent from my Galaxy Nexus using xda app-developers app
Darren

Google Nexus (Cyanogen Mod10 Nightlies)
Archos 101 G9 (Rooted-Stock)
 
XlAfbk
Old
#137  
XlAfbk's Avatar
Senior Member
Thanks Meter 251
Posts: 1,199
Join Date: Aug 2010
hm, it seems that it's only in Euroskank. Thought I had read it in an CM nightly changelog. My bad!
maguro (GNex), mako (N4), manta (N10), all on CM11 nightlies, faux m kernel.
 
XlAfbk
Old
#138  
XlAfbk's Avatar
Senior Member
Thanks Meter 251
Posts: 1,199
Join Date: Aug 2010
Default CM10 version, updated

CM10 recently (in cm-10-20120831-NIGHTLY) changed something about Nfc.apk, so here's the new mod
Attached Files
File Type: apk Nfc_screenoff.apk - [Click for QR Code] (212.2 KB, 403 views)
maguro (GNex), mako (N4), manta (N10), all on CM11 nightlies, faux m kernel.
The Following 10 Users Say Thank You to XlAfbk For This Useful Post: [ Click to Expand ]
 
Royal2000H
Old
#139  
Royal2000H's Avatar
Senior Member
Thanks Meter 26
Posts: 197
Join Date: Apr 2010
Quote:
Originally Posted by je55ter View Post
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.)
Quote:
Originally Posted by XlAfbk View Post
rename your /system/app/Nfc.apk to Nfc.bak
if you have a /system/app/Nfc.odex rename it to Nfc.odex.bak
Push Nfc-screenoff.apk to /system/app/Nfc.apk
reboot

I can confirm as well that following these instructions does not work on Bugless Beast (Jelly Bean) on my VZW Galaxy Nexus, which is supposed to be as close to stock as possible. (It is not based off CM). I even wiped cache and dalvik cache. NFC completely doesn't work with this file and the NFC options disappear from the settings menu too.
 
OpusX11
Old
#140  
Senior Member
Thanks Meter 11
Posts: 165
Join Date: Jan 2011
Quote:
Originally Posted by XlAfbk View Post
CM10 recently (in cm-10-20120831-NIGHTLY) changed something about Nfc.apk, so here's the new mod
Just curious if you were planning on releasing a screen-on/lockscreen version?

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes