Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,811,847 Members 53,120 Now Online
XDA Developers Android and Mobile Development Forum

[MOD] NFC on screenoff and lockscreen - HTC One X ICS & JB

Tip us?
 
StephanSch
Old
(Last edited by StephanSch; 10th August 2014 at 02:25 PM.) Reason: CM11 added
#1  
StephanSch's Avatar
Senior Member - OP
Thanks Meter 338
Posts: 454
Join Date: Dec 2007
Location: Berlin

 
DONATE TO ME
Storage [MOD] NFC on screenoff and lockscreen - HTC One X ICS & JB

With this mod you can enable NFC at screenoff and on keyguard on the HOX in an easy way.

You have the choice of three apk for the state to use NFC (unlocked is always the original version):
  • screen off
  • lock screen
  • unlocked


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


On ROMs with additional/other framework than posted recompiling needed. If so the NFC options are simply gone.


Changelog

10.08.2014 - CM11 M9 added
19.08.2013 - ARHD 31 added
17.02.2013 - ARHD updated with 18.2
19.01.2013 - ARHD18 added
16.10.2012 - CM10 Nightly updated
14.10.2012 - first JB release: ARHD11
22.09.2012 - CM10 Nightly updated
12.08.2012 - ARHD9 added
09.08.2012 - CM10 added
06.08.2012 - ARHD8 added
18.06.2012 - ARHD7
  • APK for ARHD7 added
  • compatibility list added in second post
17.06.2012 - working
  • POLLING_MODE is generally not working
  • so simply made NFCServe$1.class think screen is unlocked though in keyguard
  • and made think screen os on though off
16.06.2012 - first try
  • Used POLLING_MODE to define when to enable NFC


Download
Please don't forget to thank if it works, if not we will make it work.
The Following 34 Users Say Thank You to StephanSch For This Useful Post: [ Click to Expand ]
 
StephanSch
Old
(Last edited by StephanSch; 19th August 2013 at 08:28 PM.)
#2  
StephanSch's Avatar
Senior Member - OP
Thanks Meter 338
Posts: 454
Join Date: Dec 2007
Location: Berlin

 
DONATE TO ME
reserved
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)
 
mayhemer
Old
#3  
Member
Thanks Meter 176
Posts: 88
Join Date: Jan 2007
The great work was first done by Geniusdog254 for the Galaxy Nexus. I just ported it to work on the Samsung Galaxy S3

[tapatalk]Vom S3 mit Tapatalk[/tapatalk]
If you like my work, please donate!
The Following User Says Thank You to mayhemer For This Useful Post: [ Click to Expand ]
 
stiffmast3r
Old
#4  
stiffmast3r's Avatar
Senior Member
Thanks Meter 455
Posts: 1,302
Join Date: Dec 2010
Location: Graz

 
DONATE TO ME
nice, but i dont know where to use NFC :P
Android Devices:
HTC One X (rooted, s-on)
HTC Evo 3D (rooted, s-off)
HTC Legend (rooted)
Amazon Kindle Fire (rooted)


If my Post was helpful, please hit the Thanks Button

 
StephanSch
Old
#5  
StephanSch's Avatar
Senior Member - OP
Thanks Meter 338
Posts: 454
Join Date: Dec 2007
Location: Berlin

 
DONATE TO ME
Quote:
Originally Posted by mayhemer View Post
The great work was first done by Geniusdog254 for the Galaxy Nexus. I just ported it to work on the Samsung Galaxy S3

[tapatalk]Vom S3 mit Tapatalk[/tapatalk]
Thanks, edited
 
StephanSch
Old
#6  
StephanSch's Avatar
Senior Member - OP
Thanks Meter 338
Posts: 454
Join Date: Dec 2007
Location: Berlin

 
DONATE TO ME
Quote:
Originally Posted by stiffmast3r View Post
nice, but i dont know where to use NFC :P
I'm using with Sony Experia Tags: one at the door of my home, one in the car.
To change Wifi, Bluetooth, lockscreen, screen brightness, .........
The Following 2 Users Say Thank You to StephanSch For This Useful Post: [ Click to Expand ]
 
stiffmast3r
Old
#7  
stiffmast3r's Avatar
Senior Member
Thanks Meter 455
Posts: 1,302
Join Date: Dec 2010
Location: Graz

 
DONATE TO ME
Quote:
Originally Posted by StephanSch View Post
I'm using with Sony Experia Tags: one at the door of my home, one in the car.
To change Wifi, Bluetooth, lockscreen, screen brightness, .........
cool, thanks for tip, never heard of those tags
Android Devices:
HTC One X (rooted, s-on)
HTC Evo 3D (rooted, s-off)
HTC Legend (rooted)
Amazon Kindle Fire (rooted)


If my Post was helpful, please hit the Thanks Button

 
starbase64
Old
#8  
starbase64's Avatar
Senior Member
Thanks Meter 528
Posts: 2,955
Join Date: Apr 2007
Location: Lennestadt

 
DONATE TO ME
+ 1
Starbase64 YouTube Channel | Stabase64 Blog | Starbase64 Flickr Stream


Device: HTC One m8ul
ROM: InsertCoin
Kernel: Stock is the best
S-OFF: Yes
SuperCID: Yes
MID: 0P6B10000
PVS: 1

Device: Samsung Galaxy Tab 2 7''
ROM: CM 10.2
Kernel: stock
Recovery: TWRP
Baseband: stock
 
inzaghi75
Old
#9  
inzaghi75's Avatar
Senior Member
Thanks Meter 1,677
Posts: 2,735
Join Date: Oct 2009
Can someone explain NFC?
 
StephanSch
Old
#10  
StephanSch's Avatar
Senior Member - OP
Thanks Meter 338
Posts: 454
Join Date: Dec 2007
Location: Berlin

 
DONATE TO ME
Quote:
Originally Posted by inzaghi75 View Post
Can someone explain NFC?
http://de.wikipedia.org/wiki/Near_Field_Communication
http://www.youtube.com/results?search_query=nfc

Something like RFID

The Following User Says Thank You to StephanSch For This Useful Post: [ Click to Expand ]
Tags
android revolution hd, arhd, hox, htc one x, nfc
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes