From 2ec63b609df1070b4b7048f32f40ffdc0b7b4e17 Mon Sep 17 00:00:00 2001 From: Inche Hwang Date: Thu, 24 Oct 2024 01:03:28 +0900 Subject: [PATCH] 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. --- module/post-fs-data.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/module/post-fs-data.sh b/module/post-fs-data.sh index 49153e6..8d30694 100644 --- a/module/post-fs-data.sh +++ b/module/post-fs-data.sh @@ -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