Change stock boot image SHA1 backup method

This commit is contained in:
topjohnwu
2018-11-15 00:33:20 -05:00
parent 89e0be0099
commit 83ae66daea
4 changed files with 38 additions and 52 deletions

View File

@@ -79,8 +79,9 @@ mm_patch_dtbo() {
}
restore_imgs() {
local SHA1=`cat /.backup/.sha1`
[ -z $SHA1 ] && local SHA1=`grep_prop #STOCKSHA1`
local SHA1=`grep_prop SHA1 /.backup/.magisk`
[ -z $SHA1 ] && local SHA1=`cat /.backup/.sha1`
[ -z $SHA1 ] && local SHA1=`grep_prop #STOCKSHA1 /.backup/.magisk`
[ -z $SHA1 ] && return 1
local STOCKBOOT=/data/stock_boot_${SHA1}.img.gz
local STOCKDTBO=/data/stock_dtbo.img.gz