Skip to content

Commit 971c973

Browse files
committed
TEST5
Signed-off-by: Carlo Dandan <carlodandan.personal@proton.me>
1 parent efb5705 commit 971c973

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

script1.sh

-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ if [ -f vendor_boot.img.lz4 ];then
44
lz4 -B6 --content-size -f vendor_boot.img.lz4 vendor_boot.img
55
fi
66

7-
dd if=vendor_boot.img of=vb.img bs=4k count= iflag=count_bytes
8-
97
if [ ! -f phh.pem ];then
108
openssl genrsa -f4 -out phh.pem 4096
119
fi

script2.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
mkdir unpack
44
cd unpack
5-
../magiskboot unpack ../vb.img
5+
../magiskboot unpack ../vendor_boot.img
66
mv vendor_ramdisk_recovery.cpio vendor_ramdisk_recovery.cpio.lz4
77
lz4 -d vendor_ramdisk_recovery.cpio.lz4
88
cpio -idv < vendor_ramdisk_recovery.cpio
@@ -22,5 +22,5 @@ ls
2222
../magiskboot hexpatch system/bin/recovery b4f082ee28b1701c b4f082ee28b970c1
2323
../magiskboot hexpatch system/bin/recovery 9ef0f4ec28b1701c 9ef0f4ec28b9701c
2424
../magiskboot cpio vendor_ramdisk_recovery.cpio 'add 0755 system/bin/recovery system/bin/recovery'
25-
../magiskboot repack ../vb.img new-boot.img
25+
../magiskboot repack ../vendor_boot.img new-boot.img
2626
cp new-boot.img ../vendor_boot-patched.img

0 commit comments

Comments
 (0)