yashsingh1/xdaforums huggingface dataset:
[Xposed Framework Modules] XlAfbk:
I very seldomly get a non-responsive screen when disabling keyguard from secure settings. I guess it's either a bug in Secure Settings or Android itself.

However after a reboot it's working fine, so it's probably the modification of a "secure" setting that android doesn't like.
[Xposed Framework Modules] RoundBagel:
I suppose that may be it. I never have to reboot as I just make the phone sleep and unlock by putting in my pin manually to unlock. Thing is, my workout for the hardware home button is through pie controls as it works as a home button would and doesn't cause a black screen. I've seen older videos with this mod using a device running kitkat and I suppose something changed in Android Lollipop. I'm on 5.1.1
[Xposed Framework Modules] Beakhole:
This mod works! I'm running Pure Nexus 6.0.1 on the Nexus 6 and I used your CM13 apk. The only problem I have is this: I use SmartLock on my phone to unlock my phone when I scan my NFC tag. The mod worked in keeping the NFC polling on with the screen off but it's not unlocking my PIN locked screen. Does anyone know how to make this screen off polling mod work with SmartLock? What I'm really looking for is to be able to scan my NFC tag with the screen off and have it wake up and unlock the screen. Right now it doesn't unlock the PIN. Am I doing something wrong?
[Xposed Framework Modules] RoundBagel:
hey! thanks for this post. can't wait for Android 6.0.1 exodus. I'm guessing you'll need to use tasker + secure settings + trigger to wake device and then your smart lock will do all of the work
[Xposed Framework Modules] Beakhole:
So does anyone know how on Lollipop or Marshmallow to still have NFC polling enabled with the modded nfc apk but still be able to use SmartLock to unlock my screen with my NFC tag?
[Xposed Framework Modules] RoundBagel:
Here's a link to what I did: https://learn.adafruit.com/unlock-android-with-wearable-nfc/nfc-plus-tasker-automation

Only problem is that the home button causes black screen in lollipop I think... something to do with force removing the keyguard that android doesn't like
[Xposed Framework Modules] Beakhole:
Thanks for this. I took these instructions and did my own version of it. Below is my Tasker Profile I use with no issues to turn on my screen and unlock it when the PIN lock happens to be on:

Profile: NFC Unlock (159)
Priority: 50
Event: [URL="https://play.google.com/store/apps/details?id=com.mobij.nfcstarterplugin&hl=en"]NFC Starter[/URL] [ Configuration:Waiting for tag x:xx:xx:xx:xx:x:xxxx ]
Enter: NFC Unlock (160)
A1: Vibrate [ Time:300 ]
A2: If [ %Pin ~ 0 ]
A3: Run Shell [ Command:input keyevent KEYCODE_WAKEUP Timeout (Seconds):0 Use Root:eek:n Store Output In: Store Errors In: Store Result In: ]
A4: Else If [ %Pin ~ 1 ]
A5: Secure Settings [ Configuration:Clear Password Package:com.intangibleobject.securesettings.plugin Name:Secure Settings Timeout (Seconds):0 ]
A6: Run Shell [ Command:input keyevent KEYCODE_WAKEUP Timeout (Seconds):0 Use Root:eek:n Store Output In: Store Errors In: Store Result In: ]
A7: Wait [ MS:0 Seconds:5 Minutes:0 Hours:0 Days:0 ]
A8: Secure Settings [ Configuration:Set Pin Package:com.intangibleobject.securesettings.plugin Name:Secure Settings Timeout (Seconds):0 ]
A9: End If
[Xposed Framework Modules] RoundBagel:
:o wow that looks complicated! I should give it a a try sometime

Here's mine with the addition of the keyguard plugin that essentially works around that black screen of death caused by lollipop

https://play.google.com/store/apps/details?id=com.balda.keyguard
[Xposed Framework Modules] zeroprobe:
Modded and tested on Nexus 5 Marshmallow 6.0.1

NFC working with screen off.

First delete /system/apk/NfcNci/oat/NfcNci.odex

Copy the attached to /system/apk/NfcNci

Set File permission to 644.

