2
0
mirror of https://gitlab.com/Nanolx/NanoDroid synced 2024-11-09 19:10:30 +00:00
NanoDroid/BromiteWebView/common/service.sh

14 lines
562 B
Bash

#!/system/bin/sh
# Please don't hardcode /magisk/modname/... ; instead, please use $MODDIR/...
# This will make your scripts compatible even if Magisk change its mount point in the future
MODDIR=${0%/*}
# Bromite WebView needs to be installed as user app
sleep 30 && pm list packages -f | grep -q /data.*com.android.webview || \
pm install -r "${MODDIR}/system/app/webview/webview.apk" &
# install Magisk Manager if NanoDroid migration was run
sleep 30 && [ -f /data/adb/magisk.apk ] && \
pm install -r /data/adb/magisk.apk ; \
rm -f /data/adb/magisk.apk &