Commit Graph

41 Commits (e47b10e0130a7f37c9acdfc9b2d8d7b6557bae8c)

Author SHA1 Message Date
cfig e47b10e013
build tool update
kotlin 1.3.61 to 1.3.71
gradle 6.0.1 to 6.3
replase @Experimental with @OptIn
5 years ago
cfig ff7021e2db
test: add more tests for android 10 coral 5 years ago
cfig 75af56ad57
packing of boot.img with avbtool now supports property descriptors
now avbtool can pack exactly the same boot.img.signed as our Signer
if it has only prop-desc and hash-desc
5 years ago
cfig 40a31fd655
generalize command recognization/invocation
Now we can directly call "java -jar bbootimg.jar".
Also add hidden command '@footer' in BootImgParser
5 years ago
cfig 67667c803c
refine avbVerifier; fix AuthBlob bug
1. AuthBlob bug: if change algorithm_type from 0 to non-zero values,
    auth_blob should not be empty
2. avbVerifier:
    move key file to config/pubkey
    add gradle task "v1/v2" to verify normal/recovery flow
5 years ago
cfig e5b03661f8
add "avbVerifier" to emulate boot time AVB flow
In memory of Dr. Li:
  He who holds the firewood for the masses,
  is the one who freezes to death in wind and snow.
5 years ago
cfig ef02d54a78
move all org.juit.Assert to kotlin assert 5 years ago
cfig 0d0484248d
cleanup Struct3 to remove dependency of org.junit.Assert
also force using of python2 for avbtool
5 years ago
cfig c1d4133f79
first update in 2020
update gradle managed modules
update gradle to 6
refactor directory for aosp modules
6 years ago
cfig bf7defd434
bundle {boot.img, vbmeta.img} 6 years ago
cfig bcf3c2e2b4
mkbootfs: revert 'cpp-application'
use legacy 'c' and 'cpp' plugin for MacOS comapatibility
6 years ago
cfig b8aba9992e
add 'flash' task for vbmeta/boot 6 years ago
cfig 1bcf9389a0
squashed commit
update gradle to 5.6
dtbo parser: force use of python 2.7
add android libsparse utils
add sparse image parser: {system|vendor|product}.img
travis: upgrade to bionic(18.04 LTS)
6 years ago
cfig af7de300d2
change recoveryDtboOffset calculation in accordance with AOSP
although google's algorithm is not good enough
6 years ago
cfig 79b84baf68
mass update
builder:
  kotlin 1.3.41
bootloader_message:
  reboot rescue
  reboot fastboot
mkbootimg
  update mkbootimg from AOSP master
  modify our header packer accordingly
avbtool:
  update from commit 9d3646515bf0b5f09d8bdbe0b844c7eefa0c0802
  Tue May 14 15:30:37 2019 -0400
remote java
6 years ago
cfig c3bb4fb356
support vbmeta_{system|vendor|product}.img etc
For newly added dynamic partition related features
6 years ago
cfig c6db6eaf11 clean up warnings 6 years ago
cfig f03315b08a add dtbo.img parser
also refactor some code structure
6 years ago
cfig 3c6ad3de94
feature enhancements
1. print unpack summary
2. try to extract kernel version/config if possible
6 years ago
cfig 1e6b340912
update "misc" partition r/w operations 6 years ago
cfig 32139203e7
fix several critial bug
details
 - code refine
 "In Kotlin 1.3, it is now possible to capture the when subject into variable"
 - fix gradle version checking bug: now we can handle versions like "5.4-rc-1" and "5.4"
 - removed unwanted import of "UnImplNode"
 - add Struct3 doc
6 years ago
cfig c7e46c537d
fix type issue in PropertyDescriptor 6 years ago
cfig a7be076e77
using newly added kotlin.(UInt|ULong|UByte) since 1.3
add 'Reboot' function tests
add "Struct3" to replace "Struct" with new kotlin types
6 years ago
cfig fac31f1526
mass update
update avbtool from upstream
update kotlin to 1.3.20
support boot image header v2
add integration test
6 years ago
cfig b4f5a2b5b3
fix issue #3: packing error when "algorithm_type = 0" 6 years ago
cfig ec32a3750a
update README and misc refine 6 years ago
CallMESuper 482ab1f998 fix: add back chainPartitionDescriptor
Due to the lack of this field, NX606J cannot boot ..
6 years ago
zhangjian 7b6fea2ffb Signer: correct command with avb2.0 signing 7 years ago
cfig 5657d736c2
support chained partition descriptor (tag=4) 7 years ago
cfig f2c276cc9d
upgrade build
kotlin 1.2.61 -> 1.3.10
gradle 4 -> 5
7 years ago
cfig 3c93bcf5ff
replace AOSP bouncycastle with upstream bcprov-jdk15on:1.57
- use jcenter bcprov/bcprokix, also remove original security provider
   signature to make it workable
 - other misc refactoration
7 years ago
cfig 4f598e07cf
Update README.md 7 years ago
cfig 6505fea379
add 'pull' task
WIP: add initrc parser test to analyze system boot sequence
7 years ago
cfig 1f7476d884
enhancement: support PropertyDescriptor; support flashing vbmeta.img 7 years ago
cfig ec00936463
use javax.crypto.Cipher for raw signing
- using Cipher "RSA/ECB/NoPadding" to do raw sign
 - also add .gitignore
7 years ago
cfig 02be1f4b9e
use commons-codec Hex instead of BC Hex 7 years ago
cfig f21e851abd
support add_hash_footer 7 years ago
cfig 9e6b8f2ab5
do strict checking before extracting 'args.base'
Fixes #18, 'unpack' and 'pack' works,
but seems Moto X image has private data fields, which can not be recognized
7 years ago
cfig 6ae76a7f2d
update linguist-vendored 7 years ago
cfig 48fd99d1c1
refine AVB support and ramdisk gzip
- avbtool only works with python 2.x, so systems which only have python
3.x as default will fail to run avbtool, fix it
- avbtool: sync with AOSP master
- avb salt: store salt for AVB signature, and use it in re-packing process
- ramdisk gzip: java.util.zip.GZIPOutputStream doesn't support parameters, so we use
      org.apache.commons.compress.compressors.gzip.GzipCompressorOutputStream instead
7 years ago
cfig 5d97d46c62
massive update for upcoming Android Pi
- update mkbootimg: AOSP commit 147b355bb34cbd457a260c585be93193cef43b8e
 - migrate all code from groovy to kotlin
 - support DTBO and header_version, resolve #12
 - upate README.expert.md too
 - support AVB
7 years ago