mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-23 18:15:30 +00:00
Don't wipe ramdisk when A-only SAR
This commit is contained in:
parent
0fcd0de0d1
commit
cf2d02c0dd
@ -115,13 +115,7 @@ case $((STATUS & 3)) in
|
||||
# Find SHA1 of stock boot image
|
||||
[ -z $SHA1 ] && SHA1=`./magiskboot cpio ramdisk.cpio sha1 2>/dev/null`
|
||||
./magiskboot cpio ramdisk.cpio restore
|
||||
if ./magiskboot cpio ramdisk.cpio "exists init.rc"; then
|
||||
# Normal boot image
|
||||
cp -af ramdisk.cpio ramdisk.cpio.orig
|
||||
else
|
||||
# A only system-as-root
|
||||
rm -f ramdisk.cpio
|
||||
fi
|
||||
cp -af ramdisk.cpio ramdisk.cpio.orig
|
||||
;;
|
||||
2 ) # Unsupported
|
||||
ui_print "! Boot image patched by unsupported programs"
|
||||
|
Loading…
Reference in New Issue
Block a user