Skip to content

Commit

Permalink
Check Shamiko whitelist before configuring DenyList
Browse files Browse the repository at this point in the history
Since creating a file named 'whitelist' on /data/adb/shamiko/ seems to be the only way to enable whitelist mode on Shamiko.

This commit adds a simple if statement to check that whitelist mode is not enabled.
  • Loading branch information
IcyColdified authored Oct 23, 2024
1 parent fb36aab commit 2ec63b6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion module/post-fs-data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ if magisk --denylist status; then
magisk --denylist rm com.google.android.gms
else
# If DenyList is disabled, maybe you are using Shamiko
magisk --denylist add com.google.android.gms com.google.android.gms.unstable
if [ ! -f "/data/adb/shamiko/whitelist" ]; then
magisk --denylist add com.google.android.gms com.google.android.gms.unstable
fi
fi

# Uninstall conflict apps
Expand Down

0 comments on commit 2ec63b6

Please sign in to comment.