2018-11-09 20:12:55 +00:00
|
|
|
#!/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%/*}
|
|
|
|
|
2019-01-03 09:41:23 +00:00
|
|
|
# wait until boot completed
|
|
|
|
until [ `getprop sys.boot_completed`. = 1. ]; do sleep 1; done
|
|
|
|
|
2018-11-09 20:12:55 +00:00
|
|
|
# install Magisk Manager if NanoDroid migration was run
|
2019-01-03 09:41:23 +00:00
|
|
|
[ -f /data/adb/magisk.apk ] && \
|
2018-11-09 20:12:55 +00:00
|
|
|
pm install -r /data/adb/magisk.apk ; \
|
|
|
|
rm -f /data/adb/magisk.apk &
|