mirror of https://gitlab.com/Nanolx/NanoDroid
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.
12 lines
506 B
Bash
12 lines
506 B
Bash
7 years ago
|
#!/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%/*}
|
||
|
|
||
6 years ago
|
# wait until boot completed
|
||
|
until [ `getprop sys.boot_completed`. = 1. ]; do sleep 1; done
|
||
|
|
||
7 years ago
|
# in Magisk Mode microG DroidGuard Helper needs to be installed as user app
|
||
6 years ago
|
pm list packages -f | grep -q /data.*org.microg.gms.droidguard || \
|
||
6 years ago
|
pm install -r "${MODDIR}/system/app/DroidGuard/DroidGuard.apk" &
|