From dd9446929477f50684c790f90550959b21e214c2 Mon Sep 17 00:00:00 2001 From: Cyan Date: Wed, 6 Dec 2023 17:44:04 +0800 Subject: [PATCH] Fix dex and lib writable --- template/magisk_module/post-install.example.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/template/magisk_module/post-install.example.sh b/template/magisk_module/post-install.example.sh index b7b4a9d..bd9711c 100644 --- a/template/magisk_module/post-install.example.sh +++ b/template/magisk_module/post-install.example.sh @@ -23,7 +23,7 @@ copy_rish() { cp "$RISH_DEX" "$DEX_TARGET" cp "$RISH_LIB" "$LIB_TARGET" cp "$RISH_SCRIPT" "$SCRIPT_TARGET" - chmod 600 "$DEX_TARGET" "$LIB_TARGET" + chmod 400 "$DEX_TARGET" "$LIB_TARGET" chmod 700 "$SCRIPT_TARGET" chown "$APP_UID":"$APP_UID" "$DEX_TARGET" "$LIB_TARGET" "$SCRIPT_TARGET" sed -i "s/%%%RISH_APPLICATION_ID%%%/$APP_APPLICATION_ID/g" "$SCRIPT_TARGET"