yashsingh1/xdaforums huggingface dataset:
[Xposed Framework Modules] kralkral:
please add an option to turn screen on automatically {if possible} :)
[Xposed Framework Modules] elmerohueso:
You should use an app like Tasker of NFC ReTag to do this.
[Xposed Framework Modules] kralkral:
can u give me tasker profile for do this ?
[Xposed Framework Modules] QuentinLeMee:
Hi !!

I've just upgraded my Xperia Z3C to 5.0.2 !

I've tried to follow the tuto, but my firmware have odex files...

How can I do to modify the NfcNci apk ?

Thanks a lot !!!
[Xposed Framework Modules] adomm420:
Hi, does it work on Stock lollipop 5.0.1?
[Xposed Framework Modules] saqul:
LG G2

Hi, does it work on Stock LG G2 D802 stock ROM KK 4.4.2 :( any suggestions?
[Xposed Framework Modules] ackzsel:
modified Nfc.apk for CM12.1

Hi,

I saw modified NfcNci.apks for CM12.1 in this thread. Apparently this can differ from one device to another because I run an unofficial CM12.1 for i9300 and I have Nfc.apk instead of NfcNci.apk.

No problem. I modified Nfc.apk myself for both screen-on and screen-off. Tested and works on I9300 running CM12.1 weekly 5 (edit: still works on build 18).

TL;DR: Modified Nfc.apk for CM12.1
[Xposed Framework Modules] XlAfbk:
With the new Xposed Alpha for 5.1/CM12.1 we're back to the previous 5.0/CM12 state: Xposed + modded apk gives you the full functionality - and probably also the same problems in deep sleep.
[Xposed Framework Modules] pawci0:
Turns out that indeed this worked even in deep sleep - I just had to wait sometimes few more seconds.

Unfortunatelly I noticed quite high battery drain when the phone was left on a tag. This might be also the fault of Xposed module. Have you ever had this issue?
[Xposed Framework Modules] Raymond_Tengen:
Hi,

I've recently went back to Samsung N7105 (t0lte) stock rom 4.4.2 and installed this module back in Xposed Module. I set the settings such that NFC is active when screen is off. When scanned my NFC ring, the screen was still off. I find it surprising as it was previous working in Android 4.3 JB stock and it would still work with both CM11 and LiquidSmooth running Android 4.4.4. At first, I thought my NFC component was malfunctioning, but when I turned the screen on, the "lock screen" was already unlocked, just that the screen did not wake up.

I've read the logs and noted this issue with KitKat was resolved since version 1.9.7.2. Has anyone encountered this problem? Could this be a ROM specific issue?

L.
[Xposed Framework Modules] XlAfbk:
I can't really tell as if it's sitting on the tag then it's in car mode which means GPS on, navigation active, music playing. So battery drain is huge anyway.

But from what I understand NFC battery drain can't be that high, just for physical reasons.
[Xposed Framework Modules] Raymond_Tengen:
I noticed something very strange today. For some reasons, when I'm charging the phone with the screen turned off, the phone would unlock itself when I approach my NFC ring and the screen would wake up just like before. As soon as unplug the wire, the misbehavior returns (as in the quote). Have anyone encountered this strange behavior? As mentioned before, this does not happen with CM11 or LiquidSmooth ROM.
[Xposed Framework Modules] XlAfbk:
sounds like a deep sleep issue. charging will usually prevent deep sleep
[Xposed Framework Modules] Marv42:
Any idea for sony z1compact with LockedBoatloader and Stock 5.0.2 LP?
[Xposed Framework Modules] hasenbolle:
I've modded the apk for Sony Xperia Z3C. Based on firmware 23.1.A.1.28. Maybe it will work also for Z3 and/or with Z1(C). Feel free to test and report back.

Have a look here.
[Xposed Framework Modules] vnwo:
I did everything, but my android still cannot detect tag when screen off

LG G Pro 2 (LG-D838), 4.4.2
[Xposed Framework Modules] Marv42:
No didn't work for me, can't install it
[Xposed Framework Modules] hasenbolle:
You need to only copy the file to /system/app/NfcNci/ and overwrite the existing apk. Also delete the arm folder in the NfcNci folder. And then reboot.

But be sure you made a nandroid backup before.

Otherwise upload your stock NfcNci.apk from /system/app/NfcNci/ and i'll try to mod it for you.
[Xposed Framework Modules] Marv42:
I treid, but gets a lot of mistake-popups "NFC services stoppt"

I attached my NFC.apk

Thanks
[Xposed Framework Modules] hasenbolle:
Here you go.
[Xposed Framework Modules] Marv42:
Thanks, works.

First I had delete ther "arm" folder, after a reboot I got a lot of mistakes. Powered off with the volume keys and flashesd the rom again, copied the .apk and set the permissions without deleting the folder, reboot and it works fine.

Thank you very much
[Xposed Framework Modules] Mr.Ratio:
Hello.

Thank you for this app but it do not works on my phone :crying: I can authorize tags, but can't unlock phone with this app. Tried with 3 different tags: NFC sticker, NFC plastic disk and NFC ring. Xposed is installed (2.6.1), NFCLockscreenOff Enabler is installed and ticked in Modules, NFC is enabled, tags are authorized, rebooted phone many times.

Device: LG F60 (D390n).

Android 4.4.4.

Rooted + SuperSu 2.46.

I thought that this application will allow me to unlock my phone like "Smart Lock" feature in Android 5 but does not work :(

Screens:
[Xposed Framework Modules] Oli28:
Can someone modify the Nexus 5 Android 5.1 Stock apk or is that impossible atm? there would be the apk... thanks a lot! :o
[Xposed Framework Modules] webpatrick:
Do you also have a screenon-mod, which also works in lock screen?
[Xposed Framework Modules] XlAfbk:
No, but there's detailed instructions on how to create it yourself in this thread:

http://xdaforums.com/showpost.php?p=60080506&postcount=516

http://xdaforums.com/showpost.php?p=59941326&postcount=497
[Xposed Framework Modules] webpatrick:
does anyone have NFC issues in CM12.1, mine goes crazy. It keeps reading the NFC tag over and over, although it has been read already.
[Xposed Framework Modules] echobox:
Is a Tasker task required for this module to unlock the screen? It's not clear in the description and I can't get it to work on my LG Volt following all the instructions in the original post.
[Xposed Framework Modules] Oli28:
I wanted to mod my NFC apk myself but couldn't even find the dex file in my stock apk. Is there now way to mod the stock rom?
[Xposed Framework Modules] rhystagram:
has anyone got this working on cm12.1/based roms for Nexus 6 & is willing to share? :)
[Xposed Framework Modules] ironictonic:
Hey guys, I just ****ed up.

Tried to exchange the Nfcnci.apk.apk with the one from XIAfbk's initial instructions.

No NFC working what so ever.

The I've tried the one from a nexus 4 (I use a nexus 5 tho, little desprete) user who uploaded his self decompiled one, but no success either.

The problem is that after I renamed the original apk into *old.apk solid Explorer beta 2.0 broke the file while copying it to my SD card. Tried the one one page before where someone requested to decompile his file (5.1) but I'm on 5.0.1, didn't work again.

So I'm stuck here without NFC at all.

Could one help stupid me fixing this mess? NFC off screen functionality is what I was looking for but any nfc would be pleasant now.

Thanks
[Xposed Framework Modules] XlAfbk:
http://xdaforums.com/showpost.php?p=60193450&postcount=524 or http://xdaforums.com/showpost.php?p=60673002&postcount=539 (depending on whether Nexus 6 is NfcNci or Nfc)

sounds like you're on an odexed ROM, you'll have to deodex them first. just search xda for "deodex" and you'll find instructions, e.g. http://www.xda-developers.com/deodex-lollipop-system-apps-with-ease/ (didn't really read that guide though, so no idea how good it is)

