Commit Graph

245 Commits (a8c3166994455c51330db8e8a7333fc92613d804)
 

Author SHA1 Message Date
cfig 0dbf161ce8
extract_kernel: update from AOSP (with fix) 4 years ago
cfig df147f9325
abort() if not Java 9+ 4 years ago
cfig 4e9d60db1a
cpio: replace mkbootfs with java CPIO
reimplement android mkbootfs with pure java, features include:

unpack:
 - using commons.compress
 - save cpio entry info on unpacking, and reload it on packing, this is
   called 'exact-matching'

pack: using new code with the help of commons.compress
 - for newly added ramdisk file, its file mode falls back to
   'pattern-matching'
 - for newly added ramdisk file that doesn't match any pattern, it will
   use default file mode, 'default'

integration test:
 - enable strict cpio checking
4 years ago
cfig 454c5e6ae8
update test case for issue 47 4 years ago
cfig 9e30b56015
Fix KernelCmdlineDescriptor type error in kotlin 1.4
also: add pull.py to pull boot and vbmeta from device
      upgrade to kotlin 1.4.20
4 years ago
cfig 30a5a0cbad
unify helpers and remove codacy 4 years ago
cfig ea73a704b3
be tolerant in checking osVersion 4 years ago
cfig 90069bfc9c
config codacy 4 years ago
cfig bff3b6fa97
fix integrationTest
do not check lz4-ed files
remove cpio dependency
4 years ago
cfig ddd1ad5ef2
mass update
dependent modules:
 aosp update
 kotlin: 1.4.0 -> 1.4.10
 unify helpers between projects
 commons.compress 1.20
bbootimage:
 fix page size error in vendor_boot
 supress compile warnings
lz4:
 change lz4 compress parameter if lz4 is not up-to-date
 use external lz4 to decompress kernel for Ubuntu <=18.04
cpio:
 use java cpio to decompress ramdisk
 add skipcpio to read contatenate cpio
4 years ago
cfig fed5daeeba
extensive lz4 ramdisk support 4 years ago
cfig 15921efa2d
support lz4 compressed ramdisk
support lz4: Fix #43
other enhancements:
  avbtool: v1.1: for BootV2 before Android 11
  avbtool: v1.2: for BootV2(Android 11+), Vendor Boot, BootV3
  fix VB1.0 parsing error
  travis: osx xcode12.2, macOS 10.15.7, jdk 14.0.2
4 years ago
cfig 55e7e3957f
add system_other and system_ext as known images
Android 11 adds system_ext
4 years ago
cfig bb5c217e4e
travis: multi platform tests 4 years ago
cfig a39b870033
kotlin: upgrade to 1.4.0
travis: upgrade to Ubuntu 20.04 Focal
4 years ago
cfig 2665fd0098
doc: misc and BootControl 4 years ago
cfig 5f9f17601d
verified Pixel 3 Android 11 boot.img and vbmeta.img 5 years ago
cfig 4bce4a0f39
fix dtbo support
- fix dtbo support with correct file path
 - refine README
5 years ago
The Codacy Badger 915ee2292b Add Codacy badge 5 years ago
cfig af5ddbc934
fix build on mac and older ubuntu 5 years ago
cfig 3111fc1eba
mass update
support super.img
add 'pull' task
clean up obsolete makefiles
5 years ago
cfig 125418c99d
Squashed commit of the following:
1. libsparse: update form AOSP

    * commit a386482f1d2e29e893a59289f71ccdc715472514
    | Author: Woody Lin <woodylin@google.com>
    | Date:   Wed May 13 20:50:54 2020 +0800
    |
    |     libsparse: Limit block size to 64 MB
    ...
    |     Change-Id: Ic4edb963a3d99f718d7630aba3f351729a84e994

 2. mkbootfs: update from AOSP

    * commit 6ad4d0a601485475645ddd1b23181a4c31754977
    | Author: Tom Cherry <tomcherry@google.com>
    | Date:   Wed Mar 4 13:35:28 2020 -0800
    |
    |     Remove EXCLUDE_FS_CONFIG_STRUCTURES
    ...
    |     Change-Id: I5ba2541cd1045c22486140649c90db39163081fd

 2.1 mkbootfs: add mkbootfs for (Android <= 10) and (Android 11)

 3. avb: update from 1.1 to 1.2

    libavb and avbtool

    * commit 23dbe6ec9b8734aea9812e1ecd3af47e88d6360a
    | Author: Thiébaud Weksteen <tweek@google.com>
    | Date:   Fri May 15 15:52:02 2020 +0200
    |
    |     Enable Android.bp format validation hook
    | ...
    |     Change-Id: I3496b43093aa7f7633ca64e587e128c45b534601
5 years ago
cfig 716e8363ff
initial GKI images support
- boot.img header v3
 - vendor_boot.img
5 years ago
cfig 8bda017e85
update gradle 6.4.1 5 years ago
cfig b21e856754
eliminate meaningless non-zero values of ramdisk_offset
- Fix: issue #38
 - sync change of
https://android-review.googlesource.com/c/platform/system/tools/mkbootimg/+/1087679
 - also change integrationTest
5 years ago
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 c9d3365739
add Vivo X7 5 years ago
cfig 451ee1a623
travis CI: install 'dtc' 5 years ago
cfig 3a15924571
enable avbImpl module 5 years ago
cfig c1d4133f79
first update in 2020
update gradle managed modules
update gradle to 6
refactor directory for aosp modules
5 years ago
cfig 4d1a3912d0 support makefile for c/cpp files
Fix: #33
usage:
    make
    ./gradlew unpack
    ./gradlew pack
5 years ago
cfig 88dc24e04b
add libavb
build: using gradle
patch: patch it to compile on Mac OS
5 years ago
cfig e250513570
update extract_kernel.py
commit 8b727765111bde78d1b1174e0ed54db819605dd8
Author: Yifan Hong <elsk@google.com>
Date:   Wed Sep 4 12:40:13 2019 -0700

    extract-kernel: Fix indexing

    The original script always tries to extract from index
    0 even if header is found in positive indices. Fix that.

    Also, continue to try other positions if previous run failed.

    Test: builds
    Bug: 139348603

    Change-Id: Ia54fc709de9ae587fc64b59d94a1fa4ae669c14f
5 years ago
cfig 4a819179f4
update doc for Oppo K3 6 years ago
Surendra Kumar 68b0d7ceb6 Fix typo :) 6 years ago
Surendra Kumar de3e9bc3d8 Added tricks to obtain Oppo K3 recovery.img 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 30fe87357b
add 'rr' task for 'reboot recovery' 6 years ago
cfig f680adcc05
update integrationTest and gradle 'check' 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