NFC on screenoff and lockscreen - SGSII Skyrocket

Search This thread

StephanSch

Senior Member
Dec 24, 2007
469
341
Berlin
I modified the Nfc.apk of different bases and ROMs to offer you the ability to use the NFC chip of your Samsung Galaxy SII Skyrocket not only while you are active but also while the screen is off and/or while the lockscreen is shown.

You have three options when to use NFC:
  • screen off
  • lock screen
  • unlocked


USAGE
  1. Rename the Attachment to Nfc.apk
  2. Backup your /system/app/Nfc.apk and Nfc.odex (if existing)
  3. Delete /system/app/Nfc.odex (if existing)
  4. Replace the original in /system/app - to keep permission use adb:
    • adb remount
    • adb push Nfc.apk /system/app
  5. Reboot phone (adb reboot)
  6. Disable NFC
  7. Enable NFC

The compatibility depends on the framework/base. If your ROM has the same specifications like one existing you can use the posted.
If none of the version work (test it!) make an Feature Request


Changelog

20.10.2013 - added APKs for CM10.2
20.10.2013 - imported into DevDB
17.02.2013 - added APKs for CM10.1
17.02.2013 - thread opened



Download
Please don't forget to thank if it works, if not we will make it work.


XDA:DevDB Information
NFC on screenoff and lockscreen - SGSII Skyrocket, a Tool/Utility for the AT&T Samsung Galaxy S II Skyrocket SGH-I727

Contributors
StephanSch

Version Information
Status: Stable

Created 2013-10-20
Last Updated 2013-10-20
 

ganja_guru

Senior Member
May 3, 2011
193
69
Re: [MOD] NFC on screenoff and lockscreen - SGSII Skyrocket

Thanks, works perfectly. I wonder if there is significantly more battery usage as a result of keeping NFC polling on during screen off.

Sent from my SAMSUNG-SGH-I727 using xda app-developers app
 

StephanSch

Senior Member
Dec 24, 2007
469
341
Berlin
AW: [MOD] NFC on screenoff and lockscreen - SGSII Skyrocket

Some were in the other threads, too. But until now nobody found some

Sent from my EndeavorU using xda premium
 

bumbernut

Senior Member
Jul 20, 2008
235
14
Re: [MOD] NFC on screenoff and lockscreen - SGSII Skyrocket

Is there any chance you could make this embryo 6.3?

This is a mod i could really use.

Sent from my SAMSUNG-SGH-I727 using Tapatalk 2
 

ganja_guru

Senior Member
May 3, 2011
193
69
Any chance someone can make this simpler to install?

I'm no developer. But I will attempt it.. with using ADB and all that..

Use any root explorer, copy the apk and paste it in /system/app and then long press on the file and fix permissions so that the permissions look similar to the other apks' in /system/app which is r w - r - - r - -
 

austinm08

Senior Member
Aug 22, 2007
157
3
Wichita, KS
www.austinmarti.net
Use any root explorer, copy the apk and paste it in /system/app and then long press on the file and fix permissions so that the permissions look similar to the other apks' in /system/app which is r w - r - - r - -

Okay, will try that. Thanks!

EDIT:
Doing so disabled NFC functionality altogether! I copied and pasted the screen off/lockscreen/screen on one and renamed to Nfc.apk and set permissions to rw- r-- r-- and NFC is gone. So I reverted to the backup of the original.

EDIT 2:
Oh, probably because I'm on Android 4.1.2 :( I guess I need to flash CM 4.2
 
Last edited:

drago10029

Senior Member
Nov 19, 2008
1,062
207
Phazon Mines
Hey I'm having NFC wakelock issue and an issue changing permissions. Whenever I attempt to change permissions I got an error saying that the file system might be restricting it.

I'm running Beanstalk ROM latest version. I've used 2 different root explorer and the same error -__-

suggestions guys please? thanks! I would rather not do ADB.
 

andTab

Senior Member
Nov 20, 2011
691
90
Hey I'm having NFC wakelock issue and an issue changing permissions. Whenever I attempt to change permissions I got an error saying that the file system might be restricting it.

I'm running Beanstalk ROM latest version. I've used 2 different root explorer and the same error -__-

suggestions guys please? thanks! I would rather not do ADB.

Same here. I then reboot into recovery and run fix permissions.

I also noticed BIG battery drain, even though I am only using the lockscreen one which shouldn't affect battery life that much ...
 
  • Like
Reactions: Jchef

andTab

Senior Member
Nov 20, 2011
691
90
Same here. I then reboot into recovery and run fix permissions.

I also noticed BIG battery drain, even though I am only using the lockscreen one which shouldn't affect battery life that much ...

No ideas how to fix the battery drain issue?
It's severe ... (30% drop sometimes within 1 hour)
 

StephanSch

Senior Member
Dec 24, 2007
469
341
Berlin
NfcMod for CM 10.2 Nightly

I just added the apk for CM 10.2 from the sources of Nightly 20131018.

The thread is also imported into DevDB and you have the new apk in the Downloads section above and you can use the Bugtracker for problems or the Feature Request section for requests of new apk.
 

Top Liked Posts