Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,771,700 Members 43,462 Now Online
XDA Developers Android and Mobile Development Forum

[MOD][Xposed] NFC Unlocking (based on NFCLockscreenOff Enabler)

Tip us?
 
MohammadAG
Old
(Last edited by MohammadAG; 6th May 2014 at 11:13 PM.)
#1  
Recognized Developer - OP
Thanks Meter 4768
Posts: 1,065
Join Date: Sep 2009
Location: Jerusalem

 
DONATE TO ME
Default [MOD][Xposed] NFC Unlocking (based on NFCLockscreenOff Enabler)

Requires Xposed Framework!

This module is based off qwerty12's NFCLockScreenOffEnabler, coupled with madfish73's modifications.

The Moto X had a feature called the Motorola Skip, a $20 NFC tag that unlocks your device.
(Speaking of the Moto Skip, here's a tutorial by @Mikegrmn on how to make a similar tag)
This Xposed module imitates that, while giving a bit more freedom as it also works with the screen off, and with any NFC tag.

Screenshots:


Compatibility:
Any 4.0-4.4 NFC-equipped device that can run Xposed Framework.

Download:
http://repo.xposed.info/module/pk.qw...reenoffenabler

Source code:
https://github.com/MohammadAG/NFCLockscreenoffEnabler

Credits:
  • qwerty12 for original module.
  • madfish73 for tag lost support
  • rovo89 for the Xposed Framework
  • Niek Haarman for ListViewAnimations, initially I wanted the NFC tag list animated but it was unnecessary overhead, I kept support for swiping to delete tags though.
  • Roman Nurik for his UndoBar implementation.

Reason for fork:
I spent a lot of time researching how the lockscreen works so I could bypass the user's code without actually storing the code somewhere, and even when that was done, my implementation was insecure and left a big security hole, I also spent some time looking for ways to secure that which I've come up with. An explanation of how it was secured can be found here.
In any case, when I decided to post my work in that thread, it was because I felt I shouldn't fork another version of the module. However, 2 days later, I feel that it got buried in the thread with no one knowing about it, so I emailed qwerty12 and asked him if I could make a thread about the module with all the updates.

Suggestions?
I feel like the name and icon could be changed, if anyone has suggestions, feel free to reply with them down below

FAQ
  • This module isn't installing, it's saying something about signatures!
    Due to this being a fork, and no one can share their signatures, you're going to have to uninstall all previous versions prior to installing this.
  • This module isn't working, what's wrong?
    Do you have Xposed Framework installed? Installing the Installer app isn't enough, you need to hit Install/Update it in. After that, you'll have to tick the module to enable it and soft reboot. If the module still doesn't work, turn on debug mode and attach a logcat after a reboot.
  • I did what the question above said, I still can't unlock my phone using NFC!
    Have you authorized the tag? See this video by @subzero2000 to know how to do that http://www.youtube.com/watch?v=5ix-5utZwAY
    If you can't authorize the tag as in the video, someone (probably me) messed up somewhere, refer to http://forum.xda-developers.com/show...&postcount=101 to help us debug the problem.
    If you can authorize a tag, but still can't unlock, your manufacturer did something to the lockscreen that's very far from stock Android. Leave a comment and we'll try to help. Alternatively, ask a developer for your device to have a look at it.
  • An app pops up each time I scan the tag saying that the tag is empty, what should I do?
    Either write to the tag so it does something else, or install this http://forum.xda-developers.com/show....php?t=2474379
  • How do I configure Tasker?
    An intent is broadcasted as of version 1.9.5 that can be picked up by apps like Tasker.
    Just configure the app to receive the intent with action "android.nfc.action.TAG_CHANGED". The intent has two extras:
    "tag_uuid": type String, this extra holds the tag ID
    "tag_present": type boolean, this extra is true when the tag is detected, and false when it's lost.
    These extras can be used in Tasker by using the variables %tag_uuid and %tag_present
Follow me on Twitter: @MohammadAG
Google+: https://plus.google.com/103508952817353883168/posts

Check out my Xposed modules.
Send files with Android Beam™ on Android 4.1+: File Beam (Touch to Send)
Enable USB Mass Storage Mode on Samsung devices with SG USB Mass Storage Enabler.
Use your flashlight at different brightness levels with Adjustable Torch.
Enable Music Controls on your S-View screen with S-View Music Controls
The Following 33 Users Say Thank You to MohammadAG For This Useful Post: [ Click to Expand ]
 
dtekkt
Old
#2  
dtekkt's Avatar
Senior Member
Thanks Meter 297
Posts: 610
Join Date: Sep 2010
Location: Vienna
Great, works as advertised. Only two things then it would be perfect:
Allow to disable the NFC tag sound and vibration, it's very annoying

Gesendet von meinem C6903 mit Tapatalk 4
Checkout my Theme: Miuibuntu Mod
 
MohammadAG
Old
#3  
Recognized Developer - OP
Thanks Meter 4768
Posts: 1,065
Join Date: Sep 2009
Location: Jerusalem

 
DONATE TO ME
Quote:
Originally Posted by dtekkt View Post
Great, works as advertised. Only two things then it would be perfect:
Allow to disable the NFC tag sound and vibration, it's very annoying

Gesendet von meinem C6903 mit Tapatalk 4
I'll add that option in the next version, I know that disabling sounds is very easy.
Follow me on Twitter: @MohammadAG
Google+: https://plus.google.com/103508952817353883168/posts

Check out my Xposed modules.
Send files with Android Beam™ on Android 4.1+: File Beam (Touch to Send)
Enable USB Mass Storage Mode on Samsung devices with SG USB Mass Storage Enabler.
Use your flashlight at different brightness levels with Adjustable Torch.
Enable Music Controls on your S-View screen with S-View Music Controls
The Following User Says Thank You to MohammadAG For This Useful Post: [ Click to Expand ]
 
MohammadAG
Old
#4  
Recognized Developer - OP
Thanks Meter 4768
Posts: 1,065
Join Date: Sep 2009
Location: Jerusalem

 
DONATE TO ME
Quote:
Originally Posted by dtekkt View Post
Great, works as advertised. Only two things then it would be perfect:
Allow to disable the NFC tag sound and vibration, it's very annoying

Gesendet von meinem C6903 mit Tapatalk 4
Done


My device doesn't vibrate when using NFC, so I couldn't find out where that happens :/
Follow me on Twitter: @MohammadAG
Google+: https://plus.google.com/103508952817353883168/posts

Check out my Xposed modules.
Send files with Android Beam™ on Android 4.1+: File Beam (Touch to Send)
Enable USB Mass Storage Mode on Samsung devices with SG USB Mass Storage Enabler.
Use your flashlight at different brightness levels with Adjustable Torch.
Enable Music Controls on your S-View screen with S-View Music Controls
The Following 4 Users Say Thank You to MohammadAG For This Useful Post: [ Click to Expand ]
 
dtekkt
Old
#5  
dtekkt's Avatar
Senior Member
Thanks Meter 297
Posts: 610
Join Date: Sep 2010
Location: Vienna
Quote:
Originally Posted by MohammadAG View Post
Done


My device doesn't vibrate when using NFC, so I couldn't find out where that happens :/
Thanks, works perfect without this annoying sound :thumbup: I could send you my NFC apk, I am using a xperia Z1. If it doesn't work out, doesn't matter as long as that annoying sound is gone

Gesendet von meinem C6903 mit Tapatalk 4
Checkout my Theme: Miuibuntu Mod
 
MohammadAG
Old
#6  
Recognized Developer - OP
Thanks Meter 4768
Posts: 1,065
Join Date: Sep 2009
Location: Jerusalem

 
DONATE TO ME
Quote:
Originally Posted by dtekkt View Post
Thanks, works perfect without this annoying sound :thumbup: I could send you my NFC apk, I am using a xperia Z1. If it doesn't work out, doesn't matter as long as that annoying sound is gone

Gesendet von meinem C6903 mit Tapatalk 4
You could, or just wait it out. I'll be getting the Z1 when it reaches Israel.

Sent from my Samsung Galaxy S4 (GT-i9500) using Taptalk 4
Follow me on Twitter: @MohammadAG
Google+: https://plus.google.com/103508952817353883168/posts

Check out my Xposed modules.
Send files with Android Beam™ on Android 4.1+: File Beam (Touch to Send)
Enable USB Mass Storage Mode on Samsung devices with SG USB Mass Storage Enabler.
Use your flashlight at different brightness levels with Adjustable Torch.
Enable Music Controls on your S-View screen with S-View Music Controls
 
dtekkt
Old
#7  
dtekkt's Avatar
Senior Member
Thanks Meter 297
Posts: 610
Join Date: Sep 2010
Location: Vienna
Quote:
Originally Posted by MohammadAG View Post
You could, or just wait it out. I'll be getting the Z1 when it reaches Israel.

Sent from my Samsung Galaxy S4 (GT-i9500) using Taptalk 4
Great then I'll wait, the vibration is not that annoying. Great to know another great dev will get this fabulous device

Gesendet von meinem C6903 mit Tapatalk 4
Checkout my Theme: Miuibuntu Mod
 
Dmw017
Old
#8  
Dmw017's Avatar
Senior Member
Thanks Meter 85
Posts: 683
Join Date: Aug 2011
Location: NYC [Queens] (N3xus)
how is this on battery, considering it keeps NFC on
 
MohammadAG
Old
#9  
Recognized Developer - OP
Thanks Meter 4768
Posts: 1,065
Join Date: Sep 2009
Location: Jerusalem

 
DONATE TO ME
Quote:
Originally Posted by Dmw017 View Post
how is this on battery, considering it keeps NFC on
Not bad, I haven't noticed a major hit tbh.
You can control when NFC is on; so you can limit it to when the screen is on.

Sent from my Samsung Galaxy S4 (GT-i9500) using Taptalk 4
Follow me on Twitter: @MohammadAG
Google+: https://plus.google.com/103508952817353883168/posts

Check out my Xposed modules.
Send files with Android Beam™ on Android 4.1+: File Beam (Touch to Send)
Enable USB Mass Storage Mode on Samsung devices with SG USB Mass Storage Enabler.
Use your flashlight at different brightness levels with Adjustable Torch.
Enable Music Controls on your S-View screen with S-View Music Controls
 
etatto83
Old
#10  
etatto83's Avatar
Member
Thanks Meter 56
Posts: 41
Join Date: Oct 2010
Location: Seillons-Source-d'Argens
Could you please add an option to hide the icon in the launcher ?

BTW works great with NFC ReTag :thumbup:

Envoyé depuis mon Xperia Z avec Tapatalk 4

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes