Skip to content

Commit

Permalink
Add support for lz4 compressed files
Browse files Browse the repository at this point in the history
  • Loading branch information
Johx22 committed Apr 19, 2022
1 parent 9009c75 commit 164448e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion script1.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
#!/bin/bash

if [ -f recovery.img.lz4 ];then
lz4 -B6 --content-size -f recovery.img.lz4 recovery.img
fi

off=$(grep -ab -o SEANDROIDENFORCE recovery.img |tail -n 1 |cut -d : -f 1)
dd if=recovery.img of=r.img bs=4k count=$off iflag=count_bytes
dd if=recovery.img of=r.img bs=4k count=$off iflag=count_bytes

if [ ! -f phh.pem ];then
openssl genrsa -f4 -out phh.pem 4096
Expand Down

0 comments on commit 164448e

Please sign in to comment.