Skip to content

Commit

Permalink
working for android10
Browse files Browse the repository at this point in the history
  • Loading branch information
scality-q committed Jan 19, 2020
1 parent d3d19db commit 408c7a9
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 10 deletions.
File renamed without changes.
Binary file added NfcNci29_align.apk
Binary file not shown.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -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.**
Expand Down
7 changes: 5 additions & 2 deletions customize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
4 changes: 2 additions & 2 deletions module.prop
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 408c7a9

Please sign in to comment.