[HOW TO] Use NFC to unlock your Note II directly into your favorite app

gabster21

Senior Member
Sep 7, 2010
478
129
0
Dubai
This quick tutorial will allow you to use an NFC tag to wake up your phone and launch directly into your favorite application. It will also bypass any PIN/pattern/password you have configured.

I've been trying to do this for a while and have been hunting down information/tools in XDA to try to unlock my pattern protected Note 2 and directly launch my remote app (Unified Remote) when I touch the NFC tag on the living room coffee table. The biggest challenge was to find a NFC screen-off mod that worked for the Note 2 (most were for the S3).

Tools:
  • Tasker (important: make sure you update to the latest version)
  • NFC Task Launcher
  • Writable NFC tags
  • Secure Settings (be sure to enable Device Admin)
  • NFC Screen Off Mod (attached), got it from here. Confirmed working for stock LJ1 and LJ3 odex rooted. WARNING: This mod might work on stock 4.1.2 but will cause annoying popups saying 'NFC Service has been stopped'.
  • Root (but I'm guessing if you have any of the above you're already rooted)
  • (optional but recommended) Titanium Backup
  • (optional) Unified Remote

1. Use TB to make a backup of your NFC Service apk (in case you get issues after flashing the modded one)

2. Flash the attached NFC Screen Off Mod using CMW

3. Create a task (Wake) in Tasker with the following actions:
EDIT: Make sure Tasker has 'enabled external access' option switched on in settings (Thanks SenK9)
  1. Plugins -> Secure Settings -> Wake Device -> Screen and Keyboard lights on (30 sec or whatever you want)
  2. Plugins -> Secure Settings -> Keyguard -> Off (this will also disable any PIN/pattern/password you have)
  3. (optional) Misc -> Say -> "Device is awake" (or whatever you want it to say)



4. Prepare a writeable tag in NFC Task Launcher with the following actions:
  1. Tasker -> Tasker Task -> Wake (or the name of your task)
  2. (optional) Launch application -> Unified Remote (can also place this in your Task but I prefer to keep them separate since I use my task for other things as well)
  3. [Add whatever you want to do here (launch app, play music, etc..)]


Note: Keyguard disable didn't work for me at first, so you may need to reboot your phone.



That's it! Hope this helped someone :)
Let me know if this works for you and if you have any recommendations or improvements I'd be happy to update the post with your suggestions.
 
Last edited:

EyeTech

Senior Member
May 6, 2010
177
18
0
Manchester
Good work gabster21! Work well for me on stock LJ3. Followed your instructions and it worked without problem. Much better than the Samsung TecTiles app that I've been using.
 

gabster21

Senior Member
Sep 7, 2010
478
129
0
Dubai
Glad to hear it worked!

On a similar note I just finished automating my phone to start my favorite playlist on my HTPC using NFC with the screen off. It involves EventGhost (with several plugins) and sending an http get command from Tasker. I can post a tutorial on that if people are interested.
 

arvin2212

Senior Member
Jan 30, 2009
368
34
0
Glad to hear it worked!

On a similar note I just finished automating my phone to start my favorite playlist on my HTPC using NFC with the screen off. It involves EventGhost (with several plugins) and sending an http get command from Tasker. I can post a tutorial on that if people are interested.
A tutorial will be appreciated very much :)
 

emprize

Senior Member
Jan 15, 2007
1,300
135
0
um....didnt work....

my nfc task launcher got response say run the task, tasker set the task as secure setting, but cant screen on and unlock device

im sure the nfc is ready while screen off, coz when i wake the device, nfc task launcher had the notification say it ran the task
 

boodies

Senior Member
Mar 3, 2010
1,801
348
0
I personally use tasker without nfc. (probably will try nfc soon) For instance, when I get in my car and plug my phone in my aux, the phone automatically opens up Poweramp. (power amp has an option to continue playing on aux insert but not just opening the program.) Also when poweramp is running I have it disable my pattern lock.
 

Clockwerks77

Senior Member
Oct 12, 2011
81
16
0
Calgary
Hey guys, just getting into some of this stuff, particularly with tasker.

Boodies, can someone conceivably set up the tasker so that the NFC tag is on the back of the cardock for my Note II and when my phone comes into contact it arms GPS and pops up poweramp as part of the same action?
 

gabster21

Senior Member
Sep 7, 2010
478
129
0
Dubai
Hey guys, just getting into some of this stuff, particularly with tasker.

Boodies, can someone conceivably set up the tasker so that the NFC tag is on the back of the cardock for my Note II and when my phone comes into contact it arms GPS and pops up poweramp as part of the same action?
You would to have 'Secure Setfings' installed (with Helper) need to setups a task with these actions:
-> Plugins -> Secure Settings -> GPS -> ON
-> App -> Launch -> Poweramp

Then call this task from NFC task launcher programmed in a tag
 

boodies

Senior Member
Mar 3, 2010
1,801
348
0
Hey guys, just getting into some of this stuff, particularly with tasker.

Boodies, can someone conceivably set up the tasker so that the NFC tag is on the back of the cardock for my Note II and when my phone comes into contact it arms GPS and pops up poweramp as part of the same action?
and to add to Gabster, here is a FANTASTIC site to learn tasker.

LEARN TASKER
 

Jsarge45

Senior Member
Nov 15, 2012
272
50
0
Lawrenceville,NJ
Hey guys, new to this thread and sorry if asked but I'm running PA alpha3 and I installed zip but now my NFC check box went missing. Am I missing something?

Sent from my SPH-L900 using xda premium