diff --git a/CommonInstaller b/CommonInstaller index eae9e0a..ce8cd0e 100644 --- a/CommonInstaller +++ b/CommonInstaller @@ -956,12 +956,20 @@ install_bromite_webview () { x86_64 ) BROMITE_ARCH=x86 ;; esac - if [ -d /system/app/webview -a "${MODE}" = "SYSTEM" ]; then - echo " backing up webview to /sdcard/nanodroid_backups/app/webview" - mkdir -p /sdcard/nanodroid_backups/app - rm -rf /sdcard/nanodroid_backups/app/webview - mv /system/app/webview /sdcard/nanodroid_backups/app/ - fi + for app in webview webviewstub; do + if [ -d /system/app/${app} ]; then + if [ "${MODE}" = "SYSTEM" ]; then + echo " backing up ${app} to /sdcard/nanodroid_backups/app/${app}" + mkdir -p /sdcard/nanodroid_backups/app + rm -rf /sdcard/nanodroid_backups/app/${app} + mv /system/app/${app} /sdcard/nanodroid_backups/app/ + elif [ "${MODE}" = "MAGISK" ]; then + echo " creating overlay for ${app}" + mkdir -p ${MODPATH}/system/app/${app} + touch ${MODPATH}/system/app/${app}/.replace + fi + fi + done nanodroid_install_apk BromiteWebView_${BROMITE_ARCH} multilib webview fi