Thanks to lapwat for creating the original!
- Read NFC tags when the screen is off.
- Disable NFC tagging/scanning sound.
- Be sure to wait 30 seconds after booting for the script to execute.
Useful integrations: NFC Card Emulator Pro - Tasker -
XDA Forums thread: https://xdaforums.com/t/4667435/
- Download
- Install in Magisk
- Wait for the upload, patch, and download
- Reboot
- Unlock phone
- Wait ~30 seconds for the script to execute
- Ready for use
You may need to update or reinstall the module after an Android update, so check in the Magisk Modules list for info.
If you have installed and setup Termux-Notification, you'll receive a notification upon reboot when NFC changes.
The NFC app is patched, during installation, into a modded version. This modded version is injected at boot time by service.sh so that the app thinks the screen is always on and unlocked.
This patch only applies to the NFC Service, so it does not impact any other functionality of the phone that involves screen state detection.
The modded app is generated using this server & method.
As of v2.1.0, the module is auto-disabled when the NFC app is updated or moved.
This prevents cyclical reboots as well as informs the user of a necessary update.
Either a module update is necessary, or new support is needed for the new or moved NFC app.
- Check for an update within Magisk's Module list
- If no update is available, check the pinned issues
- Reply to the appropriate pinned issue OR create new issue if your issue is different
- Upload the zip file as instructed by the installer
- Save the log in Magisk (the disk icon on the top-right) and upload the log
https://everything.curl.dev/cmdline/exitcode
Codes 545 and 555 are custom and exclusive to the server-side patcher.
Only a server-side update can resolve these errors, if something is found to update.
Please create an issue and upload the log & zip file(s).
I'll create a server-side changelog and link here in the future.
If you did not unlock your device since last boot, unlock it and wait ~30 seconds for the module to be loaded.
After that time, if NFCScreenOff or the NFC Service does not start automatically or manually, it means that the patch does not work for your device.
Please uninstall the module and create an issue.