diff --git a/NfcNci_align.apk b/NfcNci28_align.apk similarity index 100% rename from NfcNci_align.apk rename to NfcNci28_align.apk diff --git a/NfcNci29_align.apk b/NfcNci29_align.apk new file mode 100644 index 0000000..61115cc Binary files /dev/null and b/NfcNci29_align.apk differ diff --git a/README.md b/README.md index 02d5e35..d68f3e5 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ -# NFCScreenOff8+ +# NFCScreenOff > **This is not a systemless modification.** I succeeded to make it work only if the `modded` APK is injected while the phone is booted with the `original` APK. That is why I inject the `modded` APK in [service.sh](service.sh). -This module lets you enable NFC Pooling while phone is locked and screen is off for Android 8 and above. +This module lets you enable NFC Pooling while phone is locked and screen is off for Android 9 and above. > Wait 30 seconds after restarting+unlocking your phone. It will let NFC service time to reload. @@ -12,14 +12,14 @@ For now, it only works for reading NFC tags, not for payments in stores. ```sh # clone this repo -git clone https://github.com/lapwat/NFCScreenOff8.git -cd NFCScreenOff8 +git clone https://github.com/lapwat/NFCScreenOff.git +cd NFCScreenOff # zip the installer -zip -r NFCScreenOff8.zip * +zip -r NFCScreenOff.zip * # copy to your phone -adb push NFCScreenOff8.zip /sdcard/Download +adb push NFCScreenOff.zip /sdcard/Download ``` **If you are creating the zip archive from a GUI, make sure to zip ONLY the files, not the main folder.** diff --git a/customize.sh b/customize.sh index 58f63be..f727023 100644 --- a/customize.sh +++ b/customize.sh @@ -3,10 +3,13 @@ REPLACE=" /system/app/NfcNci " -APK_PATH="/system/app/NfcNci/NfcNcii.apk" +APK_PATH="/system/app/NfcNci/NfcNci.apk" -[ $API -eq 28 ] || abort "! Your version of Android is not compatible." +[ $API -ge 28 ] || abort "! Your Android version is not compatible." [ -f $APK_PATH ] || abort "! Could not find $APK_PATH, your phone may not be compatible with NFC technology." ui_print "- Backing up original NfcNci.apk" cp "$APK_PATH" "$MODPATH/NfcNci_bak.apk" + +ui_print "- Selecting modded NfcNci.apk based on your API level ($API)." +mv "$MODPATH/NfcNci${API}_align.apk" "$MODPATH/NfcNci_align.apk" diff --git a/module.prop b/module.prop index c2eae32..c2304c2 100644 --- a/module.prop +++ b/module.prop @@ -1,6 +1,6 @@ id=NFCScreenOff -name=NFC Screen Off for Android 8+ +name=NFC Screen Off version=0.0.1 versionCode=1 author=lapwat -description=Enable NFC Pooling while phone is locked and screen is off for Android 8 and above +description=Enable NFC Pooling when screen is off for Android 9 and above