If you have the backup as .apk in the same directory as the new one then that's your problem. Don't keep the backup in /system/app/.

If that's not your problem then you should extract the original Nfc.apk from whatever firmware image you're using, e.g. original Google images at https://developers.google.com/android/nexus/images
[Xposed Framework Modules] rhystagram:
thanks, but nothing happens when screen is off.
[Xposed Framework Modules] ironictonic:
Well i figured it's easier to flash to 5.1.1. but thanks for the input!

---------- Post added at 11:41 AM ---------- Previous post was at 11:29 AM ----------

I'm trying to mod the NfcNci.apk by my self but I've got some little question:

1. Pull NfcNci.apk from your device: adb pull /system/app/NfcNci/NfcNci.apk

2. Download smali-<version>.jar and baksmali-<version>.jar from https://bitbucket.org/JesusFreke/smali/downloads

3. Put NfcNci.apk and the 2 .jar files in the same directory

4. open a command prompt in that directory

5. open NfcNci.apk with 7z/winzip/winrar/... and extract classes.dex from it (into the same directory)

6. run: java -jar baksmali-<version>.jar classes.dex -o out

7. navigate to directory out\com\android\nfc

8. open NfcService.smali in a text editor

9. search for "android.intent.action.SCREEN_OFF" and replace with "android.intent.action.SCREEN_OFFA"

