Fix scripts

manager.sh + boot_patch.sh:
- all listed files from boot_patch.sh header are required for boot patching, but stub.apk was being removed so install_magisk via addon.d.sh would fail without it; leave it in place

addon.d.sh:
- remove old redundant recovery_actions call (it's also performed by setup_flashable in initialize)
- print ABI to match flash_script.sh output

boot_patch.sh:
- catch and abort on any errors from ramdisk.cpio patching in the future

util_functions.sh:
- fix hiding of mount_partitions /system_root umount stderr
- quote mount_apex .pb DEST name parsing charset for safety even though both work

Fixes #6828
This commit is contained in:
osm0sis
2023-04-05 22:53:55 -03:00
committed by John Wu
parent a70c73bffd
commit 18fe0e6442
4 changed files with 10 additions and 11 deletions

View File

@ -186,9 +186,10 @@ echo "RANDOMSEED=0x$RANDOMSEED" >> config
"patch" \
"backup ramdisk.cpio.orig" \
"mkdir 000 .backup" \
"add 000 .backup/.magisk config"
"add 000 .backup/.magisk config" \
|| abort "! Unable to patch ramdisk"
rm -f ramdisk.cpio.orig config magisk*.xz stub.xz stub.apk
rm -f ramdisk.cpio.orig config magisk*.xz stub.xz
#################
# Binary Patches