Thanks for the information.
[Xposed Framework Modules] Nephiel:
I just modified NFCLockscreenOff to (sort of) work on Marshmallow. Only on the lockscreen so far - NFC with screen off doesn't seem to play nice with Doze. And no auto NFC unlock, since there's Smart Lock already.

Code is on https://github.com/Nephiel/NFCLockScreenOffEnablerMM if you want to have a look.
[Xposed Framework Modules] RoundBagel:
good work! hope a dev here picks this up and takes it further for the future

---------- Post added at 12:18 AM ---------- Previous post was at 12:16 AM ----------

awesome. 6.0.1 nfcnci will come in handy for those on MM
[Xposed Framework Modules] XlAfbk:
As it doesn't seem like the Xposed-module will be made Lollipop-compatible anytime soon but we'll have to use the modded Nfc.apk for the time being I collected all the relevant information from this thread:

How does it work?

The Xposed module works only partially on Lollipop: it's not able to enable NFC with screen off/on lockscreen -> instead you have to use a modified Nfc.apk/NfcNci.apk to enable screen-off/lockscreen Nfc.

The Xposed-mod still works for sending intents for NFC found/lost -> if you need that use modded-apk + Xposed module.

Unlocking is not working properly. You'll have to use something like Tasker+SecureSettings to capture the intents and unlock.

