Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

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

OP MohammadAG

10th October 2013, 06:22 PM   |  #1  
OP Recognized Developer
Flag Jerusalem
Thanks Meter: 5,209
 
1,079 posts
Join Date:Joined: Sep 2009
Donate to Me
More
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
Last edited by MohammadAG; 7th May 2014 at 12:13 AM.
The Following 40 Users Say Thank You to MohammadAG For This Useful Post: [ View ]
11th October 2013, 02:57 PM   |  #2  
dtekkt's Avatar
Senior Member
Flag Vienna
Thanks Meter: 297
 
610 posts
Join Date:Joined: Sep 2010
More
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
11th October 2013, 03:37 PM   |  #3  
OP Recognized Developer
Flag Jerusalem
Thanks Meter: 5,209
 
1,079 posts
Join Date:Joined: Sep 2009
Donate to Me
More
Quote:
Originally Posted by dtekkt

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.
The Following User Says Thank You to MohammadAG For This Useful Post: [ View ]
11th October 2013, 09:56 PM   |  #4  
OP Recognized Developer
Flag Jerusalem
Thanks Meter: 5,209
 
1,079 posts
Join Date:Joined: Sep 2009
Donate to Me
More
Quote:
Originally Posted by dtekkt

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 :/
The Following 5 Users Say Thank You to MohammadAG For This Useful Post: [ View ]
11th October 2013, 10:06 PM   |  #5  
dtekkt's Avatar
Senior Member
Flag Vienna
Thanks Meter: 297
 
610 posts
Join Date:Joined: Sep 2010
More
Quote:
Originally Posted by MohammadAG

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
11th October 2013, 10:22 PM   |  #6  
OP Recognized Developer
Flag Jerusalem
Thanks Meter: 5,209
 
1,079 posts
Join Date:Joined: Sep 2009
Donate to Me
More
Quote:
Originally Posted by dtekkt

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
11th October 2013, 10:34 PM   |  #7  
dtekkt's Avatar
Senior Member
Flag Vienna
Thanks Meter: 297
 
610 posts
Join Date:Joined: Sep 2010
More
Quote:
Originally Posted by MohammadAG

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
12th October 2013, 05:58 AM   |  #8  
Dmw017's Avatar
Senior Member
Flag NYC [Queens] (N3xus)
Thanks Meter: 85
 
684 posts
Join Date:Joined: Aug 2011
More
how is this on battery, considering it keeps NFC on
12th October 2013, 09:59 AM   |  #9  
OP Recognized Developer
Flag Jerusalem
Thanks Meter: 5,209
 
1,079 posts
Join Date:Joined: Sep 2009
Donate to Me
More
Quote:
Originally Posted by Dmw017

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
12th October 2013, 10:18 AM   |  #10  
etatto83's Avatar
Member
Flag Seillons-Source-d'Argens
Thanks Meter: 60
 
42 posts
Join Date:Joined: Oct 2010
More
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

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes