NFC on screenoff and lockscreen - HTC One

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 HTC One 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:
  • lockscreen and screen off
  • lockscreen
  • 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

01.06.2014 - added v11.0 for ARHD 71
29.03.2014 - added v10.0 for ARHD 61
29.01.2014 - added v9.0 for ARHD 51
04.01.2014 - added v4.0 for ARHD GE 6
04.01.2014 - added v8.0 for ARHD 41
10.12.2013 - added v3.0 for ARHD GE 5
04.12.2013 - added v7.0 for ARHD 40
20.10.2013 - added v6.0 for ARHD 30
28.09.2013 - added v2.0 for ARHD GE 4
28.09.2013 - added v5.0 for ARHD 22
18.09.2013 - added v4.0 for ARHD 21
10.09.2013 - deleted ViperOne, added viperROM One
07.09.2013 - CM 10.2 Nightly (Android 4.3) added
07.09.2013 - ARHD 20 (Android 4.3, Sense 5) added
18.08.2013 - ViperOne 1.2.1 (Android 4.1.2) added
07.08.2013 - ARHD GE 3.0 (Android 4.3) added
06.07.2013 - ARHD 12 added
15.06.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 - HTC One, Tool/Utility for the HTC One

Contributors
StephanSch

Version Information
Status: Stable

Created 2013-08-08
Last Updated 2014-06-01
 
Last edited:

millicent

Senior Member
Apr 25, 2012
1,120
243
Montreal
tried the version with screen off, doesn't seem to work on arhd 10.3..

in fact, I get the message 'not installed' upon installing.

thankfully, the nfc still works with screen on, lockscreen off

Sent from my HTC One using Tapatalk 2
 

StephanSch

Senior Member
Dec 24, 2007
469
341
Berlin
tried the version with screen off, doesn't seem to work on arhd 10.3..

in fact, I get the message 'not installed' upon installing.

thankfully, the nfc still works with screen on, lockscreen off

Sent from my HTC One using Tapatalk 2

Sorry, but how can you get the message on a adb push? At what point do you get it?

Sent from my HTC One using xda premium
 
  • Like
Reactions: millicent

millicent

Senior Member
Apr 25, 2012
1,120
243
Montreal
oops, my bad, didn't read the whole thing carefully, will try again and let you know.

Confirmed working here on arhd 10.3, thank you!

One question though: need to replace the app each time I reflash rom or only on clean rom install?

Sent from a pizza
 
Last edited:

Mikey

Retired Senior Moderator
Oct 10, 2007
6,262
1,743
Wheaton, Il
Google Pixel Fold
oops, my bad, didn't read the whole thing carefully, will try again and let you know.

Confirmed working here on arhd 10.3, thank you!

One question though: need to replace the app each time I reflash rom or only on clean rom install?

Sent from a pizza
yes since the system folder gets rewritten with the new roms system folder in the zip
 
  • Like
Reactions: millicent

housry23

Senior Member
Sep 23, 2009
2,939
746
Springfield, OH
I'm just learning the benefits of nfc and just how useful it can be. I'll try this soon and report back. I'd love to be able to use nfcwith the screen off.

Sent from my HTC One using Tapatalk 4 Beta
 

jlevy1126

Senior Member
Feb 26, 2009
56
5
Tampa
And idea if this works with the HTC Droid DNA? If we don't know ill tty and see but if we know it doesn't work at all, I won't east my time. Thanks!

Sent from my HTC6435LVW using Tapatalk 4 Beta
 

jlevy1126

Senior Member
Feb 26, 2009
56
5
Tampa
Thanks sorry for all the typos :/ know if there is a similar mod for the DNA. I haven't found one yet.

Sent from my HTC6435LVW using Tapatalk 4 Beta
 

hotsync100

Senior Member
Jun 27, 2009
360
81
Caracas
Does it work only on ARHD 10? Any chance to make one to stock 4.1.2?
1.29.1540.17


Sent from my HTC One using Tapatalk 4 Beta
 

htc-hd2

Senior Member
Oct 29, 2009
325
33
Almere
I've tested this with "Android Revolution HD 11.5 (4.2.2)", and it "kind of works".
After some time I need to disable and enable NFC to make it work again.

Anyone here having the same problem?
 
Last edited:

htc-hd2

Senior Member
Oct 29, 2009
325
33
Almere
Till now it's working great with ARHD 12 (-:

You should ask mike1986 to intergrade this into his builds!

Thank you!
 

Top Liked Posts