Skip to content

Commit

Permalink
unpackimg.sh : Support payload-dumper-go
Browse files Browse the repository at this point in the history
  • Loading branch information
lateautumn233 committed Sep 5, 2021
1 parent f470d50 commit eb44161
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 42 deletions.
Binary file removed bin/zipalign
Binary file not shown.
39 changes: 0 additions & 39 deletions unpackext4img.sh

This file was deleted.

14 changes: 11 additions & 3 deletions unpackerofsimg.sh → unpackimg.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,17 @@ do
sdat2img.py tmp/${i}.transfer.list tmp/${i}.new.dat tmp/${i}.img
test1 && rm tmp/${i}.transfer.list tmp/${i}.new.dat
fi
echo -e "\033[33m 解压${i}.img \033[0m"
erofsunpack tmp/${i}.img tmp
test1 && rm tmp/${i}.img

filetype=`file tmp/system.img | grep -o "data"`
if [ ${filetype} == data ];then
echo -e "\033[33m 解压${i}.img \033[0m"
erofsunpack tmp/${i}.img tmp
test1 && rm tmp/${i}.img
else
echo -e "\033[33m 解压${i}.img \033[0m"
imgextractor.py tmp/${i}.img tmp/${!}
test1 && rm tmp/${i}.img
fi
done
}

Expand Down

0 comments on commit eb44161

Please sign in to comment.