Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,742,912 Members 40,163 Now Online
XDA Developers Android and Mobile Development Forum

NFC on screenoff and lockscreen - HTC One

Tip us?
 
StephanSch
Old
(Last edited by StephanSch; 7th August 2013 at 07:46 AM.) Reason: added ARHD GE 3.0
#1  
StephanSch's Avatar
Senior Member - OP
Thanks Meter 335
Posts: 453
Join Date: Dec 2007
Location: Berlin

 
DONATE TO ME
Storage NFC on screenoff and lockscreen - HTC One

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
HTC One
CID: 11111111
ROM: ARHD 71.1
hboot: 1.56.0000
Kernel: Stock
---------------------------
[MOD] NFC on screenoff and lockscreen on HTC EVO 4G LTE || HTC One X || Sony Xperia P/Sola || SGSII Skyrocket || HTC One || Sony Xperia Z || Nexus 5 || T-Mobile Samsung Galaxy S 5

Tweet (german)
The Following 23 Users Say Thank You to StephanSch For This Useful Post: [ Click to Expand ]
 
StephanSch
Old
#2  
StephanSch's Avatar
Senior Member - OP
Thanks Meter 335
Posts: 453
Join Date: Dec 2007
Location: Berlin

 
DONATE TO ME
Default Reserved

 
StephanSch
Old
#3  
StephanSch's Avatar
Senior Member - OP
Thanks Meter 335
Posts: 453
Join Date: Dec 2007
Location: Berlin

 
DONATE TO ME
Default reserved

reserved
 
millicent
Old
#4  
millicent's Avatar
Senior Member
Thanks Meter 127
Posts: 566
Join Date: Apr 2012
Location: 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
Old
#5  
StephanSch's Avatar
Senior Member - OP
Thanks Meter 335
Posts: 453
Join Date: Dec 2007
Location: Berlin

 
DONATE TO ME
Quote:
Originally Posted by millicent View Post
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
HTC One
CID: 11111111
ROM: ARHD 71.1
hboot: 1.56.0000
Kernel: Stock
---------------------------
[MOD] NFC on screenoff and lockscreen on HTC EVO 4G LTE || HTC One X || Sony Xperia P/Sola || SGSII Skyrocket || HTC One || Sony Xperia Z || Nexus 5 || T-Mobile Samsung Galaxy S 5

Tweet (german)
The Following User Says Thank You to StephanSch For This Useful Post: [ Click to Expand ]
 
millicent
Old
(Last edited by millicent; 17th June 2013 at 11:17 PM.)
#6  
millicent's Avatar
Senior Member
Thanks Meter 127
Posts: 566
Join Date: Apr 2012
Location: 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
 
Mikey
Old
#7  
Mikey's Avatar
Retired Senior Moderator
Thanks Meter 1005
Posts: 5,458
Join Date: Oct 2007
Location: Chicago

 
DONATE TO ME
Quote:
Originally Posted by millicent View Post
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
Code:

Phone: Samsung Galaxy Nexus               Tablet: Google Nexus 7
ROM: PURITY JDQ39                         ROM: PURITY JDQ39
Kernel: AK Kernel Diamond ed.             Kernel: M-Kernel
Baseband: I925OUGLH1                      Bootloader: v4.18
Recovery: TWRP v2.4.3.0                   Recovery: TWRP v2.4.3.0
The Following User Says Thank You to Mikey For This Useful Post: [ Click to Expand ]
 
housry23
Old
#8  
housry23's Avatar
Senior Member
Thanks Meter 764
Posts: 2,693
Join Date: Sep 2009
Location: 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
Old
#9  
Member
Thanks Meter 5
Posts: 45
Join Date: Feb 2009
Location: 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
HTC DROID DNA - CyanogenMod 10.2 (w/ crpalmer kernel)
Motorola Droid RAZR XT912 - CyanogenMod 10.1 (retired)
NFC Screen off/Locked MOD (Here)
 
StephanSch
Old
#10  
StephanSch's Avatar
Senior Member - OP
Thanks Meter 335
Posts: 453
Join Date: Dec 2007
Location: Berlin

 
DONATE TO ME
Quote:
Originally Posted by jlevy1126 View Post
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
Sure it will not work

Sent from my HTC One using xda premium
HTC One
CID: 11111111
ROM: ARHD 71.1
hboot: 1.56.0000
Kernel: Stock
---------------------------
[MOD] NFC on screenoff and lockscreen on HTC EVO 4G LTE || HTC One X || Sony Xperia P/Sola || SGSII Skyrocket || HTC One || Sony Xperia Z || Nexus 5 || T-Mobile Samsung Galaxy S 5

Tweet (german)

The Following User Says Thank You to StephanSch For This Useful Post: [ Click to Expand ]
Tags
lockscreeen, nfc, screenoff
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes