magisk: Remove Play Services from DenyList earlier

This ensures that GMS will never start before it's removed from the
DenyList, even if another module's service.sh is blocking our script.

Suggested-by: osm0sis <osm0sis@outlook.com>
This commit is contained in:
Danny Lin 2021-10-30 23:48:12 -07:00
parent daefe159e3
commit bc27f2211b
No known key found for this signature in database
GPG Key ID: 1988FAA1797EE5AC
3 changed files with 5 additions and 4 deletions

View File

@ -1,3 +1,3 @@
#!/system/bin/sh
chmod 755 "$MODPATH/service.sh"
chmod 755 "$MODPATH/service.sh" "$MODPATH/post-fs-data.sh"

4
magisk/post-fs-data.sh Executable file
View File

@ -0,0 +1,4 @@
#!/system/bin/sh
# Remove Play Services from DenyList, otherwise the Zygisk module won't load
magisk --denylist rm com.google.android.gms

View File

@ -28,9 +28,6 @@ if [[ "$(cat /sys/fs/selinux/enforce)" == "0" ]]; then
chmod 440 /sys/fs/selinux/policy
fi
# Remove Play Services from DenyList, otherwise the Zygisk module won't load
magisk --denylist rm com.google.android.gms
# Late props which must be set after boot_completed
{
until [[ "$(getprop sys.boot_completed)" == "1" ]]; do