Commit Graph

108 Commits (4d1a3912d0275dca3783159de2a19dc7b916e82c)
 

Author SHA1 Message Date
cfig 4d1a3912d0 support makefile for c/cpp files
Fix: 
usage:
    make
    ./gradlew unpack
    ./gradlew pack
cfig 88dc24e04b
add libavb
build: using gradle
patch: patch it to compile on Mac OS
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
cfig 4a819179f4
update doc for Oppo K3
Surendra Kumar 68b0d7ceb6 Fix typo :)
Surendra Kumar de3e9bc3d8 Added tricks to obtain Oppo K3 recovery.img
cfig bf7defd434
bundle {boot.img, vbmeta.img}
cfig bcf3c2e2b4
mkbootfs: revert 'cpp-application'
use legacy 'c' and 'cpp' plugin for MacOS comapatibility
cfig 30fe87357b
add 'rr' task for 'reboot recovery'
cfig f680adcc05
update integrationTest and gradle 'check'
cfig b8aba9992e
add 'flash' task for vbmeta/boot
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)
cfig af7de300d2
change recoveryDtboOffset calculation in accordance with AOSP
although google's algorithm is not good enough
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
cfig c3bb4fb356
support vbmeta_{system|vendor|product}.img etc
For newly added dynamic partition related features
cfig c6db6eaf11 clean up warnings
cfig f03315b08a add dtbo.img parser
also refactor some code structure
cfig 3c6ad3de94
feature enhancements
1. print unpack summary
2. try to extract kernel version/config if possible
cfig cf24cb4003
add usage live demo
cfig 1e6b340912
update "misc" partition r/w operations
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
cfig 3dd9f1e685
update integrationTest for android Q preview
cfig c7e46c537d
fix type issue in PropertyDescriptor
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
cfig fe14b49178
add submodule for integrationTest resources
cfig fac31f1526
mass update
update avbtool from upstream
update kotlin to 1.3.20
support boot image header v2
add integration test
cfig b4f5a2b5b3
fix issue : packing error when "algorithm_type = 0"
cfig ec32a3750a
update README and misc refine
CallMESuper 482ab1f998 fix: add back chainPartitionDescriptor
Due to the lack of this field, NX606J cannot boot ..
zhangjian 7b6fea2ffb Signer: correct command with avb2.0 signing
zhangjian 33f1d6d663 build.gradle: increase jvm heap size prevent signature failure
cfig 5657d736c2
support chained partition descriptor (tag=4)
cfig f2c276cc9d
upgrade build
kotlin 1.2.61 -> 1.3.10
gradle 4 -> 5
cfig f48d80479b
update avbtool
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
cfig 4f598e07cf
Update README.md
cfig 6505fea379
add 'pull' task
WIP: add initrc parser test to analyze system boot sequence
cfig 1f7476d884
enhancement: support PropertyDescriptor; support flashing vbmeta.img
cfig ec00936463
use javax.crypto.Cipher for raw signing
- using Cipher "RSA/ECB/NoPadding" to do raw sign
 - also add .gitignore
cfig 02be1f4b9e
use commons-codec Hex instead of BC Hex
cfig f21e851abd
support add_hash_footer
cfig 001d61ba7a
update AVB signature layout in README.expert.md
cfig 9e6b8f2ab5
do strict checking before extracting 'args.base'
Fixes , 'unpack' and 'pack' works,
but seems Moto X image has private data fields, which can not be recognized
cfig 6ae76a7f2d
update linguist-vendored
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
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 
 - upate README.expert.md too
 - support AVB
Soul Trace e3c3386571 [CARGS] Use long for base, kernel_offset, ramdisk_offset, second_offset and tags_offset ()
Fixes https://github.com/cfig/Android_boot_image_editor/issues/13
cfig ef6e73fa50 patch it
cfig 68b167e7f0 add README in Chinese
cfig e42b49a59f update mkbootfs
* commit 26464914feccfce4b835bd73a1130ba5be069e8a
| Author: Mikhail Lappo <miklelappo@gmail.com>
| Date:   Thu Mar 23 22:17:27 2017 +0100
|
|     Possible null pointer miss on realloc
|
|     Realloc can return null pointer which
|     will cause a crash then. Patch introduces
|     check for controlled 'die' in case memory is
|     not available
|
|     Change-Id: I279028339b1fe756d8a511834e164e59d4cab110
|