Below information is regarding modded apks (I don't think the Xposed needs an further explanation).

Flashing Instructions:

http://xdaforums.com/showpost.php?p=59780557&postcount=469

Modded apks:

Marshmallow (Android 6):

Xposed-module with Lockscreen support (but not screen off): https://github.com/Nephiel/NFCLockScreenOffEnablerMM/blob/master/build/NFCLockscreenoffEnablerMM.apk

CM13 NfcNci.apk: http://xdaforums.com/showpost.php?p=64078244&postcount=646

Google ROM 6.0.1 (Nexus 5) NfcNci.apk: http://xdaforums.com/showpost.php?p=64609795&postcount=666

Lollipop (Android 5):

CM12.1 NfcNci.apk: http://xdaforums.com/showpost.php?p=60193450&postcount=524

CM12.1 Nfc.apk: http://xdaforums.com/showpost.php?p=60673002&postcount=539

CM12 NfcNci.apk: http://xdaforums.com/showpost.php?p=59780557&postcount=469

CM12 Nfc.apk: http://xdaforums.com/showpost.php?p=59818534&postcount=480

Google ROM 5.0.1 (Nexus 4): http://xdaforums.com/showpost.php?p=59983145&postcount=511

OnePlus One, CM12.1S: http://xdaforums.com/showpost.php?p=62535054&postcount=602

OnePlus One, CM12S: http://xdaforums.com/showpost.php?p=60124607&postcount=517

Galaxy S4 (5.0.1): http://xdaforums.com/showpost.php?p=62287733&postcount=586

Xperia Z3 Compact: http://xdaforums.com/z3-compact/themes-apps/nfc-screenoff-mod-t3109519

LG G3 (5.0): http://xdaforums.com/showpost.php?p=62287733&postcount=644

Lenovo Vibe Z2 Pro with Euphoria 1.1 (Andriod 5.1.1): http://xdaforums.com/showpost.php?p=64932665&postcount=674

Modding instructions:

Mod-Instructions: http://xdaforums.com/showpost.php?p=59941326&postcount=497

For Lockscreen-Only mod: http://xdaforums.com/showpost.php?p=60080506&postcount=516

Addon.d script for keeping the modded apk when flashing nightlies:

http://xdaforums.com/showpost.php?p=60260511&postcount=529
[Xposed Framework Modules] Phoenix09:
works fine on 5.1.1 too

thanks
[Xposed Framework Modules] stchoh:
hi mate.. i am using darklord v2.1... could someone have experience using NFClockscreenOff? and can teach me how to install it?
[Xposed Framework Modules] Ryav:
I have problem with unlocking. I autorized NFC, but phone will not unlocking. Use Moscow subway card for experiment, is it the reason?

IC Manuf.: Mikron JSC

IC Type: Unknown IC

Type A (ISO/IEC 14443-3)

Phone: Moto Droid Turbo XT1254
[Xposed Framework Modules] Beakhole:
Are you trying to use Lollipop's Smartlock feature to unlock your phone?
[Xposed Framework Modules] xoror:
Hello,

I tried to use NfcNci.apk attached to the post of this thread but without any success. My device is Lenovo Vibe Z2 Pro with Euphoria 1.1 (Andriod 5.1.1). So I had to use the instruction from this post http://xdaforums.com/showpost.php?p=59941326&postcount=497 by XlAfbk.

The worked result is in the attachment.
[Xposed Framework Modules] riki03:
Unlock not allow with the second tag

Hello. My Sony Tags are autorithed and I see on the list of unlock.

The first tag i autorized is working but instead any second tag I add doesn' get the unlock permission. How is it possibile? The format tag is the same, same factory.

More thing, I have install the app Slidelock for notification popup and with proper unlock feature, in this case, when I swich on the lockscreen of this 3d app I can't get the unlock with the tag, is it possibile to make something please?

Thank you a lot
[Xposed Framework Modules] UncannyValley:
I followed the step by step instructions to change the Nfc.apk on my Nexus 7 (5.1.1).

At first it works fine (even screen off) but then after a short while NFC stops working completely. Even with unlocked screen on it won't recognize any tag anymore.

I found out that when i disable NFC from the settings and switch it back on (which is only possible after I leave and reenter the settings screen!) it is working again for a while. But not for long either. Rebooting has the same effect.

:confused:

Step 13 made me wonder a bit. In the example it says to change that line to: if-lt p1, v2, :cond_xy which is like in the original line for the N7.

As it also says to switch the 2 parameters, i tried that as well, but I see no difference.

Has anyone an idea what could be wrong or might want to have a look at my smali files?
[Xposed Framework Modules] derekoh:
Hi. I've tried to find what I need in this thread but there's too much information so I'm not exactly sure what I need - can you help?

I'm running CM13 (latest nightly) on an LG G3 (d855). All I want to do is have NFC enabled when the screen is on but phone locked, so that I don't have to unlock the phone each time to use an NFC tag.

Thanks
[Xposed Framework Modules] XlAfbk:
https://github.com/Nephiel/NFCLockScreenOffEnablerMM/blob/master/build/NFCLockscreenoffEnablerMM.apk
[Xposed Framework Modules] deledav:
Hi,

it works on every device? I have a HTC m9 with Marshmallow.

It only install this APK?
[Xposed Framework Modules] UncannyValley:
:eek:

...

About my problem with the patched apk on my Nexus7, if i would flash CM12 will it work? :confused:
[Xposed Framework Modules] Be4st:
Has anyone managed to get this working on a Galaxy S5 running Cyanogen 12.1? I cannot for the life of me get this working

**EDIT**

Never mind. I found out that Cyanogen has a 'Screen On' version built in already. You just need to activate Smart Lock in settings and add the NFC chip as a device. Effortless activation of Bluetooth, connecting to stereo, firing up WinAmp, playing certain playlist and starting Navigation app with a flick of a wrist. I can now drive from my house a full 30 seconds quicker now... lol
[Xposed Framework Modules] Nosepull:
Where did you find that setting? Using CM 12.1 without any Google stuff, I didn't find any such options.
[Xposed Framework Modules] Be4st:
Ah, its entirely possible that GApps added it. Didn't think of that. Just in case it didn't, head to Settings>Lock Screen>Trust Agents. You should find Smart Lock (Google) inside there. If its not, then it is likely that GApps added it. If it is there, activate it and press back until you reach the main Lock Screen settings menu and scroll to the bottom for the Smart Lock settings.
[Xposed Framework Modules] RepeatUntilTheEnd:
I'm on an XT1096 (Verizon Moto X 2014) and the module is not working. The phone is bootloader unlocked with a stock 5.1 ROM. Please let me know if I can help with testing. Thank you
[Xposed Framework Modules] NobbyLK:
Hi has anyone get this working on a Huawei Mate 8 with Kang Rom ?
[Xposed Framework Modules] hasenbolle:
For LG G4 look here: http://xdaforums.com/g4/development/debloat-debloatex-v1-nfc-mod-t3342350
[Xposed Framework Modules] Urtaev:
Hi,everyone!

I'd made moded NFC.apk for my Moto X (xt1053).5.1 (Many thank to XlAfbk)

It's work fine for me.

One question.

Do I need to install xposed module NFCLockscreenOff Enabler?

If not,so how I can manage for trusted tugs?
[Xposed Framework Modules] vitoski:
Would you mind sharing the files you have created? Moreover are you on the stock 5.1 rom or any custom one?

Thanks

Sent from my XT1052
[Xposed Framework Modules] Urtaev:
Hi,there!

Firmware from here

And this flashable zip

(XT1053 Retail GSM Unlocked Modded Beta 1)

Sorry,but how I can attach the file?

NFC.apk
[Xposed Framework Modules] ivo1bg:
Hi. May I use this mod on Galaxy S7 Edge with MM stock rooted ROM?
[Xposed Framework Modules] Urtaev:
Someone please tell me, do I need to install xposed module NFCLockscreenOff Enabler(with my modded NFC.apk)?
[Xposed Framework Modules] XlAfbk:
It's all in my regular summary-posts: http://xdaforums.com/showpost.php?p=64619513&postcount=669
[Xposed Framework Modules] relains:
I can't get this plugin to work, below are the steps I've taken.

I have HTC One E8 Dual Sim (M8Sw) - rooted - Android 5.0.2 Lollipop. I've installed the Xposed framework via TWRP, I chose sdk21 - arm 32bit - v82 version, after that I've installed XposedInstaller_3.0-alpha4.apk. In the application when I go to framework it says "Xposed framework version 82 is active". Next thing I did was to install NFC LockScreenOff Enabler. I've sucessfully added my tag to authorized and change Enable NFC when screen is off.

After all of this I still can't wake my device when the screen is off or locked. I added my Xposed log file to this post. Does anyone know solution to this problem?
[Xposed Framework Modules] XlAfbk:
click the link in the post above yours
[Xposed Framework Modules] kakrikakri:
Thanks for your work.

Is there any possibility in the future of a modded apk where NFC works in Android Marshmallow with screen off and phone locked?

Thanks
[Xposed Framework Modules] XlAfbk:
already exists: http://xdaforums.com/showpost.php?p=64619513&postcount=669
[Xposed Framework Modules] kakrikakri:
Hey, Thanks.

The cm13 link routes to a post with cm12.1 apk download link. I tried it but the App did not install.
[Xposed Framework Modules] XlAfbk:
fixed the cm13 link in aboive post, should be http://xdaforums.com/showpost.php?p=64078244&postcount=646
[Xposed Framework Modules] zeon.hu:
Hi!

Has anyone get this working on a Huawei Ascend P7, with KangVip Rom ?

Android 5.1.1

What can I do to work in closed screen?

Thx!
[Xposed Framework Modules] codetesting:
Not working with my Google nexus 5, cm 13 (v 13.0-20160418-SNAPSHOT-ZNH0EAO2NM-hammerhead). Tag is reading I can hear sound but not unlocking/ waking the screen.
[Xposed Framework Modules] XlAfbk:
Android 6 doesn't need this module, Smart Lock does the job.
[Xposed Framework Modules] codetesting:
Smart Lock works only when the device screen is on. But not when the screen is off. it would be great if there is a way to unlock phone using nfc tag even when the phone is in standby.
[Xposed Framework Modules] ConnorMcLe0d:
Anyone managed to make it work with zenfone 2 ZE551ML ?

I'm new to root / unlock bootloader / custom recovery / etc... so i rooted few weeks ago because i wanted my nfc tag to be able to toggle options such as gps.

Then i wanted to use nfc tags when screen is off, so i installed today official asus bootloader unlocker, then twrp-3.0.0-0-Z00A.img custom recovery, then i installed xposed firmware via adb, and then this nfc module, with screenoff option enabled, even authorized tags, but nothing is happening.

I'm lost.

I have trigger installed, tasker (trial) and nfc for tasker.

Running android 5.0 build 2.20.40.184

Also using flip cover.

Thanks if someone can help.
[Xposed Framework Modules] 0Artur0:
Does it work with LG G3?
[Xposed Framework Modules] d_borghi:
Hi all,

In my thl t11, cfw 4.2.2, this module woks only if i make a sooft reboot. If i reboot regularly the module doesn't work, and the nfc tag is not recognize when screen is off and the phone locked.

Any solutions?

Tnx
[Xposed Framework Modules] Asselnik:
Sony Xperia Z1 Compact

Hello,

i want mod my Nfc.apk for the Sony Xperia Z1 Compact, but when i extract the Nfc.apk, i could not see the classes.dex.

Could anyone help me?
[Xposed Framework Modules] Na!th:
Did u manage to read nfc-tags while screen off? i got the same question!

the module seems to not work in MM.

i also use RR-Rom on My Galaxy S5 (klte), there is an option for NFC build in: NFC polling mode (screen off, screen on locked, screen on unlocked). The option "screen off" seems to not work and i still dont get any tasks to work for example. does this option the same then the xposed module?

Does this module work under MM now?
[Xposed Framework Modules] nevvjeff:
I enable the mfc reading when the screen is off on my lg g4 with This tread

But I can't unlock my phone with it, the sreen still off.

When I manually wake my phone, I'm on lockscreen and the nfc shortcut was launch when I unlock it.

Can someone please guide us to unlock our phone LP or MM whit nfc please???
[Xposed Framework Modules] xdause:
I want to state this is not necessarily true. smart lock didn't work on android 6 for my s3 because the nfc doesn't seem to be running (it's turned on) even on when the phone is locked when screen is on/off; probably a Cyanogenmod problem. Can't get this mod to work either to enable nfc to unlock it.
[Xposed Framework Modules] penaqui:
Z3C MM

Does not work on my Xperia Z3C whith Android 6.0.1
[Xposed Framework Modules] Stefan0171:
LG V10 Dual SIM 561N no funktion when screen is of. Can you fix this?
[Xposed Framework Modules] neilvv:
Elephone P9000 with MM is not working
[Xposed Framework Modules] Errik512:
Samsung A3 2016 no functon when screen lock & off

Samsung A3 2016 no functon when screen lock & off.

When screen on work ok
[Xposed Framework Modules] Necromancer3:
anyone knows how to do it for Marshmallow?

not sure how to decompile the Marshmallow apk. tried using Apktool without success. what framework file is needed?
[Xposed Framework Modules] yakie996:
please support Android 6.0.1 moto x style this module is still better than the integrated smart lock feature
[Xposed Framework Modules] w. junior:
I followed the tutorial and I was able to modify the NfcNci.apk to work with the screen turned off.

It is working with the screen off (the phone vibrates when I touch the TAG), but I lost the ability to unlock the phone. Smart Lock stopped working with NFC.

Any tips?

Z3 Dual MM FW 23.5.A.1.291
[Xposed Framework Modules] w. junior:
[MENTION=617962]nevvjeff[/MENTION]

You mean that the NFC is active when the screen is off but the screen does not wake up?

Try this workaround:

- Install Tasker

- Install NFC for tasker

- Install Secure Settings

- Set up Smart Lock to unlock the device with your NFC TAG

- Open NFC for Tasker and scan your TAG

- Create a Profile in tasker using NFC plugin and scan your TAG

- Create a task using the Secure plugin Settings> Device Wake> Wake Type: Screen Bright> Duration: 2 Second

I made a video of an workaround, since the Smart Lock stopped working with NFC TAG, is the same solution above but with a few more steps.
[Xposed Framework Modules] nevvjeff:
For me this work fine to wake up the device, but it come to lockscreen, seems smartlock don't recognised my nfc tag or not work as well......
[Xposed Framework Modules] B0nb0n:
Can i use this file for the marshmallow as well? (the smartlock way is not working for me)
[Xposed Framework Modules] eboosted:
Sansung S7 Edge, not working when the screen is off or the device locked. How can I help you to include support for this phone?
[Xposed Framework Modules] bergpb:
Not work for me when the screen is off or the device locked, device Sony Xperia Z3 Compact, stock rom.
[Xposed Framework Modules] dave.emuobo:
thanks alot for this. could you please help me > my nfc.apk didnt contain "android.intent.action.SCREEN_OFF" and the other intents. any pointers? :D

I am on Android L 5.0.1 , HTC M8
[Xposed Framework Modules] nickyip123:
Thanks for your works! I want to know whether third-party lockers work too in advance. Thanks.
[Xposed Framework Modules] SomeGuy2008:
I'm not having any luck getting this to work with my Galaxy S5 (Verizon) running CM13. Should I expect it to work?
[Xposed Framework Modules] robertusIT:
nexus 5 with marshmallow, doesn't works when display is off.

how can i do that?
[Xposed Framework Modules] nambont12:
Thank [MENTION=2832063]XlAfbk[/MENTION] for sumary post at #669

I'm using CM13 Android 6.0.1, my Nfc app was located in: /system/app/Nfc/Nfc.apk just like [MENTION=3541168]pawci0[/MENTION] #480 but I can not make it run. I installed Xposed module for Android M at #669. Turn it on and activate in Xposed installer. Reboot the phone and it still the same situation. There's nothing happen (sound, vibrate) when I tap my NFC.

Attachment is my Nfc.apk

Please, someone mod it for me since I'm not good in coding, compile something like .apk I tried but it force close multiple times. I don't know why?

//

I just want to unlock (or bypass PIN code) with my NFC tag. Android M have Smart Lock, but somehow, all of it features (body detection, trust device bluetooth, trust place) worked except NFC tag trust device.

I've followed step by step to set up Smart Lock but when I wake my phone and tap NFC tag, there's nothing happen. When I unlock it with my PIN code, there's a immediately sound for NFC tag found. I assume that when my lockscreen is on, NFC service doesn't run. So I have to take NFC Unlocking (NFCLockscreenOff Enabler) as a solution.
[Xposed Framework Modules] Necromancer3:
As it says, its for Lollipop.

I tried the same on Marshmallow 6.0 V30c , de-odex the apk, then applied the changes.

It didnt crash, but it didn't work either.

NFC only worked once the phone was unlocked, and it only worked once. After reading 1 nfc tag, the NFC had to be turned off, then on again to read another NFC.

So all in all it doesn't work on marshmallow.

Need updated instructions for marshmallow, if there is someone who understands in it left.
[Xposed Framework Modules] William196:
Hi this is not working for me

Hi my phone is a Motorola Droid turbo,I am running CM 13, can you please have a look at this. Thank you
[Xposed Framework Modules] Nephiel:
For what it's worth, I have adapted this module to run on Marshmallow. GitHub source here.

APK here. It works for me. YMMV.
[Xposed Framework Modules] Orphee:
Hello,

Could you please try to port it to Nougat ?

I tried your APK on N, in logcat : MODE_WORLD_READABLE no longer supported. It seems to be a known issue on N :

https://xdaforums.com/xposed/development/modeworldreadable-android-n-t3407123

Thank you
[Xposed Framework Modules] Nephiel:
I'm afraid I just don't have the time, nor a Nougat device to test with :(
[Xposed Framework Modules] amoir:
Any chance of adding the "Enable NFC with screen off" feature to the Marshmallow version?
[Xposed Framework Modules] Nephiel:
When I tested it in Marshmallow, it did not work because of the Doze functionality, so I had to leave it out.
[Xposed Framework Modules] Beloborod:
Wileyfox Swift 2x

Hello! Smartphone Wileyfox Swift 2X, does not work a level function (nfc when the screen is off or locked), other functions work. XPosed and the module is installed correctly, into the internal memory. (sorry, translation by Google))
[Xposed Framework Modules] LRail:
FYI:

Android 5 Lollipop

The xposed module repo says this only supports Android 4 Kitkat.

But...

A have Version 1.9.77 of this module, on my Kyocera Durascout running the russian stripped down version of the Kyocera/Verizon 5.1.1 OTA update

http://repo.xposed.info/module/pk.qwerty12.nfclockscreenoffenabler

The NFC Tag found and lost function is what I wanted, and it works. (some other functions don't work but that can be likely solved with tasker and secure settings)

YMMV
[Xposed Framework Modules] sirs2k:
Any new development on this guys?

It would be really helpful!
[Xposed Framework Modules] jhebtio:
Any chance to support Oreo?
[Xposed Framework Modules] _hunter:
Same question here: any chances on getting Android 7 (7.1.2) support?