You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is normal, you need to wake up the device to pay in stores.
11
+
The NFC app is patched during installation into a `modded` version. This `modded` version is injected at boot time by [service.sh](service.sh) so that the phone thinks the screen is always on and unlocked. This patch only applies to NFC Service so it does not impact any other functionality of the phone that involves screen state detection.
16
12
17
-
**MY NFC IS NOT DETECTED ANYMORE**
13
+
The `modded` app was generated using [this method](https://github.com/lapwat/NfcScreenOffPie).
18
14
19
-
If you did not unlock your device since last boot, unlock it and wait 30 seconds for the module to be loaded.
20
-
21
-
After that time, if NFC does not start automatically or manually, it means that the patch does not work. You can uninstall the module and create an issue.
15
+
# Help section
22
16
23
17
**I AM STUCK IN A BOOTLOOP**
24
18
@@ -36,47 +30,18 @@ Perform a clean reinstallation.
36
30
1. Uninstall the module
37
31
1. Reboot
38
32
1. Install the module
39
-
1.Restart your device
33
+
1.Reboot
40
34
41
35
If it does not solve your problem, you can create an issue.
42
36
43
-
# How does it work?
44
-
45
-
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).
37
+
**TAP TO PAY DOES NOT WORK WHEN SCREEN IS OFF**
46
38
47
-
I have patched the original `NfcNci.apk` (com/android/nfc/NfcService.smali) so that the phone thinks the screen is always on and unlocked. This patch only applies to NFC Service so it does not impact any other functionality of the phone.
48
-
49
-
The modded APK was generated using the method described [here](https://github.com/lapwat/NfcScreenOffPie).
_Tap to pay functionality is now in BETA so it may work for some devices._
69
42
70
-
# mod
71
-
sed 's/SCREEN_ON/SCREEN_ONA/' -i "NfcNci/com/android/nfc/NfcService.smali"
72
-
sed 's/SCREEN_OFF/SCREEN_OFFA/' -i "NfcNci/com/android/nfc/NfcService.smali"
73
-
sed 's/USER_PRESENT/USER_PRESENTA/' -i "NfcNci/com/android/nfc/NfcService.smali"
74
-
sed 's/USER_SWITCHED/USER_SWITCHEDA/' -i "NfcNci/com/android/nfc/NfcService.smali"
43
+
**MY NFC IS NOT DETECTED ANYMORE**
75
44
76
-
# assemble with smali
77
-
java -jar smali-2.4.0.jar a -o classes.dex NfcNci/
45
+
If you did not unlock your device since last boot, unlock it and wait 30 seconds for the module to be loaded.
78
46
79
-
# backup original
80
-
cp NfcNci.apk NfcNci_mod.apk
81
-
zip -rv NfcNci_mod.apk classes.dex
82
-
```
47
+
After that time, if NFC does not start automatically or manually, it means that the patch does not work for your device. You can uninstall the module and create an issue.
0 commit comments