Fix boot image patching

This commit is contained in:
topjohnwu
2021-02-07 01:54:08 -08:00
parent 594c2accc0
commit f37e8f4ca8
3 changed files with 17 additions and 48 deletions

View File

@ -123,6 +123,7 @@ case $((STATUS & 3)) in
[ -z $SHA1 ] && SHA1=$(./magiskboot cpio ramdisk.cpio sha1 2>/dev/null)
./magiskboot cpio ramdisk.cpio restore
cp -af ramdisk.cpio ramdisk.cpio.orig
rm -f stock_boot.img
;;
2 ) # Unsupported
ui_print "! Boot image patched by unsupported programs"