yashsingh1/xdaforums huggingface dataset:
[Xposed Framework Modules] Angel0id:
I installed the module correctly but it won't work.

I have an HTC one with Stock ROM. I added the tag and have NFC on when the screen is off. I tried it with and without a regular PIN set.

When I hold the NFC tag on the scanner while the screen is off it makes a sound but nothing else.

Thanks in advance..
[Xposed Framework Modules] Hotbread:
There is a way. Not to derail from this thread's focus, but my phone simply wouldn't store an authorized tag for whatever reason I last tried it and.... this specific module didn't unlock my phone. :( So I have a work around using Tasker for anyone else in the same boat.

Here's how I did it:

- Install NFCLockscreenOff Enabler then set to enable NFC when "phone is locked, but the screen is on"

- In Tasker profile, I have an event: when display turns on --> perform task to enable NFC for 5 seconds and then disable NFC.

So in effect, NFC will be enabled for 5 seconds whenever the screen turns on and off otherwise, so that addresses anyone wishing to keep NFC off when not explicitly needed. With the help of NFCLockscrenOff Enabler, we can read an NFC tag in the phone locked state within that 5 seconds. Since my phone cannot register and authorize a specific tag, I do have a vulnerability of the 5 seconds NFC enabled window where it can read any tag whenever the screen is on in lockscreen mode. However, if your phone can register and authorize only specific tag, then you're safe even in the 5 seconds NFC enabled window.

Sounds all confusing, but in practice, whenever I get in my car, I would place my phone in the craddle (with NFC tag), press the home button once and not worry about it. I would go about doing whatever I need to do like buckling up, etc.

In case you are wondering... here's what the phone actually does from the NFC read:

My phone would be in a locked state with pin security code, etc. From the single press of the home button event, the phone will bootstrap from the NFC tag read directly from the lockscreen and fire off various Tasker tasks. It proceeds to disable my PIN security, unlocks my phone to home screen, sets my phone's profile into car mode, which performs all bluetooth connectivities in my car... and when all connections are established, it presents me with a 4 button popup to launch my favorite music app and waits for my input.(or to cancel out) By the time the phone is in the ready state with the pop up choice, I would be ready for it and just tap on the music choice and it plays while I proceed to driving. :)

With the PIN security disabled while in car mode, I never have to finagle with entering the PIN everytime I turn on my phone while driving, it just turns on at the press of a button and my music controls are already there. When I exit my car, all bluetooth connections are lost, so Tasker puts me back into secure mode, so all is safe then.
[Xposed Framework Modules] Karl.morteo:
Excellent work. Thanks
[Xposed Framework Modules] Angel0id:
Do you have a system PIN or password set or not?

I can't get it to work and it would be really nice if someone could help me...

Thanks in advance.
[Xposed Framework Modules] Angel0id:
Would be nice if someone could answer and help me..
[Xposed Framework Modules] tommyleinen:
My setup is very similar to yours except I have my podcasts play automatically when it connects to BT. Sometimes this is not desired if I have a passenger and I end up mucking around to turn it off again. I am very interested in your four choice pop up, how did you arrange that? I can't find any similar apps that do that. Thanks in advance

---------- Post added at 08:42 AM ---------- Previous post was at 08:38 AM ----------

Refers to post above - had meant to quote :)
[Xposed Framework Modules] Hotbread:
I used Tasker Scenes to make a dialog pop up. It contains 4 buttons that fires the appropriate app. (and a cancel button)
[Xposed Framework Modules] tommyleinen:
Ooh that's nice. I didn't know you could do that... Have you tried car dashboard app? It has a similar interface that you can scroll for more slots. I also have the Drive app launched so I can answer calls with voice command.
[Xposed Framework Modules] dy/dx:
Thanks for the module, it's great.

But I am not sure yet how it really works:

1.) I have set up Tasker to show a message whenever android.nfc.action.TAG_CHANGED is sent. This works when I remove the tag but not when I scan a tag ...

2.) The documentation states android.nfc.action.TAG_LOST and this thread android.nfc.action.TAG_CHANGED. So what's the "right" way?

3.) When I select "Enable when phone locked but screen on", "Enable tag lost message" and set the presence check timeout to a less accurate value (say 10000): Will the tag be scanned always when the phone is off or only when it's on? In other words: Will the battery consumption be increased (when I use a less accurate values)?

Finally, will the battery consumption be higher than normal if I do NOT select "screen is off (regardless of lock state)"? I.e., does the module add something that drains the battery quicker?

Thanks
[Xposed Framework Modules] dy/dx:
Unfortunately, I have some more serious problem...

