Remove /.backup folder on start

This commit is contained in:
topjohnwu
2018-11-20 05:24:40 -05:00
parent de0064af47
commit 0784448c69
3 changed files with 8 additions and 6 deletions

View File

@@ -79,9 +79,8 @@ mm_patch_dtbo() {
}
restore_imgs() {
local SHA1=`grep_prop SHA1 /.backup/.magisk`
local SHA1=`grep_prop SHA1 /sbin/.magisk/config`
[ -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