Skip to content

Commit 0632a0f

Browse files
committed
v3.8 - add hdr_v3 boot/vendor_boot support, improve lz4 support, fixes
- fix magic detection false positives of OSIP bootimg headerless - add test to ensure Windows sudo is executable - fix multiple Windows sudo prompts by putting ramdisk packing commands into a single find2cpio.bat to execute - fix for corrected unpackbootimg/unpackelf kernel+ramdisk suffixes - update AOSP support for boot_img_hdr_v3 - add AOSP vendor_boot VNDRBOOT magic detection and support - fix false no files error on ramdisks with only directories in root - fix lz4 and lz4-l ramdisk default repack compression level to match what Google seems to be using - update slimmed magic file (from file 5.40) with my own fixes - fix exiting scripts with an error code on failures
1 parent fb1b2b5 commit 0632a0f

File tree

5 files changed

+287
-89
lines changed

5 files changed

+287
-89
lines changed

android_win_tools/androidbootimg.magic

+7
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,18 @@
4040
>>2048 search \x88\x16\x88\x58 \b, MTK headers
4141
!:strength * 3
4242

43+
# Google Pixel/AOSP Vendor Standard
44+
# [test "x" as workaround to odd file/magic behavior not allowing search here]
45+
0 string x
46+
>0 search VNDRBOOT AOSP_VNDR bootimg
47+
!:strength * 3
48+
4349
# DENX U-Boot
4450
0 string \x27\x05\x19\x56 U-Boot bootimg
4551

4652
# Intel OSIP
4753
1000 search \xFC\xFA\xBC\x00 OSIP bootimg (headerless)
54+
!:strength / 15
4855
0 string $OS$\x00\x00\x01 OSIP bootimg
4956
>52 string \x00\x00\x00\x00 \b, boot (signed)
5057
>52 string \x01\x00\x00\x00 \b, boot (unsigned)

android_win_tools/find2cpio.bat

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"%bin%"\find . | "%bin%"\cpio -H newc -R 0:0 -o -F ..\ramdisk-new.cpio 2>nul

0 commit comments

Comments
 (0)