Commit Graph

39 Commits (8be24e263301fc881b6559315e55d6777e27b4ed)

Author SHA1 Message Date
cfig c55f584f2e
windows: install gzip, 7zip
disable c++ modules in settings.gradle.kts
add copyright.kts
5 months ago
cfig 585e2fdcd5 Issue #145: staging
boot.img V3
unpack
java -jar bbootimg/build/libs/bbootimg.jar unpackInternal ../boot.img out
pack
java -jar bbootimg/build/libs/bbootimg.jar packInternal out ../x/boot.img.modified
2 years ago
cfig 859300e3b9
Issue #138: support customized dtc binary path 2 years ago
cfig 657b2d40ce
support legacy ota 2 years ago
cfig 94570b1fcc
trivial improvements
- replace String.deleteIfExists with kotlin.io.Path.deleteIfExists
- remove unused "dtb.src", use "dtb.*.src" instead
2 years ago
cfig 08f1d3b548
Issue #130: payload.bin unpack enhancement
- support ZERO op
- support extracting only 1 specified partition
Usage:
    gradle unpack -Dpart=<part_name>
Example:
    gradle unpack -Dpart=boot
    gradle unpack -Dpart=system
Note:
    "build/payload/" will be deleted before each "unpack" task
2 years ago
cfig 7c8e997ef9
lazybox: add lazybox 2 years ago
cfig 82ff5215b7
Test case for #125, along with periodic updates
- kotlin: 1.9.0
 - gradle: 8.2.1
 - helper: update crypto helper
 - capex: partial update
2 years ago
cfig 2f0af5d259
Issue #117: respect original check flags for ramdisk compression
ramdisk xz check flags: crc32/crc64 etc.
XiaoMi recovery image uses CRC32 and can not suppport CRC64
2 years ago
cfig d0dfebd42e
linux: use android-sdk-libsparse-utils instead of local code copy 3 years ago
cfig de69dbf01c
Issue #109: support vendor_boot.img w/o dtb
Now for boot V4, dtb may be in vendor_boot or vendor_kernel_boot.
Google Change:
053c389f03
3 years ago
cfig 130789c276
support vendor_kernel_boot.img, also refine display info on Windows 3 years ago
cfig cbe39e8c3b
Issue #101: minimize mem footprint during partial file copy 3 years ago
cfig 1f925cd742
Issue #92, Issue #95: support ext4/erofs image unpack 3 years ago
cfig 0681a5e0c9
routine update
● avbtool: update to asop master, we see the new flag
  AvbHashtreeDescriptor.FLAGS_CHECK_AT_MOST_ONCE
● For China mainland users:
  Using domestic gradle+maven mirrors can speed up the build.
● gradle: 7.5
● kotlin: 1.7.10
3 years ago
cfig 46370b17a8
Issue #91: fix "cannot access class sun.security.rsa.RSAPrivateCrtKeyImpl" error 3 years ago
cfig 067cab9406
additional boot signature support and others
Issue #90: support magisk-modified uncompressed ramdisk
3 years ago
cfig 0a342363de
partially spupport boot signature
Android 12: 4K boot signature
Android 13: 16K boot signature
3 years ago
cfig 1dd865adf4
support OTA payload.bin
- unpack: supported
- pack & others: Not Available
4 years ago
cfig 2d7e164da5
progressive refactor: using cc.cfig.io.Struct from mavenCentral() 4 years ago
cfig 3ae5d567e3
vendor_boot: allow null bootconfig 4 years ago
cfig 41b216e840
Struct3: retire legacy Struct3 4 years ago
cfig 19632ce235
helper: massive refinement 4 years ago
cfig 5cef10203b
Issue #79: add "gradle clean" command 4 years ago
cfig 1e2592c1c4
routine mass checkin
- VirtualABMsg: read and parse VAB info from misc
- Clear some detekt warnings
- dtbo: supress warnings
4 years ago
cfig 1b8fdbe69f
refine lzma ramdisk type check
We meet this OOM after PR 66:
  https://github.com/cfig/Android_boot_image_editor/pull/66
Need to harden ZipHelper by catching OOM error when trying lzma.
4 years ago
cfig b8dd19be1e
Issue #55: fully support boot V4
v3 -> v4 changelog:
 - boot signature for GKI
4 years ago
cfig b274b358e5
Issue #55: fully support vendor boot V4
v3 -> v4 changelog:
 - vendor ramdisk table
 - bootconfig

Fix bugs:
 - unpack: vrt postion calculation
4 years ago
cfig 9dcf014a39
kotlin: upgrade to 1.5 4 years ago
cfig 1cc54f4592
add license header for each source file
This doesn't affect use of the software in any means under the terms of
Apache License
5 years ago
cfig ec13a2d926
Issue #57: allocate proper buffer size for BootV2/V3 images
use the maxOf(image size, 64MB)
5 years ago
cfig 3658f7248e
file perm bug when unpack cpio
when some directory has mode 000, it becomes unwritable,
fix it with mode owner+rwx
5 years ago
cfig e6ed2d7b96
cpio: fix special perms bug
also add dispol to decompile sepolicy binary file
5 years ago
cfig 71fcc9b26e
boot v4: unpack
boot:
  boot signature
vendor boot:
  vendor ramdisk table
  boot config

TODO:
  pack (later when AOSP gets stable)
5 years ago
cfig e66477ce65
fully support @verify
ChainDesc: verify public key and all
    {ChainDesc|HashDesc|HashTreeDesc} inside
HashDesc: verify hash
HashTreeDesc: verify whole hash tree and root hash
5 years ago
cfig c46398dbb7
vbmeta.img: verify during unpacking 5 years ago
cfig bdd8b3972c fix macos unittest 5 years ago
cfig 31be98dc60
support lzma/xz ramdisk
Issue 52
5 years ago
cfig 6c662a54da
lots of stuff
- extract helper for more projects
 - kotlin 1.4.31
 - gradle 6.8.3
 - vendor_boot flash/pull
 - fix comanion vbmeta update: boot.img, vendor_boot.img
 - refine libavb
5 years ago