gpay-gms-patch icon indicating copy to clipboard operation
gpay-gms-patch copied to clipboard

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

Open shadowro2007 opened this issue 6 years ago • 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!

shadowro2007 avatar Oct 24 '19 16:10 shadowro2007

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 avatar Oct 24 '19 16:10 davidramiro

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.

davidramiro avatar Oct 25 '19 08:10 davidramiro

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

shadowro2007 avatar Oct 28 '19 02:10 shadowro2007

Which ROM/device exactly?

davidramiro avatar Oct 28 '19 11:10 davidramiro

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

trulynottakenusername avatar Oct 29 '19 21:10 trulynottakenusername

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

davidramiro avatar Dec 07 '19 15:12 davidramiro

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

piratezstick avatar Dec 24 '19 23:12 piratezstick

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.

cjekel avatar Apr 01 '20 21:04 cjekel