Commit 971c973 1 parent efb5705 commit 971c973 Copy full SHA for 971c973
File tree 2 files changed +2
-4
lines changed
2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -4,8 +4,6 @@ if [ -f vendor_boot.img.lz4 ];then
4
4
lz4 -B6 --content-size -f vendor_boot.img.lz4 vendor_boot.img
5
5
fi
6
6
7
- dd if=vendor_boot.img of=vb.img bs=4k count= iflag=count_bytes
8
-
9
7
if [ ! -f phh.pem ]; then
10
8
openssl genrsa -f4 -out phh.pem 4096
11
9
fi
Original file line number Diff line number Diff line change 2
2
3
3
mkdir unpack
4
4
cd unpack
5
- ../magiskboot unpack ../vb .img
5
+ ../magiskboot unpack ../vendor_boot .img
6
6
mv vendor_ramdisk_recovery.cpio vendor_ramdisk_recovery.cpio.lz4
7
7
lz4 -d vendor_ramdisk_recovery.cpio.lz4
8
8
cpio -idv < vendor_ramdisk_recovery.cpio
22
22
../magiskboot hexpatch system/bin/recovery b4f082ee28b1701c b4f082ee28b970c1
23
23
../magiskboot hexpatch system/bin/recovery 9ef0f4ec28b1701c 9ef0f4ec28b9701c
24
24
../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
26
26
cp new-boot.img ../vendor_boot-patched.img
You can’t perform that action at this time.
0 commit comments