Check Shamiko whitelist before configuring DenyList

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.
This commit is contained in:
Inche Hwang 2024-10-24 01:03:28 +09:00 committed by GitHub
parent fb36aab0c0
commit 2ec63b609d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -6,7 +6,9 @@ if magisk --denylist status; then
magisk --denylist rm com.google.android.gms magisk --denylist rm com.google.android.gms
else else
# If DenyList is disabled, maybe you are using Shamiko # If DenyList is disabled, maybe you are using Shamiko
if [ ! -f "/data/adb/shamiko/whitelist" ]; then
magisk --denylist add com.google.android.gms com.google.android.gms.unstable magisk --denylist add com.google.android.gms com.google.android.gms.unstable
fi
fi fi
# Uninstall conflict apps # Uninstall conflict apps