Skip to content

Commit 408c7a9

Browse files
committed
working for android10
1 parent d3d19db commit 408c7a9

5 files changed

Lines changed: 13 additions & 10 deletions

File tree

File renamed without changes.

NfcNci29_align.apk

2.34 MB
Binary file not shown.

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# NFCScreenOff8+
1+
# NFCScreenOff
22

33
> **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).
44
5-
This module lets you enable NFC Pooling while phone is locked and screen is off for Android 8 and above.
5+
This module lets you enable NFC Pooling while phone is locked and screen is off for Android 9 and above.
66

77
> Wait 30 seconds after restarting+unlocking your phone. It will let NFC service time to reload.
88
@@ -12,14 +12,14 @@ For now, it only works for reading NFC tags, not for payments in stores.
1212

1313
```sh
1414
# clone this repo
15-
git clone https://github.com/lapwat/NFCScreenOff8.git
16-
cd NFCScreenOff8
15+
git clone https://github.com/lapwat/NFCScreenOff.git
16+
cd NFCScreenOff
1717

1818
# zip the installer
19-
zip -r NFCScreenOff8.zip *
19+
zip -r NFCScreenOff.zip *
2020

2121
# copy to your phone
22-
adb push NFCScreenOff8.zip /sdcard/Download
22+
adb push NFCScreenOff.zip /sdcard/Download
2323
```
2424

2525
**If you are creating the zip archive from a GUI, make sure to zip ONLY the files, not the main folder.**

customize.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,13 @@
33
REPLACE="
44
/system/app/NfcNci
55
"
6-
APK_PATH="/system/app/NfcNci/NfcNcii.apk"
6+
APK_PATH="/system/app/NfcNci/NfcNci.apk"
77

8-
[ $API -eq 28 ] || abort "! Your version of Android is not compatible."
8+
[ $API -ge 28 ] || abort "! Your Android version is not compatible."
99
[ -f $APK_PATH ] || abort "! Could not find $APK_PATH, your phone may not be compatible with NFC technology."
1010

1111
ui_print "- Backing up original NfcNci.apk"
1212
cp "$APK_PATH" "$MODPATH/NfcNci_bak.apk"
13+
14+
ui_print "- Selecting modded NfcNci.apk based on your API level ($API)."
15+
mv "$MODPATH/NfcNci${API}_align.apk" "$MODPATH/NfcNci_align.apk"

module.prop

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
id=NFCScreenOff
2-
name=NFC Screen Off for Android 8+
2+
name=NFC Screen Off
33
version=0.0.1
44
versionCode=1
55
author=lapwat
6-
description=Enable NFC Pooling while phone is locked and screen is off for Android 8 and above
6+
description=Enable NFC Pooling when screen is off for Android 9 and above

0 commit comments

Comments
 (0)