After some (unpredictible) time, the NFC subsystem seems to crash completely.

In this case, no tag can be read any more. Just nothing happens.

Also, when I go to settings -> connections, in order to check the NFC settings, the settings application crashes and hangs!

This is the logcat right after clicking on the settings:

http://pastebin.com/NiVzddNJ

Furthermore, once the phone did a complete system reboot while reading a tag!

System is cm-10.2 with Samsung GS3 (d2att)

Any chance to fix this?
[Xposed Framework Modules] DutchKarma:
I'm having the same problems, NFC system hangs after a while when using LockScreenOnOff.

- When i set it to "Screen ON , Lock ON" or Screen Off, the entire NFC system hangs after exactly one working scan.

Eg: (Screen On, Lock Screen On) , Scan Tag, Tag gets Scanned, Action is perfomed, Lock Screen again, Scan Tag , Nothing happens anymore,no tags can get scanned anymore until, the NFC service is turned off and on again.

- When i dont set it to these options but only rely on the hacked Nfc.apk, and use the module only for Tag Lost support then the system also hangs after a while, but works a couple of consecutive times.
[Xposed Framework Modules] toastfox:
I was having problems adding my creditcard's NFC code via the app before but upgraded to 1.9.7.4 and now I'm able to add it.

For some reason the saved tag for the credit card won't unlock the phone.

A regular NFC tag I have does unlock the phone though. So it's somehow related to the shorter credit card NFC tag I'm guessing.

I'm on kitkat (slimkat) for SGS3 (ATT).

---------- Post added at 01:21 PM ---------- Previous post was at 01:13 PM ----------

Forget that! It work now. : ) Duno what changed.. just started working.
[Xposed Framework Modules] daloukas:
now working

I have as lg g2 with kitkat and can't get it to work no matter what I do plz advice.
[Xposed Framework Modules] davideiudy:
I too have the same problem :(
[Xposed Framework Modules] KarlosTheJackal:
I'm having an issuing trying to understand the Tag Lost Message option & hopefully someone will be able to explain.

At the moment in my car I have a car dock with an NFC Tag in, Using a mixture of Trigger & Tasker when I place my phone in the dock it launches a "Car Mode" task, Then If I rescan the Tag (By taking it out of the dock then re-inserting it) it will close this "Car Mode" task & put my phone back to normal.

What I'm trying to achieve is to eliminate the need to have to re-insert my handset into the dock to disable to the "Car Mode". What I would love is when I pick my phone up out of the dock for that it to recognize that I have removed it & perform the last task.

But I have no idea where to start or if this Tag Lost Message option is even applicable to this scenario.

Any help at all would be most appreciated :)
[Xposed Framework Modules] Cavalier Condorelli:
The LG2 unfortunately does not handle the tag lost capability... I had searched a lot for a solution, but at the moment I can't figure out how to get it work.

Inviato dal mio LG-D802 utilizzando Tapatalk
[Xposed Framework Modules] nimo182:
Hi all. I'm LG G2 owner, my priority is to use NFC while lockscreen and, till used 4.2.2 all was OK. Last week i've updated to kit kat 4.4.2 and no way to make this awesome module working..

There's a solution/workaround? Or simply we've to wait a new version of the module?

Thx a lot
[Xposed Framework Modules] subvertz:
How do we deal with an NFC card that changes to new random ID# every time you read it?
[Xposed Framework Modules] Yannovitch:
I didn't have the courage to read all the pages but I would like to know if it is possible to make the NFC tag presence mandatory ?

(aka you need to have the NFC tag present to unlock your phone)

If yes, is it possible to make the presence of several NFC tag mandatory too ?

Would it be possible to add layers of security, having for example a first unlock with one NFC tag, then a second unlock with a PIN number ?
[Xposed Framework Modules] dark_knight35:
I experience a bug after authorizing my two Sony NFC tags:

One of them is red and the other one black. I now authorize them both and the IDs are displayed correctly, the next time I go to "authorized NFC tags", the IDs are exchanged (it only displays them falsely, in tasker I can still use the right IDs).
[Xposed Framework Modules] stealthdave:
Feature Request - Ignore Tag Function on Unlock

I don't know if this is possible with the current NFC framework, but it would be very handy if this module had an option to ignore the action attached to an NFC tag when it is used to unlock the device. If the device is unlocked, the action would be processed as normal. This would allow us to use an NFC tag we may already have with us (such as a Los Angeles Metro card, for example) for unlocking without having the phone launch an unwanted action.

