davidramiro/gpay-gms-patch

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

Opened this issue · 8 comments

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

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.

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.

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

Which ROM/device exactly?

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

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

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

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.