Commit Graph

112 Commits (68afa1834e677d6a5ded459fa2bd35145c7f14cd)

Author SHA1 Message Date
cfig 68afa1834e
Issue #95: add vendor_dlkm into known image name 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
railjty 782efa3b69
bootv2: support dts/dtb compiling in 'pack' 3 years ago
cfig 394bfc5f94
vendor boot: support dts/dtb compiling in 'pack' 3 years ago
cfig 56b75a2610
add test case for Issue #91 3 years ago
cfig d2719ae39e
Issue #91: allow unsigned vendor_boot.img 3 years ago
cfig 4e7bdf6c47
dtbo: support 'pull' and 'flash' 3 years ago
cfig 9101c5bbab
update kotlin to 1.7.0 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 3df4ec6fc1
Issue #87: refine "clear" task
Please use "gradle clear" instead of "gradle clean".
3 years ago
cfig 2d8c39b797
Issue #88, Issue #75: ignore empty bootSig in boot V4
Issue #88: Android 12 has empty bootSig, while Android 13 doesn't, so we
    ignore this part duing re-packing
Issue #75: allow duplicated entry in CPIO
Also: replace slf4j-simple with logback
3 years ago
cfig b701884df2
Issue #86: fix vrt vendor_boot issues
- support vendor_boot "board" filed
- fix unpack problem when vrt is enabled
- add test case
- upgrade to kotlin 1.6.21
3 years ago
cfig f716e34d6d
Issue #84: support misc.img
Actions:
  unpack
  pack
  pull
  flash
Signed-off-by: cfig <yuyezhong@gmail.com>
3 years ago
cfig 54be7a4fae
Issue #83: support boot.img w/o ramdisk 3 years ago
cfig 78105c6b72
Issue #83: support init_boot.img 3 years ago
cfig 1dd865adf4
support OTA payload.bin
- unpack: supported
- pack & others: Not Available
3 years ago
cfig 2d7e164da5
progressive refactor: using cc.cfig.io.Struct from mavenCentral() 3 years ago
cfig 3ae5d567e3
vendor_boot: allow null bootconfig 3 years ago
cfig b3246f6474
update module versions 3 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 7a783acb27
Issue #75: do not alllow duplicated fsconfig when packing cpio 4 years ago
cfig a358bd6a7b
Issue #71: refine dtbo unpack/pack
dtbo unpack:
    save image info
    decompile dtb to dts and yaml dts
    print summary
dtbo pack:
    compile dts to dtb
    print summary
boot v0-v4 pack:
    print summary
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 62bc8004c4
update gradle/kotlin
gradle 7.2
kotlin plugin: 1.5.30
4 years ago
cfig 6c07824ca4
Issue #67: support boot/vendor_boot headerVersion downgrade from 4 to 3
boot: correct header size, trim bootSignature
vendor_boot: correct header size, trim vrt
4 years ago
Rover12421 041a12606f
fix FileNotFoundException / add ignore file list (#68)
* fix FileNotFoundException

magisk patch boot, ramdisk add backup file don't create(add) parent dir

* add git ignore file

add ignore file list :
boot.img*
local.properties
4 years ago
CallMESuper 2928ee9084 Lzma early than lz4.
* when user try to unpack image which ramdisk compressed with lzma, lz4 -t $IMAGE_FILE will return like 'Successfully decoded 13601602 bytes'. However in this case, tools cannot read entry and throw Exception.
4 years ago
cfig 9a94d2a16e
boot v4: fix bug "avbtool not found" 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 66c264b504
Feature: add AVB verification status for boot v0-v2 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
4 years ago
cfig 6a7d3793fb
upgrade gradle to 7.0 4 years ago
cfig 852ee928c7
squashed update
aosp: mkdtboimg,mkbootimg
test: Issue #59
parser: support boot-debug and vendor_boot-debug
4 years ago
cfig 577b970811
Issue #59: support clear V3 boot images 4 years ago
cfig 82c614a8f1
doc: ADT3 on Android S is compatible
also add reboot/shutdown flow
4 years ago
cfig 8a42f31167
add prompt message for Issue #58 4 years ago
cfig ec13a2d926
Issue #57: allocate proper buffer size for BootV2/V3 images
use the maxOf(image size, 64MB)
4 years ago
cfig 85c26a361d Fix #54: support boot.img vbmeta blob flag 4 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
4 years ago
cfig e6ed2d7b96
cpio: fix special perms bug
also add dispol to decompile sepolicy binary file
4 years ago
cfig 71fcc9b26e
boot v4: unpack
boot:
  boot signature
vendor boot:
  vendor ramdisk table
  boot config

TODO:
  pack (later when AOSP gets stable)
4 years ago
cfig e2583777a0
partial support of boot/vendor_boot v4 4 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
4 years ago
cfig 2d5a7b7019
migrate travis to actions 4 years ago
cfig a67ff9e4db
lzma checking may crash, move to last 4 years ago