This is different from the Disable Empty NFC Tags that you've already built, but could solve the same problem more narrowly for unlocking purposes.

Many thanks!

- Dave
[Xposed Framework Modules] kelyiu3000:
I am using 4.4.2 with LG PRO 2....

No work with this module.

Please help.

Thanks.
[Xposed Framework Modules] losthorizon21:
NFC Screenoff for LG G2 D802

Hi @ all & [MENTION=2011359]MohammadAG[/MENTION]

is there any update for this .apk to work with LG G2 D802 (rooted on OFW 4.4.2) ?

thanx
[Xposed Framework Modules] zac92:
module is unlocking the device but not waking up the device...

screen is not turning on

note 3 4.4.2 stock
[Xposed Framework Modules] erunantion:
I have a Nexus 5 with 4.4.2. Sometimes it will unlock and wake the device, but a lot of the time it unlocks, but the screen doesn't come on. It disables the lock button, but only when it won't unlock the device. Half the time when it does unlock, it messed with my live wallpaper and I just had a black background.

I would love to do anything I can to help get this working on my device, and others with the 4.4.2 update, but I'm kind of a newb with logcats and coding and stuff. Let me know what I can do!
[Xposed Framework Modules] cgjjaf:
Unable to authorize tag...

Hi,

This the tag I have, and I can't get it to work. Nexus 5 running CM11 with Chaos Kernel.

Thanks.
[Xposed Framework Modules] erunantion:
disabled module after problems on the 21st. re-enabled with debugging to get logcat, no problems so far! fingers crossed!!
[Xposed Framework Modules] allanak:
Nice mod, Mohammad. Have you considered extending this to receive the intents from other sources than NFC? If not, I get it...but I think this could become even more convenient by watching for a Bluetooth device connection. Some use cases I can think of are:

1. If I'm inside my car or house when my phone is paired with a BT speakerphone, it's probably safe to leave my device unlocked.

2. With all the BT low energy tags surfacing (Stick-n-find, Bringrr, Tile, XY, etc), it would be nice that as long as I'm in-range of that BT tag of my choice, my device stays unlocked (or unlocks itself upon keyguard activation, however it needs to be implemented).

Keep up the good work! :)
[Xposed Framework Modules] ZiadK87:
NFC Wakelocks

I placed an nfc tag on my car's dock. So whenever the phone is placed in the dock, it's in contact with the nfc sticker.

I have noticed that whenever the phone is in the dock, I'm getting lots of nfc wakelocks. Is this normal? Is there some way to prevent/minimize these wakelocks or is this just the regular behavior since I enabled nfc detection when the screen is off.

I have a Note 3 running on stock Kitkat and I have a tasker profile for associated with that nfc tag.
[Xposed Framework Modules] Mirac78:
LG G2 on 4.2.2..stock, rooted and can't get to work :(..

Hope that the new versions solve my problem, cause is so stupid to MUST have unlocked device to triger NFC..google give us option on this!
[Xposed Framework Modules] klau1:
My screen turns on whenever the Phone periodically reads the NFC sticker.

So if I leave the phone on top of a NFC Phone Holder, the screen will turn on every periodic check.

Is there anyway to prevent the screen from turning on?
[Xposed Framework Modules] aalupatti:
Galaxy note 3 gets unlocked but does not turn on.
[Xposed Framework Modules] losthorizon21:
Please help @MohammadAG

Hi [MENTION=2011359]MohammadAG[/MENTION] !

Can you please update your app to get ti work on 4.4.2 Kitkat ? Don`t want to downgrade my D802 to 4.2.2 :( but I`m missing your NFCLockedscreenoff on my phone. plz help
[Xposed Framework Modules] MohammadAG:
It supports KitKat, any changes to OEM devices I don't own won't be done by me, sorry.

(Patches accepted on Github)
[Xposed Framework Modules] Mirac78:
You get to work on 4.2.2. Asking cause i can't get to work in my D801 4.2.2 :(

Sent from my LG-D801
[Xposed Framework Modules] losthorizon21:
Yes it worked on my D802 32GB version on custom 4.2.2 FLEXROM

http://xdaforums.com/showthread.php?t=2589439

It also worked stock 4.2.2 and it worked also on a paranoid ROM (dont remember what it was). Right now I have the Pardus HD v7.0 an awsome ROM but cant get this app work :/
[Xposed Framework Modules] Mirac78:
Tnx on info, I'm on stock 4.2.2 and can,t get it to work. Use a few nfc stickers and sonetimes is pain to unlock the device for tasks. Stupid D801 TM!

