Skip to content

Commit

Permalink
add payload.bin Support
Browse files Browse the repository at this point in the history
  • Loading branch information
lateautumn233 committed Aug 27, 2021
1 parent 48198ce commit f470d50
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 10 deletions.
Binary file modified bin/erofsunpack
Binary file not shown.
Binary file added bin/payload-dumper-go
Binary file not shown.
25 changes: 15 additions & 10 deletions unpackerofsimg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,26 @@ test1(){
decompresszip(){
mkdir out tmp
unzip *.zip -d tmp
test1
if [ -e *.bin ]; then
payload-dumper-go tmp/payload.bin -o tmp
test1
rm tmp/payload.bin
fi
rm *.zip
}

decompressimg(){
for i in system vendor product system_ext odm
do
echo -e "\033[32m 解压${i}.new.dat.br \033[0m"
brotli -d tmp/${i}.new.dat.br -o tmp/${i}.new.dat
test1 && rm tmp/${i}.new.dat.br

echo -e "\033[33m 解压${i}.new.dat \033[0m"
sdat2img.py tmp/${i}.transfer.list tmp/${i}.new.dat tmp/${i}.img
test1 && rm tmp/${i}.transfer.list tmp/${i}.new.dat

do
if [ -e *.br ];then
echo -e "\033[32m 解压${i}.new.dat.br \033[0m"
brotli -d tmp/${i}.new.dat.br -o tmp/${i}.new.dat
test1 && rm tmp/${i}.new.dat.br

echo -e "\033[33m 解压${i}.new.dat \033[0m"
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
Expand Down

0 comments on commit f470d50

Please sign in to comment.