From 0f3551497c513b9371913a56aa12e65b6caa0d59 Mon Sep 17 00:00:00 2001 From: ip Date: Wed, 2 Feb 2022 20:02:05 -0600 Subject: [PATCH] Only remove gms if Denylist is enforced Originally Magisk required the Denylist to be enforced to access the Denylist. When enforced, Magisk is unloaded while the processes on the Denylist are called. Now you can access the Denylist when it is not enforced. Since Magisk runs normally when not enforced, the Denylist is just a list. No need to remove 'gms' from the Denylist when it is not enforced. --- magisk/post-fs-data.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/magisk/post-fs-data.sh b/magisk/post-fs-data.sh index 6c2af06..20c140d 100755 --- a/magisk/post-fs-data.sh +++ b/magisk/post-fs-data.sh @@ -1,4 +1,6 @@ #!/system/bin/sh -# Remove Play Services from DenyList, otherwise the Zygisk module won't load -magisk --denylist rm com.google.android.gms +# Remove Play Services from the Magisk Denylist when set to enforcing. +if magisk --denylist status; then + magisk --denylist rm com.google.android.gms +fi