2
0
mirror of https://github.com/topjohnwu/Magisk synced 2025-08-31 21:17:38 +00:00

Update boot patch method and scripts

This commit is contained in:
topjohnwu
2017-07-02 21:36:09 +08:00
parent 9d421226a7
commit bf42fce17e
10 changed files with 183 additions and 119 deletions

View File

@@ -16,6 +16,11 @@ main() {
# This script always run in recovery
BOOTMODE=false
if [ ! -d $MAGISKBIN ]; then
echo "! Cannot find Magisk binaries!"
exit 1
fi
# Wait for post addon.d processes to finish
sleep 5
@@ -23,11 +28,6 @@ main() {
mount -o ro /vendor 2>/dev/null
mount /data 2>/dev/null
if [ ! -d $MAGISKBIN ]; then
echo "! Cannot find Magisk binaries!"
exit 1
fi
# Load all functions
. $MAGISKBIN/util_functions.sh
@@ -37,6 +37,8 @@ main() {
ui_print "* MAGISK_VERSION_STUB"
ui_print "************************"
api_level_arch_detect
recovery_actions
find_boot_image
@@ -61,9 +63,7 @@ main() {
cd /
mv /sbin_tmp /sbin
ui_print "- Unmounting partitions"
umount -l /system
recovery_cleanup
ui_print "- Done"
exit 0