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 ;;
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