10. search for "android.intent.action.SCREEN_ON" and replace with "android.intent.action.SCREEN_ONA"

11. search for "android.intent.action.USER_PRESENT" and replace with "android.intent.action.USER_PRESENTA"

12. search for "android.intent.action.USER_SWITCHED" and replace with "android.intent.action.USER_SWITCHEDA"

13. search for ".method private computeDiscoveryParameters" -> about 20 lines below it should be a line like "if-lt v2, p1, :cond_5b" -> replace the 2 parameters in that function (in this example: "if-lt p1, v2, :cond_5b")

14. open ScreenStateHelper.smali in a text editor

15. search for ".method checkScreenState()I" -> change all the return values ("const/4 v0, 0x...") to "const/4 v0, 0x3"

16. run: java -jar smali-<version>.jar out -o classes.dex

17. open NfcNci.apk with 7z/winzip/winrar/... and add classes.dex to it

18. push the modded apk to your device: adb push NfcNci.apk /system/app/NfcNci/NfcNci.apk

Does '4. open a command prompt in that directory' mean I should open terminal and go to that directory? And enter the commands form 6. & 16. ?(I'm on a mac)

Just assuming I could just use the code in Terminal, I can't find my classes.dex file in the NfcNci.apk. It's just not there!

Tried different apps for unzipping aswell as the terminal, nothing!

Downloaded a random NfcNci_screenoff.apk here to see if there is one, YES. I'm missing the classes.dex file. What to do now?

Thanks!
[Xposed Framework Modules] aluli95:
Not working on my HTC one m8 with stock Lollipop rom. Any solutions?
[Xposed Framework Modules] Mr.Ratio:
No any help? :(
[Xposed Framework Modules] XlAfbk:
yes

sounds like you're on an odexed ROM, you'll have to deodex them first. just search xda for "deodex" and you'll find instructions, e.g. http://www.xda-developers.com/deodex...pps-with-ease/ (didn't really read that guide though, so no idea how good it is)

lots of modded apks in this thread and instructions on how to mod yourself were quoted right above your post
[Xposed Framework Modules] echobox:
Is there anywhere to get clear help on this module? I've done everything in the OP and it doesn't work for me. LG Volt running 4.4.2
[Xposed Framework Modules] bbolgar:
Has anyone been able to use any of the solutions listed here with TW Lollipop yet? I've tried to replace the NfcNci.apk with the one in the thread, but that gave me a constant FC.
[Xposed Framework Modules] tvkanters:
XlAfbk's modified NfcNci.apk worked for me on the earlier CM12.1 nightlies (around early May), but stopped supporting NFC entirely on the recent ones (I tried 20150608, 20150610 and 20150613). Following XlAfbk's instructions to modify the APK worked initially, but causes NFC to stop working after a short while of inactivity. After this, disabling and enabling NFC causes it to work for only a short while again. I tried changing the modification steps a bit in a trial and error fashion but couldn't get it to work consistently. Any ideas?
[Xposed Framework Modules] fuxi222:
Now that I got the Xposed alpha 4 framework working on my Xperia Z1c with deodexed Lollipop (5.0.2) stock ROM, I'm having trouble with this module!

Other Xposed modules are working (e.g. APM+), but the NFC lockscreen enabler doesn't: NFC works normaly with unlocked phone, but no reaction while the screen is on and the phone is locked. It worked smoothly on KitKat (4.4.4) stock ROM before. I'm using the latest module version supplied in the Xposed Installer (without modifications). Any ideas?
[Xposed Framework Modules] XlAfbk:
Read the last few pages of this thread.
[Xposed Framework Modules] kippermois:
OnePlus One

Android 5.0.2 CM 12.0 YNG1TAS2I3

Doesnt Work :\ What can i do :eek:

Installed properly, used to work with 4.4.4
[Xposed Framework Modules] fuxi222:
This file works for me for Android 5.0.2 on my Xperia Z1c. I can now use NFC while screen is on (both locked and unlocked screen).

But NFC is now also active, while the screen is off! Was this your intention?

And can you, please, create a version were NFC does only work with active screen? :fingers-crossed:

UPDATE: I tried now myself to mod the apk with the steps from here http://xdaforums.com/xposed/modules/mod-nfc-unlocking-based-t2478163/post59941326#post59941326 and http://xdaforums.com/showpost.php?p=60080506&postcount=516. The output after the first manual works, but NFC is always active (screen on and off). The output after the second manual does also work, but NFC is only active, when the screen is on and unlocked. I have no further ideas, how I get I to be active only when the screen is on...
[Xposed Framework Modules] bagadj:
Same here.... Any workaround??
[Xposed Framework Modules] jimmy7373:
Hello!

This works for me (CM 12.1, Oneplus One)! NFC works when Screen is off, on locked or on unlocked. Thank you very much.

It would be wonderful, if you or someone else could make a build with "NFC only on when Screen is on/ on locked" (Screen off - NFC off). This would be wonderful!

I am not able to do this myself, my knowledge is to limited for this.

Jimmy
[Xposed Framework Modules] XlAfbk:
There's really detailed instructions in this thread, including making it work with screen on only: http://xdaforums.com/showpost.php?p=60080506&postcount=516
[Xposed Framework Modules] jimmy7373:
Hi!

As I have written, my knowledge is too limited - even after I have studied the whole thread.

Update: the screen-off mod for CM 12.1 build does not work stable. It seems t crash after some time. So I had to reinstall the original nfcnci.

Gesendet von meinem A0001
[Xposed Framework Modules] tmdgus2188:
It works but the screen remains off

I'm using galaxy S3 and would like to use NFC while screen is off.

I've found Xposed and installed it, it works when screen is off - I can hear the working sounds - but the screen doesn't turn on.

Am I missing something? I cannot find similar case within the threads.
[Xposed Framework Modules] tripex2k:
Whoops, sorry than for my post, thought it was depending on the Nfc.apk from HTC. Didn't know that you already go around this issue with your module. Hope you can forgive me for this. :>
[Xposed Framework Modules] hobbypunk90:
Hello MohammadAG,

TagLost die not work in my Sony Xperia M(C1905) With Android 4.1.2, there are no error messages, logcat, filterd by nfc shows this:

but retag don't realizeses the lost tag :(
[Xposed Framework Modules] glimmling:
What about "NFC Tweaks"?

You could merge it with the "Disable New Tag detected" module and add the possibility to hide the icon in the status bar. Another possible feature could be to replace the sounds with custom ones. Maybe in a PRO version?
[Xposed Framework Modules] ASD2003ru:
Another project https://github.com/PaulAnnekov/nfcunlocker

I use this unlocker + this module (for screen on NFC enable), work fine.

Only module not work with Moscow metro cards.
[Xposed Framework Modules] ZeevG:
tag reading while phone off & locked

:(

hello,

being a noob on this - i installed the framework and this module

i use note 2 with pattern lock

the tag reading while lock does not work

i also tried with no lock just slide - nothing

when the screen is on and unlocked tag reading is working perfect but when screen off no read

i set the option to read while screen off and lock of course

any idea ?

thanks
[Xposed Framework Modules] xXYoshiXx:
The module works great, how about the option to choose custom sounds?
[Xposed Framework Modules] jasonsf:
On the LG G2 the New Tag Collected screen comes up sometimes but not every time. No tag recognition happens when screen is locked or off.

LogCat of New Tag window opening when tag scanned: http://pastebin.com/UADVEirf
[Xposed Framework Modules] ZeevG:
what do you mean by choosing custom sounds?

what does it have to do with that ?

in any case - all sounds are checked

the problem is reading the tag while phone is locked and screen off

that does not work
[Xposed Framework Modules] jasonsf:
I think he means custom sounds for NFC events. And I don't think he was trying to respond to your post, just commenting in general.
[Xposed Framework Modules] ZeevG:
oops...

seems you're right

sorry.

checked it again just to be sure - yes it does NOT work if screen id off and phone locked

it also doensn't work when screen on and phone locked

it works ONLY if screen is on and phone is unlocked

and i did check and re-check all settings - it seems the mod just does nothing as the reading mode is as without it

help any one ?
[Xposed Framework Modules] Frankie_Ho:
Just report!

this module dun work on my lg optimus g pro:(
[Xposed Framework Modules] miljbee:
Not working on the LG G2. Do you want the apk ?

Envoyé de mon LG-D802 en utilisant Tapatalk
[Xposed Framework Modules] Judman:
Works just fine on my Att S III running slim bean 4.3 Stable and a pattern lock.

Just wish there was a way to make the tag not interact with the system beyond the unlocking of the phone. Seems the system has to do something else with the tag, be it bring up dialog saying a new tag has been scanned even though it has nothing on it or run the action written to the tag.

Maybe I can come up with a tasker action to do something.
[Xposed Framework Modules] madfish73:
Add support for LG G2, but ListViewAnimations makes the activity crash, don't know why.

2013-10-22 13:30 updated

View attachment 2341938

View attachment 2341939
[Xposed Framework Modules] Frankie_Ho:
Still dun work on g pro
[Xposed Framework Modules] fastest83:
Doesn't work on my Z Ultra, model C6833, LTE version.

It does detect the tag while screen is on, I can register the tag as "authorised" in the module settings, but it doesn't work while screen is off or on and locked...

EDIT: never mind, I'm an idiot, I thought I enabled it but I didn't. Works like a charm!

EDIT 2: it actually bypasses any security you've set... I thought to keep a tag attached to the dedicated lanyard hole, and never use the physical button to turn the screen on...

Would it be possible to have an option to keep the security and not by bypassing it?
[Xposed Framework Modules] ZeevG:
well, sorry but still doesn't work on Samasung Galaxy Note 2 (gt-n7100) stock 4.1.2
[Xposed Framework Modules] gringocol:
this is working flawless on my GN2 thanks exactley what ive been looking for to use my nfc tags, i do wish for one thing though. . . and that would be to disable stock lockscreen and instead have like an nfc app which requires u to scan nfc to enter abit like the nfc secure app you can use but i dont think its works aswell as i want it to usually get a few glitches . . . its this something that could possibly be incorporated into this app/xposed module?
[Xposed Framework Modules] madfish73:
Fixed it and tested on N7100 4.1.1, please try again.

http://xdaforums.com/showpost.php?p=46619503&postcount=54
[Xposed Framework Modules] gadgetsnpepsi:
It works great on Xperia Z 4.2.2 stock ROM rooted.

+1 for the option to just wake the screen, keep PIN/password on

+1 for disabling the new tag collected message that pops up. I installed another module that supposedly fixes this but it doesn't work; probably for 4.1 only

Great work! :good:
[Xposed Framework Modules] alroger:
OnePlus One CarbonROM

Greetings!

I'm trying to make NFC unlock my phone without sucess. I have authorized the tag, but when screen is off nothing happens.

I've cut a few msgs from the logcat which I find relevant. Will you take a look?

Any ideas are welcome.

I'm using a OnePlus One (bacon, A0001) with CarbonROM LP 5.1.1 20150715 with Tyr's Kernel #141.

I/Xposed ( 967): Class not found: java.lang.ClassNotFoundException: com.android.internal.policy.impl.keyguard.KeyguardViewManager NFC Unlocking won't work

W/PackageManager( 967): Unknown permission android.permission.NFC_UNLOCK in package com.android.nfc

I/Xposed ( 1675): Not hooking class NfcService->onCreate
E/Xposed ( 1675): java.lang.NoSuchMethodError: com.android.nfc.NfcService#checkScreenState()#exact
E/Xposed ( 1675): at de.robv.android.xposed.XposedHelpers.findMethodExact(XposedHelpers.java:181)
E/Xposed ( 1675): at de.robv.android.xposed.XposedHelpers.findAndHookMethod(XposedHelpers.java:131)
E/Xposed ( 1675): at pk.qwerty12.nfclockscreenoffenabler.NFCLockScreenOffEnabler.handleLoadPackage(NFCLockScreenOffEnabler.java:555)
E/Xposed ( 1675): at de.robv.android.xposed.IXposedHookLoadPackage$Wrapper.handleLoadPackage(IXposedHookLoadPackage.java:20)
E/Xposed ( 1675): at de.robv.android.xposed.callbacks.XC_LoadPackage.call(XC_LoadPackage.java:34)
E/Xposed ( 1675): at de.robv.android.xposed.callbacks.XCallback.callAll(XCallback.java:70)
E/Xposed ( 1675): at de.robv.android.xposed.XposedBridge$1.beforeHookedMethod(XposedBridge.java:174)
E/Xposed ( 1675): at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:630)
E/Xposed ( 1675): at android.app.ActivityThread.handleBindApplication(<Xposed>)
E/Xposed ( 1675): at android.app.ActivityThread.access$1600(ActivityThread.java:154)
E/Xposed ( 1675): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1382)
E/Xposed ( 1675): at android.os.Handler.dispatchMessage(Handler.java:102)
E/Xposed ( 1675): at android.os.Looper.loop(Looper.java:135)
E/Xposed ( 1675): at android.app.ActivityThread.main(ActivityThread.java:5289)
E/Xposed ( 1675): at java.lang.reflect.Method.invoke(Native Method)
E/Xposed ( 1675): at java.lang.reflect.Method.invoke(Method.java:372)
E/Xposed ( 1675): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904)
E/Xposed ( 1675): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:699)
E/Xposed ( 1675): at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:115)
[Xposed Framework Modules] daniel_loft:
Odd behaviour on CM12.1

I've installed this module on a Nexus 5 running one of the latest builds of CM12.1.

While trying to use the tag acquired/lost intent with Tasker, I've noticed that this intent is launched when the screen turns off/on, with tag lost, present respectively.

Is this behavior normal?

Thanks!
[Xposed Framework Modules] Lovatastic:
I also noticed it didn't work it says on the front page it supports up to 4.4 KitKat so I don't think it's been made to work on Lollipop yet :(
[Xposed Framework Modules] XlAfbk:
There's multiple modified apks for the different flavors of Lollipop in this thread that you need in addition to the Xposed mod to make this work
[Xposed Framework Modules] Mr.Ratio:
I still can't use this app with my LG F60 (d390n), Android 4.4.4. I can read all NFC tags but can't unlock phone with NFC tags :(

I attached file from my phone.