You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NanoDroid/BromiteWebView/service.sh

17 lines
618 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%/*}
# wait until boot completed
until [ `getprop sys.boot_completed`. = 1. ]; do sleep 1; done
# Bromite WebView needs to be installed as user app
pm list packages -f | grep -q /data.*com.android.webview || \
pm install -r "${MODDIR}"/system/app/*/*.apk &
# install Magisk Manager if NanoDroid migration was run
[ -f /data/adb/magisk.apk ] && \
pm install -r /data/adb/magisk.apk ; \
rm -f /data/adb/magisk.apk &