diff --git a/edxp-core/template_override/customize.sh b/edxp-core/template_override/customize.sh index 9a69d633..beed3631 100644 --- a/edxp-core/template_override/customize.sh +++ b/edxp-core/template_override/customize.sh @@ -284,6 +284,10 @@ else ui_print "- Use new path $MISC_PATH" mkdir -p /data/adb/edxp || abort "! Can't create adb path" echo "$MISC_PATH" > /data/adb/edxp/misc_path || abort "! Can't store configuration path" + if [[ -d /data/user_de/0/org.meowcat.edxposed.manager/conf/ ]]; then + mkdir -p /data/misc/$MISC_PATH/0/conf + cp -r /data/user_de/0/org.meowcat.edxposed.manager/conf/* /data/misc/$MISC_PATH/0/conf/ + fi fi set_perm_recursive /data/adb/edxp root root 0700 0600 "u:object_r:magisk_file:s0" || abort "! Can't set permission" mkdir -p /data/misc/$MISC_PATH || abort "! Can't create configuration path" @@ -311,15 +315,10 @@ if [[ "${VARIANTS}" == "SandHook" ]]; then fi ui_print "- Resetting libraries path" - -sed -i 's:/system/framework/edxp.dex\:/system/framework/eddalvikdx.dex\:/system/framework/eddexmaker.dex:/system/framework/'"${JAR_EDXP}"'\:/system/framework/'"${JAR_EDDALVIKDX}"'\:/system/framework/'"${JAR_EDDEXMAKER}"':g' "${MODPATH}/system/lib/${LIB_RIRU_EDXP}" -#sed -i 's:/system/framework/edconfig.jar:/system/framework/'"${JAR_EDCONFIG}"':g' "${MODPATH}/system/lib/${LIB_RIRU_EDXP}" sed -i 's:libriru_edxp.so:'"${LIB_RIRU_EDXP}"':g' "${MODPATH}/system/lib/${LIB_RIRU_EDXP}" sed -i 's:libsandhook.edxp.so:'"${LIB_SANDHOOK_EDXP}"':g' "${MODPATH}/system/lib/${LIB_RIRU_EDXP}" if [[ "${IS64BIT}" == true ]]; then - sed -i 's:/system/framework/edxp.dex\:/system/framework/eddalvikdx.dex\:/system/framework/eddexmaker.dex:/system/framework/'"${JAR_EDXP}"'\:/system/framework/'"${JAR_EDDALVIKDX}"'\:/system/framework/'"${JAR_EDDEXMAKER}"':g' "${MODPATH}/system/lib64/${LIB_RIRU_EDXP}" -# sed -i 's:/system/framework/edconfig.jar:/system/framework/'"${JAR_EDCONFIG}"':g' "${MODPATH}/system/lib64/${LIB_RIRU_EDXP}" sed -i 's:libriru_edxp.so:'"${LIB_RIRU_EDXP}"':g' "${MODPATH}/system/lib64/${LIB_RIRU_EDXP}" sed -i 's:libsandhook.edxp.so:'"${LIB_SANDHOOK_EDXP}"':g' "${MODPATH}/system/lib64/${LIB_RIRU_EDXP}" fi diff --git a/edxp-core/template_override/post-fs-data.sh b/edxp-core/template_override/post-fs-data.sh index 7ce82fc6..8b93bfb2 100644 --- a/edxp-core/template_override/post-fs-data.sh +++ b/edxp-core/template_override/post-fs-data.sh @@ -43,9 +43,7 @@ MAGISK_VERCODE=$(su -V) sepolicy() { # Should be deprecated now. This is for debug only. supolicy --live "allow system_server system_server process execmem" \ - "allow system_server system_server memprotect mmap_zero" \ - "allow zygote app_data_file dir { getattr search read open }" \ - "allow zygote app_data_file file { getattr read open }" + "allow system_server system_server memprotect mmap_zero" } #if [[ ${ANDROID_SDK} -ge 24 ]]; then