2
0
mirror of https://gitlab.com/Nanolx/NanoDroid synced 2024-10-31 09:20:23 +00:00
NanoDroid/BromiteWebView/service.sh
2019-05-12 10:50:05 +02:00

12 lines
484 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/BromiteWebView/BromiteWebView.apk" &