From eef5ef29f054aa337afe73c44f869a46a087bf2e Mon Sep 17 00:00:00 2001 From: Jim Wu Date: Fri, 25 Dec 2020 10:24:14 +0800 Subject: [PATCH] Fix #769 --- edxp-core/template_override/post-fs-data.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/edxp-core/template_override/post-fs-data.sh b/edxp-core/template_override/post-fs-data.sh index 78ca169f..8e60bee8 100644 --- a/edxp-core/template_override/post-fs-data.sh +++ b/edxp-core/template_override/post-fs-data.sh @@ -165,5 +165,10 @@ chcon -R u:object_r:system_file:s0 "${MODDIR}" chcon -R ${PATH_CONTEXT} "${LOG_PATH}" chown -R ${PATH_OWNER} "${LOG_PATH}" chmod -R 666 "${LOG_PATH}" -[[ -z "$MISC_PATH" ]] || chcon -R u:object_r:magisk_file:s0 "$BASE_PATH" -rm -f /data/adb/edxp/new_install \ No newline at end of file + +if [[ ! -z "${MISC_PATH}" ]]; then + mkdir -p "${BASE_PATH}/cache" + chcon -R u:object_r:magisk_file:s0 "${BASE_PATH}" + chmod -R 777 "${BASE_PATH}" +fi +rm -f /data/adb/edxp/new_install