davidramiro / gpay-gms-patch

💳 Shell script to make Google Pay work on rooted Android devices
GNU General Public License v3.0
86 stars 12 forks source link

gpay-gms-patch.sh: line 8: syntax error: unexpected "do" (expecting "fi") #3

Open shadowro2007 opened 4 years ago

shadowro2007 commented 4 years ago

gpay-gms-patch.sh: line 8: syntax error: unexpected "do" (expecting "fi") android 9 magisk 20 safety checks passes, using adb shell thank you!

davidramiro commented 4 years ago

Thanks for reporting this, I cannot reproduce it on Magisk 19. Maybe the shell is different on Magisk 20. I will update tomorrow and get back to you.

davidramiro commented 4 years ago

Still cannot reproduce it on Magisk 20...

ConEmu64_l8iMZac9S7

Anyways, since line 8 is handling Magisk Hide, you could try manually enabling it and adding the recommended packages:

com.google.android.gms
com.paypal.android.p2pmobile
com.google.android.apps.walletnfcrel
com.google.android.ext.services
com.google.android.gsf

If that still doesn't work, I'd need some more info (device, ROM) since your shell seems to differ.

shadowro2007 commented 4 years ago

Works fine with magisk 19.4, same rom that it doesn't work with magisk 20, anyway, thank you!

davidramiro commented 4 years ago

Which ROM/device exactly?

trulynottakenusername commented 4 years ago

Same problem. Mi9 on Miui 11.1 by xiaomi.eu 9.10.24. Magisk 20.0

davidramiro commented 4 years ago

I have finally upgraded my Mi9 to MIUI 11 now, and with Magisk 20.1 I still cannot reproduce the issue, sorry 🙁

piratezstick commented 4 years ago

I got the same problem. Mi9, MIUI11, Magisk 20.1

cjekel commented 4 years ago

I get this error when I'm using BusyBox sh. My sh version is shown with sh --help which displays BusyBox v1.30.1-Stericson (2019-03-17 10:12:06 EDT) multi-call binary. This is with BusyBox installed to /sbin/.

If I reboot (BusyBox automatically disappears from /sbin/), and the script works with the default android sh version. I'm also on a Mi9 running android Q and Magisk 20.4.