Sent from my LG-D801
[Xposed Framework Modules] Addicted_to_Android:
You have got to add the option for a toast message showing the title of the authorized tag that was used to unlock the phone. For instance, I authorized a tag and named it Phone Unlocked. So it would be nice for a toast to pop up with the test "Phone Unlocked" everyone I used that said tag. Thanks. Great work to all who were involved.
[Xposed Framework Modules] GMFalka:
Hello!

Can i have a quick help here?

Got everything together, tasker task is firing when the phone is on the nfc and when taking it off, but no idea how to use those two "extra" parameter. :silly:

Thanks in advance!
[Xposed Framework Modules] hotsync100:
Does not work on my MotoX Developer edition 4.4.2
[Xposed Framework Modules] aalupatti:
FYI :

Many phones have issues with waking up. I use Galaxy note 3 and this bug is present. So......

There are few things you can do.

One that consistently work for me.

1- Enable NFC unlocker. This will keep the NFC on even when device is sleeping. I have not seen an added increase in battery usage.

2- Install secure settings app from play store. ( This is the only app that I have seen to have the option to wake up a device option. Surprising )

3- Use an app like Easy profiles ( The one I use ) or Llama to create an event - With condition - On detection of NFC tag and Action - to implement secure settings short cut to wake up the device.

Step 3 can be made to work via tasker too but will need additional apps to make tasker detect nfc and I found that it is not very consistent

Hope this helps.

Request for OP [MENTION=2011359]MohammadAG[/MENTION]

- Have an option in the app to wake up device on NFC detect. This will be the best

or atleast

- Please have an option in the app to initiate a shortcut. This can make life easy implementing wake up device using secure settings.

thanks
[Xposed Framework Modules] doumer:
thanks for this, working great on latest PA4.3 :)

Hoping for my NFC-Ring to arrive soon ...
[Xposed Framework Modules] immelmann:
great work

First, thank u for your great work,

I have a few questions i'd like to get some help with:

- this Xposed module have to bypass the lockscreen and enable the NFC while screen is off. Should it also wake up the phone or not:confused:

