Thanks for this find! I've added it to the OP for others. It's worked pretty consistently for me with this new module for the 30 minutes I've had it installed, and hopefully it will lead to better battery life. (Battery life wasn't too bad, but I was starting to notice a difference with NFC always on.)
I'm sorry to hear that it's not working for you. Hopefully Google will eventually enable this functionality in Android proper. The Moto X certainly shows that it's not only possible, but practical.
- Dave
Ok, I've done some reading and the waits actually do something so I've reenabled it for the time being as it's unlocking the screen correctly. I have my tectile in my wallet so I just tap my pocket to get it to unlock. I also had to program a task to enable the password screen upon startup because it seems to bypass the security sometimes when you restart the phone and bring you directly to the home screen.
So the fix for TW roms bringing up the unlock screen after unlock is to use secure settings to remove and readd the pass after screen off.
[EDIT]
Dave, can you try my commands on your non TW rom to see if it works too?
I'm using this NFC launcher as it utilizes the NFC detect on and NFC remove commands sent by the Xposed plugin I found. http://xdaforums.com/attachment.php?attachmentid=1767289&d=1362023682
So what I have set is:
Task Boot Lock
1. System Lock
Task Lock
1. Secure Settings > Set Pin (when you create this step you input either your pin or password in secure settings)
If you're using the modifed AnyTAG NFC Launcher, you'll have to separate the unlock in two steps. If you are using the NFC Task Laucher, you can combine this into one step.
Task NFC Unlock Step 1
1. Secure Settings > Wake Device > Screen Bright 5 Seconds
2. Secure Settings > Password/Pin > Disabled
3. Task > Wait 5 miliseconds
Task NFC Unlock Step 1
1. Display > Keyguard > On
2. Task > Wait 5 miliseconds
3. Display > Keyguard > Off
Profile Boot Lock
1. Event > System > Device Boot
-> Task Bootlock
Profile Display off
1. Event > Display > Display Off
-> Task Lock
The only problem I'm having now is that the screen does not time out correctly when unlocked via NFC. Trying to research that.
Last edited: