yashsingh1/xdaforums huggingface dataset:
[Xposed Framework Modules] ehartung:
Hi. I´m unable to read NFC tags/unlock phone with this Mod. I have an I9500 S4:

-Omega v28 - Android 5.0.1 - Deodexed Rom

-Xposed for Samsung Lollipop by arter97 (xposed-v65-sdk21-arm-arter97-V5-generic.zip) Flashed

-XposedInstaller_3.0_alpha4.apk

-pk.qwerty12.nfclockscreenoffenabler_v20_aa35f3.apk

I think the Mod is installed correctly, because If I tick the "sound when tag is lost" the sound plays when I move away from the tag. I am also able to add the tag to the "authorized nfc tags" ... however.. nothing happens when the phone is Locked... only when its unlocked. Even If I change the "enable nfc when".. to "scree is off (regardless of lock state). Any sugestions ?

EDIT: Ok... after reading a few pages back... I was able to compile an .apk for use on my device. This .APK works fine with my 5.01 rom and I made it. I used these steps in this post

This works for my 5.01 ROM and ONLY with the screen ON - Regardless if Locked/Unlocked
[Xposed Framework Modules] JPsy Droid:
Thx a lot XlAfbk! This step by step http://xdaforums.com/showpost.php?p=59941326&postcount=497 was - after a chmod at the end - my missed solution for nfc screen off under 5.1.1. - made my day ;)
[Xposed Framework Modules] jimmy7373:
Hi XlAfbk!

Many People - like me - are having big troubles getting this app to work. I have given up and only hope that someone posts a version that works on my device (One plus One, CM 12.1, Android 5.1).

So, if you are that good then why do you not update/fix the app permanently instead of writing in every fifth thread, that there are plenty of solutions out there. I am sure many users would applause you.

Sorry, but I am tired of your "it works just go back in this thread" - postings.

Jimmy

Oneplus One | Euphoria 5.1 Rom | Boeffla Kernel
[Xposed Framework Modules] XlAfbk:
Let's see: I've provided a modded Nfc.apk fgor CM12/12.1 so that people can get screen-off and most of this Xposed functionality to work. I've also provided detailed instructions on how to mod the apk yourself for people on other variants of 5.0+.

So unlike you who's not willing to even read a few posts in this thread to apply a ready-made solution I've actually invested quite a bit of time and work into getting this to work - not just for me but for plenty of other people as you can see from reading this thread.

You're of course free to come up with a better solution than the modded apk, I'm sure many people will appreciate it, including me. Until then better watch your tone and turn on your brain before posting.
[Xposed Framework Modules] fuxi222:
I totaly agree with you. I have also given up regarding this issue and I am waiting for someone posting a working file. :good:

I tried all version within this thread and also tried to modify 3 or 4 different versions of the nfc.apk myself, but I get only the state of always enabled NFC (also when screen is off), but what I want is NFC enabled with screen on (lock+unlocked). :(
[Xposed Framework Modules] jimmy7373:
Yes. My solution is that you fix the app permanently if your knowledge is as big as the words in your postings.

My knowledge is much too low and the fixes here in the thread don't work for me (as I wrote before). - and I seem not to be the only one facing too difficult problems.

But after your last posting, where you insult me, I am pretty sure you just want to "be important".

Oneplus One | Euphoria 5.1 Rom | Boeffla Kernel
[Xposed Framework Modules] XlAfbk:
Says the one who is too lazy to follow a step-by-step-tutorial that would take <1h to complete but instead screams for others to spend lots of efforts in their spare time and then even getting attacked by lazy-assed-.... for contributing the community. No thanks!
[Xposed Framework Modules] jimmy7373:
Thank you for your second insult. Aren't there any forum-rules and adv admins?

I will stop now, because it seems senseless and normally I try not to feed the trolls.

Bye!

Oneplus One | Euphoria 5.1 Rom | Boeffla Kernel
[Xposed Framework Modules] dimex:
You're entitled, aren't you? Learn a little bit and do it yourself. Maybe then you can give back to the community you enjoy taking from, the same community you then ***** at when they don't bend over backwards to make something work for you, free of charge.
[Xposed Framework Modules] JPsy Droid:
[MENTION=306159]jimmy7373[/MENTION] => read this post with step-by-step howto, its not impossible to do that. Was for me the first time with smali & java shi* - but worked, i invested an hour to do the apk mod. Only prob was the permissions for the apk at the end. Now all fine - think you can do it too. http://xdaforums.com/showpost.php?p=59941326&postcount=497
[Xposed Framework Modules] fuxi222:
As already wrote, this does only work to get the NFC enabled all the time (screen on and screen off). But it does not work for NFC only enabled while the screen is on (lock and unlocked). Do you have a proper solution for that?
[Xposed Framework Modules] XlAfbk:
http://xdaforums.com/showpost.php?p=60080506&postcount=516
[Xposed Framework Modules] fuxi222:
No, did not work for me! :cyclops:

Did it work for you?
[Xposed Framework Modules] XlAfbk:
Didn't test as I want full Nfc. However some users had confirmed that it works
[Xposed Framework Modules] fuxi222:
I don't want full Nfc, but it is the only thing I get to work when I follow the instructions.

Can someone where it is only enabled when screen is on please post his modded Nfc.apk?
[Xposed Framework Modules] timconrad:
LG G3 on CloudyG3 2.5

Well, I gave it a shot. With the modified APK, NFC wouldn't turn on. Replaced it with the backup and it works again. Also, the file name was different: LgNfc.apk.

Is there some setting or variable thatI might be missing here due to this being stock-based?
[Xposed Framework Modules] Orphee:
Hello,

I just build the APK for latest Oneplus One's COS12.1 update.

Flashed on my phone but didn't try it already.

Please make a backup of your /system/app/NfcNci/NfcNci.apk

To be flashed in recovery.

:)

Edit : not working, same bug as always on 5.1, chain enabling/disabling NFC on tag...
[Xposed Framework Modules] Antieco:
Hi, is there a bug on oneplus one COS12.1 with NFC? i just cant read tags.. (just my Oystercard is working) all other tags do sound when touched but no app is able to read contents.

Android Beam works fine though
[Xposed Framework Modules] etofi:
[MENTION=235313]qwerty12[/MENTION] & [MENTION=2011359]MohammadAG[/MENTION]

Is it possible to customize this module to work with Lollipop because Xposed was officially released for 5.1 now?

I won't patch the NFC.apk - I will use Xposed with this module.

:D PLEASE :D
[Xposed Framework Modules] Sorrow91:
Hey guys,

I've got a problem.

I tried to modify my Nfc.apk, so that I can unlock my HTC One M8 if the screen is off.

I moved my modified Nfc.apk from the SD Card to /system/app/Nfc/ because I can't push it to the Phone via ADB (permission problems).

But it don't work.

The Nfc function was off and the option to turn it on again was removed from the menu.

So I tried to move my backup from the Nfc.apk to the folder, and hoped that Nfc work again, but it doesn't .

The menu option to turn it on, was still removed.

I hope that anyone can help me with my problem.

Android Version: 5.0.1

Software-Number: Android Revolution HD 43.0

Kind Regards
[Xposed Framework Modules] XlAfbk:
forgot chmod 644?
[Xposed Framework Modules] Sorrow91:
I've tried to set cmod 644 but ADB says that I've no permission to set
[Xposed Framework Modules] divi7:
Same here. I haven't got any permission problems (copy, rename and chmod were fine) , but the NFC function including the option in the menu was gone.

After delete the modified apk, rename the original and reboot, everything was fine again.

edit: I'm running CM12.1

