[GUIDE] How to setup a NFC Key

peurocs4

Senior Member
Nov 19, 2010
174
142
0
Somewhere
I'm pretty new with making a tutorial on XDA. If I'm doing something wrong or you have a suggestion to make, then feel free to PM me :)




What's NFC Key?

NFC Key is a method of unlocking your phone (from the lockscreen) by simply touching your NFC tag on the back of your device.




Requirements

☞ Rooted Android Device ☜

☞ "NFC on lockscreen" MOD installed ☜
If this MOD is not yet supported on your device, kindly ask one of XDA members to port it over to your device!

☞ An NFC Tag ☜
A tag that can be written. Meaning if the tag is "Read-Only", then this probably won't work!

☞ Tasker ☜
Download

☞ Secure Settings ☜
Download

☞ NFC Task Launcher ☜
Download



▶ Install Tasker before any other Tasker-related apps in order to avoid any sort of conflicts ◀






How to Setup

Secure Settings

Go to "Preferences"
Check "Device Administrator"




Go to "Helper" Tab & Click "Helper is not installed"
Wait for the Download...
Click "Verify Helper" just to be sure...




Please Tell Me if the Image Comes Out Broken!!!
Tasker

Go to "Preferences"
Go to "Misc." Tab & Click "Allow External Access"




Unzip "NFC_Key.prj.xml" from the Downloaded File "NFC Key v*.0.0"
Move the "NFC_Key.prj.xml" to [Root of ur SDcard] > "Tasker" > "projects"




Long Press the "Default Project" & Click "Import"
Click "NFC_Key" to Import




Please Tell Me if the Image Comes Out Broken!!!
NFC Task Launcher


Go to "Settings"
Click "Notifications"
Click "Notifications" (again)
Click "None"
△△△ Optional △△△ Optional △△△ Optional △△△​




Click "New Task" [Plus Sign at the Top]
Click "NFC" as trigger
Choose the Name of the Task & Click "Add Actions" [Plus Sign at the Top]
Check "Tasker Task" Under "Tasker"
Type "NFC Key" for the Tasker Task (Case Sensitive!!!)
Click "Save & Write" [Arrow Sign at the Top]
Scan an NFC tag & Click "Done" [Check Sign at the Top]




Please Tell Me if the Image Comes Out Broken!!!






Download

☞ August 23, 2013 ☜
View attachment 2207295

This version requires Expandable Notification. I believe that's 4.1.2 and above!

☞ August 13, 2013 ☜
View attachment 2185891



☞ August 3, 2013 ☜
View attachment 2163581








Helpful Links


☞ Places to buy the NFC tags!!! ☜








 
Last edited:

peurocs4

Senior Member
Nov 19, 2010
174
142
0
Somewhere

Change Log

v2.0.0 [Aug 23, 2013]
- Add a scene for new UI
- Add a option to change the User's name
- Add a coding that enables/disables Screen Off detection depending on a NFC Key status (That could save some battery life??? lol)
- Changed the static notification to expandable notification
- Arranged the Tasks so it's cleaner​

v1.1.0 [Aug 13, 2013]
- Locks when screen turns off​

v1.0.0 [Aug 3, 2013]
*** Original ***​
 
Last edited:

eami

Senior Member
Oct 26, 2007
98
2
0
I've installed / configures everything as described. Once the screen is locked and I hold the nfc tag to the phone I see that the apps are triggered behind but it never unlocks my phone :\ any advice?
 

peurocs4

Senior Member
Nov 19, 2010
174
142
0
Somewhere
I've installed / configures everything as described. Once the screen is locked and I hold the nfc tag to the phone I see that the apps are triggered behind but it never unlocks my phone :\ any advice?
I'm not 100% sure if the error is on my part or on a 3rd party app.
I can't test the NFC Key on my current phone due to lack of hacks(ROM/MOD) available for Korean Model.
But since I pulled the Tasker's task from TiBackUp, it shouldn't have any problem.

My previous USA phone will be ship to me within a month or so.
Until then, let's try something...

Can you try the following steps?
1) Go to "Tasker" app
2) View the menu with your hard key (soft key if it's in your screen)
3) Click "More"
4) Click "Run An Action"
5) Click "Plugin"
6) Click "Secure Settings"
7) Click "Edit" button
8) Click "Keyguard"
9) Click "Off"
10) Click "Save" icon on the bottom
11) Go back using hard key or app's back key
Try turning off and on your screen, are you free from the lockscreen?
 

eami

Senior Member
Oct 26, 2007
98
2
0
Can you go to Secure Settings and...
1) "Options" Tab
2) List "Actions" Section
Check if "Keyguard" has Green Dot on the left and Green Check Mark on the right?
Actions (15 available - 15 enabled): if I check the list I have a green dot on the left an (an active) light grey on the right. If I click on keyguard it changes to dark check mark on the right, so the light one must means its enabled.

edit: just to be prompt: my device has a password lock, all other lock options are disabled.
 

peurocs4

Senior Member
Nov 19, 2010
174
142
0
Somewhere
Actions (15 available - 15 enabled): if I check the list I have a green dot on the left an (an active) light grey on the right. If I click on keyguard it changes to dark check mark on the right, so the light one must means its enabled.
Can you check if all the root required apps are fully given a root permission?
If they are, try re-installing Secure Setting. And try rebooting your device (just in case).
 

eami

Senior Member
Oct 26, 2007
98
2
0
Can you check if all the root required apps are fully given a root permission?
If they are, try re-installing Secure Setting. And try rebooting your device (just in case).
Thanks for all your help, finally I figured out what was wrong. I have two other security apps which requires device admin rights, and it seems one of them is actually preventing secure settings to remove keyguard. Once I removed those from device admin your method is working without any problem.

Unfortunately I need those apps enabled and there is no way I can remove this safety function from them :( My bad :(

So, to all the others... I can confirm the NFC unlock method from peurocs4 works as described. Big thumbs up!
 

peurocs4

Senior Member
Nov 19, 2010
174
142
0
Somewhere
Thanks for all your help, finally I figured out what was wrong. I have two other security apps which requires device admin rights, and it seems one of them is actually preventing secure settings to remove keyguard. Once I removed those from device admin your method is working without any problem.

Unfortunately I need those apps enabled and there is no way I can remove this safety function from them :( My bad :(

So, to all the others... I can confirm the NFC unlock method from peurocs4 works as described. Big thumbs up!
Ahh! No wonder why Secure Setting was not doing it's duty!
Why not as the security app developer to consider adding a whitelist or something like it? ;)
 

eami

Senior Member
Oct 26, 2007
98
2
0
Ahh! No wonder why Secure Setting was not doing it's duty!
Why not as the security app developer to consider adding a whitelist or something like it? ;)
nah, its a corporate stuff... mandatory always on password lock. Though I'm wondering if any app could actually type in the password by an NFC tag trigger :D

though, I would still need to confirm that if I'm allowed to do that way :\
 
Last edited:

peurocs4

Senior Member
Nov 19, 2010
174
142
0
Somewhere
nah, its a corporate stuff... mandatory always on password lock. Though I'm wondering if any app could actually type in the password by an NFC tag trigger :D

though, I would still need to confirm that if I'm allowed to do that way :\
You might able to do it with same method with different Tasker's Task (that types in what you programmed it to do).
But that obviously means anyone could see the password just by opening up the Tasker's Task.
 

Shirokishi

Senior Member
Jul 13, 2011
162
7
0
playing with NFC is fun.
I specifically like it for fixed tags though.

GPS
Remote Control
Giving people access to my wifi network while in my home and quickly removing it when they leave.