[XT925] Nfc TagLost detection & Lockscreen ON for JB 4.1.2 Motorola ROM

Orphee

Senior Member
Jan 31, 2008
1,675
766
143
Hello,

I wanted to add Taglost detection and NFC enabled on lockscreen on my RAZR HD.

I followed the tutorial from madfish73 http://forum.xda-developers.com/showthread.php?t=2122019

This modification add 2 things :

- NFC Enabled on Lockscreen, no need to unlock to make NFC works
Usefull with NFC Tags and applications like Tasker to make automated task (Car dock, bedtime etc...)

- Taglost detection
With NTC Retag you can enable taglost detection.
With this modification you can add actions when tag is removed (Car dock removal, of end of bedtime)

I made a flashable zip for CWM Recovery.

I SUGGEST YOU TO MAKE A FULL NANDROID BACKUP BEFORE DOING ANYTHING. I'M NOT RESPONSIBLE OF ANY DAMAGE YOU COULD DO TO YOU OR YOUR PHONE. USE IT AT YOUR OWN RISK.

Modified files are (make a backup at least) :

/system/app/Nfc.apk
/system/app/Nfc.odex (original deleted with flashable zip)

My ROM is DEODEXED, It should work on ODEXED ROM too, but I can't be sure.

Built with Retail FR 4.1.2 based ROM.

Thanks to madfish73 for his help.
 

Attachments

  • Like
Reactions: Last Enemy

Last Enemy

New member
Sep 5, 2013
3
0
0
It works, but...

Hello

I tried your modification and I think I have found a bug:

If I take phone to tag and after it take out from tag before the screen turn off it works fine.
But if I take phone to tag, wait then the screen turn off, turn the screen on and take the phone out from tag the NFC stop working (needs to turn it on in android menu).
 

Orphee

Senior Member
Jan 31, 2008
1,675
766
143
Hi, well it is not really a bug... I understand what you mean, but it is not designed for screenoff...

So this bug is "normal". You shouln't leave it goes screenoff on NFC tag...

Currently, the only thing that works with screenoff is the Xposed module :
http://forum.xda-developers.com/showthread.php?t=2122019

I tried to enable screenoff NFC myself, but I faced a bug with taglost stop responding after 1 minute screenoff...
NFC detection tag was always working but taglost bugged if screenoff too long...
 
  • Like
Reactions: Last Enemy

Last Enemy

New member
Sep 5, 2013
3
0
0
Thank you for your answer. Well as far as I understand I can't use it for example to switch to bedtime mode:
1. I put phone at tag - the silent mode turns on
2. If I remove phone without switch the screen off then silent mode turns off :(
3. But if I switch off the screen and try to get normal mode at the morning I will not get it due to problem I wrote early.
But it perfect for cardock because the screen is not turn off.
 

Last Enemy

New member
Sep 5, 2013
3
0
0
I tried to enable screenoff NFC myself, but I faced a bug with taglost stop responding after 1 minute screenoff...
NFC detection tag was always working but taglost bugged if screenoff too long...
Dear Orphee, may I ask you to make version of NFC.apk with working screenoff NFC, but without taglost detection?
And one more question: is it possible to remove NFC icon on taskbar?
Thank you