2
0
mirror of https://gitlab.com/Nanolx/NanoDroid synced 2024-10-31 09:20:23 +00:00

CommonInstaller: some ROMs use webviewstub instead of webview

This commit is contained in:
Christopher Roy Bratusek 2018-11-12 17:54:36 +01:00
parent 0212e618b1
commit 3445cb6e0d

View File

@ -956,12 +956,20 @@ install_bromite_webview () {
x86_64 ) BROMITE_ARCH=x86 ;; x86_64 ) BROMITE_ARCH=x86 ;;
esac esac
if [ -d /system/app/webview -a "${MODE}" = "SYSTEM" ]; then for app in webview webviewstub; do
echo " backing up webview to /sdcard/nanodroid_backups/app/webview" if [ -d /system/app/${app} ]; then
mkdir -p /sdcard/nanodroid_backups/app if [ "${MODE}" = "SYSTEM" ]; then
rm -rf /sdcard/nanodroid_backups/app/webview echo " backing up ${app} to /sdcard/nanodroid_backups/app/${app}"
mv /system/app/webview /sdcard/nanodroid_backups/app/ mkdir -p /sdcard/nanodroid_backups/app
fi 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 nanodroid_install_apk BromiteWebView_${BROMITE_ARCH} multilib webview
fi fi