Skip to content

Commit

Permalink
Only remove gms if Denylist is enforced
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ipdev99 authored and kdrag0n committed Mar 11, 2022
1 parent 7238dd7 commit 0f35514
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions magisk/post-fs-data.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 0f35514

Please sign in to comment.