edit2: SOLVED! I forget to delete/move the "backup file" from /system/app/NfcNci/. After I did this, reboot..and all is fine.
[Xposed Framework Modules] XlAfbk:
you have to be root and /system has to be mounted RW
[Xposed Framework Modules] ShuriC:
Xperia Z3 compact 5.1.1 - doesn`t work.
[Xposed Framework Modules] Le_Poilu:
There's one that work here on the Z3C section :

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

It does Screen OFF.. I'd like to have it with only scan on lock screen but I didn't find what to change.
[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:

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

CM12 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

Nexus 4, Google ROM (5.0.1): 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

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] Le_Poilu:
I tried to look at th for the Z3C but didn't find the line to edit :eek:
[Xposed Framework Modules] periskop:
Hi,

Any solution for this?

I have an OPO and I need to use nfc while my screen is off. I have COS 12.1

Thx!!
[Xposed Framework Modules] dclutter1:
My Moto X Pure doesn't have a classes.dex file in the NfcNci apk. Am I just out of luck?

I tried adding the classes.dex file from the CM12.1 file but that didn't work.
[Xposed Framework Modules] subaron:
Will the modded NFC.apk enable NFC read at lock screen using "stock lollipop NFC smart unlock feature" on cm12.1 t0lte (Note 2 LTE)? Or do I still need the xposed module for unlocking with NFC card?

On step two, I am unable to overwrite NFC.ak (using the nodded NFC.apk) using file browser.

Also, if I manage step 2, where do I type chmod 644 command?

---------- Post added at 03:54 AM ---------- Previous post was at 03:19 AM ----------
[Xposed Framework Modules] Orphee:
I'll try again this evening...
[Xposed Framework Modules] dclutter1:
Did you mount /system as read/write? That's probably why you can't overwrite it. I'd suggest renaming it to NFC.apk.orig as opposed to overwriting anyway, but that still requires r/w.

If you're using a file browser, you'll change permissions under "Properties" most likely, they're all a little different.
[Xposed Framework Modules] subaron:
I am going to need to learn how to enable r/w using file manager in cm.

In the meantime, another member on XDA with the same device and ROM gave the nodded NFC a shot and it seems that NFC got completely disabled.

http://xdaforums.com/showpost.php?p=63159933&postcount=1016
[Xposed Framework Modules] XlAfbk:
You'll have to deodex your ROM first, e.g. with http://xdaforums.com/showthread.php?t=2213235 (not a tool I ever used but it looks to do the job)
[Xposed Framework Modules] dclutter1:
Yeah, I played around with that yesterday but I didn't really get very far. I may just wait until CM comes out for this phone. It shouldn't be long from what I've heard.

Thanks for the response!

---------- Post added at 01:17 PM ---------- Previous post was at 12:53 PM ----------

I use FX Explorer and to mount as r/w in that, you just go to Menu -> Mount R/W. That's also, pretty much, how it works in Root Explorer. I'm not sure about the built in CM file manager.

If you use modded file that's different from the one your phone would normally use, NFC won't work at all. Hopefully you made a backup of the original. If so, just replace the modded, non-working file with the original.
[Xposed Framework Modules] Le_Poilu:
finally get it working.

NFC on screenlock for the Z3C is done, check the S3C section for it ;)
[Xposed Framework Modules] Ausraster:
Not working on S4Mini LTE

Hi,

I'm on Cyanogenmod 12.1 and it doesn't work on my S4Mini.
[Xposed Framework Modules] Noiz:
Will be watching this thread with great interest since I just got an NFC tag implant done yesterday. Unfortunately I'm running CM12.1 so the Xposed module is non-functional. :(
[Xposed Framework Modules] _happyPit_:
The same as two above: CM12.1 and module doesn't work :(

subscribe.
[Xposed Framework Modules] XlAfbk:
instead of subscribing you should read just 1 page back and you'd find http://xdaforums.com/showpost.php?p=63140464&postcount=612
[Xposed Framework Modules] Noiz:
Thanks, I already read (and thanked) the post you linked to, but when I checked out the link for the modded CM12.1 NfcNci.apk you yourself said:

I did download and try it anyway, making sure to do the chmod step, but it made no difference. :-/
[Xposed Framework Modules] XlAfbk:
It does work on CM12.1, you just have to use xposed+modded apk. It didn't work back then because there was no official Xposed for 5.1
[Xposed Framework Modules] Noiz:
Hmm, I am using the latest Xposed, plus the modded APK and the NFC Unlocking module but no dice. I just had a brainwave that maybe I need to remove the NFC Unlocking module if it's conflicting with the modded APK, but then how do I setup authorized tags and such?

Appreciate your help and I'm happy to try it again and be proved wrong! I have a child-free day tomorrow so will give it another shot then. :)
[Xposed Framework Modules] _happyPit_:
Sure, you're right. My fault. Got screen_off version and it works like a charm. It's a pity I couldn't find screen_on version for CM 12.1 but it's still better than nothing. thanks
[Xposed Framework Modules] Noiz:
I'm still stuck here. I started over and replaced the NfcNci.apk again as instructed, changing the mode to 644. I reinstalled the Xposed module, enabled it, rebooted, and configured my tag as authorized. I can scan the tag with the screen off and it makes the 'tag found' noise but nothing else actually happens. Should the phone not be turning on and unlocking at this point?

Sorry to be so dense. :(
[Xposed Framework Modules] XlAfbk:
The unlocking functionality of the Xposed module might be broken as well. Use Tasker to capture the intent and unlock the phone.
[Xposed Framework Modules] gcla:
Hi - does anyone have a hacked Nfc.apk for the HTC One m8 that will read tags with the screen off? I'm on Sense 6, Android 5.0.2, Xposed framework 75 alpha. I gave the instructions above a try, but there seem to be some differences e.g. no SCREEN_OFF or SCREEN_ON in NfcService.smali, differing smali in computeDiscoveryParameters... My hand-built apk just force-closed repeatedly :( I am new to this though. If anyone has any m8-specific hints, I can give it another try.
[Xposed Framework Modules] donttakemeseriously:
HTC M9 With ViperONE

I have been following this thread for a while and finally committed to editing nfc.apk on my device. My first issues is that my APK is called NfcNciNxp.apk (I assume that's due to the Viper Rom I'm using), I carried on with the mods but some elements are already in place such as "if-lt p1, v5, :cond_9b" which I kept in place and also switched to "if-lt v5, p1, :cond_9b".

I am reluctant to change out for the versions available on this thread mainly due to the name of the apk itself, I suppose with the appropriate backups I should just bite the bullet then advise on the outcome.

I think the main issue I face is that I have the ROM and the Xposed module itself that both seem to work including the intent variables however because neither ROM or module have the option to disable all together I get intents for all 4 instances when if it scans on screen off and present I don't want it to scan for screen on & Present...

I can't attach the APK as I am new to posting but in the event someone with understanding of what each element does can assist please message me so I can share my Google Drive link, but obviously if you can advise on the above limitations I am happy to give them a go too. Any help is greatly appreciated!
[Xposed Framework Modules] szerzaw:
some one try this on sony xperia z1 cm12.1?
[Xposed Framework Modules] Noiz:
I had a working Tasker profile for it but it couldn't perform the steps quickly and consistently enough to make it worth the bother. In the end, after an unrelated fit of frustration, I wiped the whole thing and installed stock Marshmallow. I was pleased to find that the built-in NFC smart lock now fully unlocks the phone rather than just disabling the PIN/pattern/password bit. :)
[Xposed Framework Modules] szerzaw:
Do you have still nfc.apk?

Wysłane z mojego Xperia Z1 przy użyciu Tapatalka
[Xposed Framework Modules] tigourubu:
Not compatible with Lollipop(5.1.1)…?
[Xposed Framework Modules] nevvjeff:
Don't have necessary files on LG G4

I really like the KitKat module to use mfc even screen off, but with my new phone and lollipop rom on it, I can't use this Xposed Module. So I read this tread and see your step bu step to change the permission on NFC, but when I want to perform this I can't cause I don't have any of this necessary files in system/app.

only have LgNFC folder or NfcSettings ans the files on this two are not corresponding?! And the apk file correcponding to this folder are LgNfc.apk and NfcSteeing.apk.

Someone have perform this tutorial on a LG G4??
[Xposed Framework Modules] SGS3DAVE:
I'm Stuck!

I'm stuck with this, I have a Rooted Galaxy K-Zoom running 4.4.2 and tried replacing my NFC.apk with NFCNCI.apk, copied the file over with ES File explorer and changed permissions through the 'properties' dialogue.

Installed NFC LockScreenOff Enabler and was able to Authorise an NFC tag, however after rebooting the phone there's still nothing happening at the lockscreen or even when unlocked.

I recall in one reply that there's a difference between phones running NFC.apk and NFCNCI.apk, is this where I'm going wrong?

Thanks, Dave.
[Xposed Framework Modules] itunes1995:
I'm using S6 edge with CarHD Rom.

Somebody was able to update the apk file?

I was trying some of yours apk files, but after using the modded apk NFC is not working anymore. :$

Somebody could maybe help?

Thanks.
[Xposed Framework Modules] stchoh:
mine is using note3... darklord rc2.1. but ni able using nfc... any solution?
[Xposed Framework Modules] donttakemeseriously:
On / Off Modification

I think my problem lies in the NFC activity with screen on and off, because I have a ROM that enables NFC functionality at all times my Tasker set up gets broken when the screen turns on or off in quick succession. Can anybody enlighten me to the part of the NFC modification that solely deals with Screen on and off, I assume it's the following but wondered if any other elements work alongside it?

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"
[Xposed Framework Modules] Necromancer3:
I don't understand anything but it worked!!!

LG G3 D855 stock lolipop android 5.0 v20t

modified app attached.

put it in /system/app/LgNfc/LgNfc.apk
[Xposed Framework Modules] stchoh:
i try already.. no works.
[Xposed Framework Modules] XlAfbk:
CM13 NfcNci screenoff version attached
[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:

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

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

Nexus 4, Google ROM (5.0.1): 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

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] stchoh:
i using samsung note3 darklord rc2.1.. version 5.1.1. which one i need install?
[Xposed Framework Modules] athraugh:
This is a very good function.

I am android 6.0 on Nexus6.

Can you support it?
[Xposed Framework Modules] slixzen:
EDIT2:

I guess I should have read all the way to the last page.

Unfortunately, there isn't onefor Stock Firmware for the Nexus 5 for marshmallow, is there?
[Xposed Framework Modules] RoundBagel:
Hey bro, you seem really knowledgeable about NFC. Thanks to your support I am able to unlock my phone from sleep with an nfc ring using tasker + secure settings as you wrote. Thing is, whenever I unlock with nfc my home button causes a black screen + auto rotate loses function until I sleep and unlock with my pin. Running lollipop 12.1 Any ideas on how I can fix that? haha
[Xposed Framework Modules] prateek33:
I cant seem to find the apk for Nexus 7 2013 running 6.0.1. Can anyone please help me find the modifed nfc apk?

Thanks
[Xposed Framework Modules] RoundBagel:
I think the one provided right now is for 6.0.... might need to make a modded one for 6.0.1
[Xposed Framework Modules] prateek33:
I can try the one for 6.0 and see if it still works with 6.0.1 but I cant find the mod for Nexus 7 2013 wifi. Can anyone help me find it? Thanks
[Xposed Framework Modules] XlAfbk:
The summary-post with all relevant information is quoted right above yours. If there's no modded apk that will work for you mod it yourself, the instructions are right there!
[Xposed Framework Modules] RoundBagel:
First of all, thanks so much for the apk and compilations! Was wondering if you knew a workaround regarding the home button causing a black screen after unlocking with nfc + tasker + secure settings to remove keyguard

running lollipop 5.1.1 btw