(i have stock note 3 KitKat and it doesnt wake up my phone. I implement this function (wake up) by Tasker using the intent with action "android.nfc.action.TAG_CHANGED"

- where can i use the variables %tag_uuid and %tag_present in Tasker:confused: (it must be easy but i cant find it)

- using this Xposed module i recognize the time-difference by using NFC while screen is on (always under 1 sec) and while screen is off (1-3 sec). Can someone confirm this:confused:

- if u want to use it with the NFC Ring, the system will recognize the NFC tag several times because u move u finger with the ring. That ist not good because of the NFC sound (that i can deactivate with Xposed module), the NFC massage (that i can not deactivate) and additional battery drain. Do someone have ideas how to avoid this:confused:

(sorry for my english)
[Xposed Framework Modules] NisseDILLIGAF:
[MENTION=2011359]MohammadAG[/MENTION]

Like immelmann I have the same problem with my tag (implant in left hand)

When it unlocks the screen it also opens the web browser (I have a webpage address on the tag)

Would it be possible to add a delay just after unlocking so that the tag wont trigger several times?

Thanx for your work on this Xposed module!!
[Xposed Framework Modules] kerke123:
My tag is autorized, but still can't unlock my htc one x

I can authorize a tag, but still can't unlock my phone (htc one X-rooted, with trigger and with tasker-with exteranl access, and secure settings pro with administrator premisions ) rom wich I use is original htc 4.2.2 android, ...can somebody help me with this?

Best regards

Mathew
[Xposed Framework Modules] aalupatti:
Does it not unlock or does it not turn the screen on ?
[Xposed Framework Modules] kerke123:
It does not turn the screen on.

It does not turn the screen on.
[Xposed Framework Modules] aalupatti:
Happen with many devices

Here is what I have done

- You need additional apps - Secure settings and easyprofiles

Secure settings has an option to turn on the screen ( actions> Wake device)

Easy profiles has option to set an event on detecting NFC and execute short cut to secure settings.

This sounds complicated but easy to do and works well for me.

( you can delete all other events in easy profiles. )
[Xposed Framework Modules] kuwlij:
same here. not working on LG G2 D802 with Kitkat 4.4.2
[Xposed Framework Modules] aalupatti:
Did u try the post above urs
[Xposed Framework Modules] kuwlij:
Sorry, I was actually replying to a previous post:

I have tasker and NFC tasks and have set up NFC tasks to launch a tasker task once a tag is read (that's a mouthful!).

the tags are only being read once i unlock, no matter what setting i set NFClockscreenoff to.

I would literally, have the phone placed on the tag with screen off (nothing happens), turn it on to show the lockscreen(nothing happens), then only when I unlock the phone does the tag get identified.
[Xposed Framework Modules] Iraos:
Tag Memory Size

How much memory do the tags need for this program?
[Xposed Framework Modules] GMFalka:
Here is some help for that!

Picture
[Xposed Framework Modules] Mysticodex:
Sad that HID tags don't work with the NFC readers on my Nexus 5 :(
[Xposed Framework Modules] maniac98066:
E988

Doesn't work on my LG Optimus G Pro E988. Can someone help?
[Xposed Framework Modules] vitoski:
The screen off option doesn't work on stock 4.4.2 (rooted) Moto X. Everything is installed as it should be, but the option simply doesn't work. Phone does not recognize tag until the screen is unlocked.
[Xposed Framework Modules] LifeAsADroid:
Doesn't your Moto X have the Moto Skip option? Check your settings --> security --> NFC unlock. I thought this was one of the big selling points of the Moto X (along with "OK Google").
[Xposed Framework Modules] vitoski:
Yes it does, but it works only with magnetic tag (Motorola Skip) and basically unlocks phone. However with NFC reading any tags when screen is off and tasker I have plenty of possibilities.
[Xposed Framework Modules] kuwlij:
I am using tasker to turn on NFC when screen turns on (noticed battery drain with it on all the time.. Don't know if its just in my head though..) But tags don't get read until unlocked.. Stock 4.4.2 rooted.
[Xposed Framework Modules] LifeAsADroid:
LOL at your avatar pic, that's just awesome.

Back to the topic at hand - what sorts of things do you plan to set up (or have already done) through tasker using the NFC tags as a trigger? Just curious if there are any sa-weet ideas out there that I need to get in on for my own uses.

So you're saying that the Moto Skip function only works with their own skip tags, not with any NFC tag? I thought I read somewhere that any tag would work...

---------- Post added at 11:27 AM ---------- Previous post was at 11:26 AM ----------

I've noticed the same sort of problem with some different tasker tasks. It seems like "on" to tasker means "on and unlocked". I think there's a way to make it respond when locked, but I haven't figured it out yet, been busy setting up other 4.4.x features on my new OS update.
[Xposed Framework Modules] vitoski:
I have a car radio with bluetooth and I'd like my phone to turn on automatically BT when I put it on nfc tag in my car. This case I would not even need to turn on my phone and unlock to pair it with car BT radio.

Moreover having moto x scanning nfc while screen off would give unlimited possibilities of configuration with Tasker :)

Btw moto x Skip tag is magnetic tag. Only this magnetic tag can wake up phone and unlock. In other words moto x works with any tag, but only skip can wake it and unlock... Unless there is a patch or this xposed module working on stock rom:)
[Xposed Framework Modules] McAtom:
Change NFC Screen On/Off Policy Dynamically

Hello, thanks for the awesome module!

I'm curious if there's a way to change the "Enable NFC When" setting using rules? (I'm using tasker, but am not limited to it)

Basically I'd like to have the policy be 'Phone is locked, but the screen is on' for all time except for when a tag is discovered, at which point I'd like to switch to on all the time until the tag is lost, then switch back to when the screen is on.

Thanks a ton for providing your source by the way, much obliged!
[Xposed Framework Modules] LifeAsADroid:
My apologies if this has been asked before.

The module is working great. Turns screen on, unlocks phone as it should. My problem is that when I use my new NFC tags, the phone unlocks and goes to a screen showing "new tag collected" and labels it as "empty tag". The tag has been registered in the nodule (obviously since it is being recognized) but am I supposed to write something to the tag? Is there a way to stop the phone from showing the "new tag collected" screen and just unlock the phone?

Thanks!

EDIT: I should have looked a little harder, turns out there is an Xposed module to disable the "new tag discovered" screen.

Screen still shows up for a split second, then disappears. This will do for now, until someone helps me with a different method to completely remove the screen from showing up for a cleaner experience.

Thanks!
[Xposed Framework Modules] ClowReedd:
This module is great!! I always wanted to use NFC while screen off, and only depended on custom ROMs to achieve it (and most of the time the ROM didn't have the option). But now it works with Stock Rom, AND it unlocks my phone... you Sir, are awesome.

Thank you so much!!
[Xposed Framework Modules] gut4:
Will this work with 4.4.3 nexus 5?
[Xposed Framework Modules] themaker69:
Not working

Offscreen is not working on my 4.4.3 Moto X.