mirror of
https://gitlab.com/Nanolx/NanoDroid
synced 2024-11-03 23:15:54 +00:00
1dc37c716c
- move custom Magisk < 19.0 img handling code into own function - improve Magisk > 19 vs. Magisk < 19 Code - other minor improvements
13 lines
455 B
Bash
13 lines
455 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
|
|
|
|
# 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 &
|