If you want to install this mod, on your phone, your phone needs to be rooted, and run Android Nougat (7.0 or 7.1.1).
I’ve only tested this on a Oneplus 3 running Oxygen OS.
This guide assumes you have adb successfully installed, if you don’t have that, please go install adb first.
First connect your phone to your pc, using a usb cable, enable USB-debugging in developer settings.
Now open a terminal, and type the following commands
adb shell su
There might be a popup on your phone screen, asking you if you want to allow root acces to ADB shell, click allow.
Now you have root access in your adb shell. Next step to do, is to remount /system as writable, create a backup, download the modified NfcNci.apk, and install it. Run the following commands to do that,
busybox mount -o remount,rw system cd /system/app/NfcNci/ mv NfcNci.apk NfcNci_bak.apk curl https://lasse-it.dk/files/NfcNci.apk > NfcNci.apk chmod 755 /system/app/NfcNci/NfcNci.apk killall com.android.nfc
Now make sure NFC is turned on, try to read a NFC tag with the screen on, then try with the screen turned off.
If NFC now doesn’t work at all, try rebooting your phone. If that doesn’t fix it, run the following commands, to revert this mod.
adb shell su busybox mount -o remount,rw system cd /system/app/NfcNci/ rm NfcNci.apk mv NfcNci_bak.apk NfcNci.apk
Now NFC should function again, when the phone is unlocked.