[APP] Nfc.apk active while Screen locked

mercurio.

Senior Member
Mar 31, 2011
119
43
0
is there some way to patch the nfc app so that the nfc sound gets disabled? (and maybe the phone vibrates instead)
 
Last edited:

shaftenberg

Senior Member
Jul 31, 2010
690
738
0
Cologne
You can change the .ogg-files in /res/raw - easiest way is to take a quiet tone and rename it to "start.ogg".
Implement vibration is also possible, you have to edit NfcService.smali then.
 

mercurio.

Senior Member
Mar 31, 2011
119
43
0
You can change the .ogg-files in /res/raw - easiest way is to take a quiet tone and rename it to "start.ogg".
Implement vibration is also possible, you have to edit NfcService.smali then.
i changed the files in res/raw/ repacked and resigned the app but it fcs all the time. any hints how to solve this?
 

mercurio.

Senior Member
Mar 31, 2011
119
43
0
Don't sign, it is a system app!
thanks for the fast reply. is it ok if i try like below?

*extrackt the app
*replace the ogg files
*compress the app
*rename from zip to apk
*copy to /system/app
*set permissions to 0644
*set owner to root

edit:
i tried the steps above. the nfc service works but what's strange is that, although i double-checked that the app with the modified sounds was installed and i even wiped the apps data, davilk cache and cache, it still uses the old nfc sounds.
 
Last edited:

mercurio.

Senior Member
Mar 31, 2011
119
43
0
Don't sign, it is a system app!
i am still trying to mod your nfc.apk with my custom sounds and i didn't succeed so far. the app keeps crashing while initializing the sound pool. do you have any ideas what i'm doing wrong and could you may if i upload the file have a look.

thanks
 

Le_Poilu

Senior Member
Dec 9, 2010
238
66
0
le-poilu.whykywa.com
i am still trying to mod your nfc.apk with my custom sounds and i didn't succeed so far. the app keeps crashing while initializing the sound pool. do you have any ideas what i'm doing wrong and could you may if i upload the file have a look.

thanks
I tried it too, and I have the same issue. app is crashing as soon as I change the default sound...:crying:
 

mercurio.

Senior Member
Mar 31, 2011
119
43
0
I've modded the policy of Nfc.apk, so that the Nfc service is active even when screen is locked. Now you don't have to unlock anymore if you press the phone against a tag.

Screen must be "on" for sure, as Nfc is never active when phone is in standby - it would never enter deep sleep then.

Flash in CWM, odexed or deodexed Jelly Bean, enjoy!
If you encounter problems, I attached the original Nfc.apk too, so you can roll back whenever you want.

Update: added a fixed version, some had problems with the other. It works on odexed and deodexed systems.
i just stumbled over this mod:
http://forum.xda-developers.com/showthread.php?t=2122019

it enables the detection of tag removal. do you may want to add it to your mod?