Commit Graph

132 Commits (bb5c217e4e2e8c3812a4e21b6c319ccc1e3a5bba)
 

Author SHA1 Message Date
cfig b4f5a2b5b3
fix issue #3: packing error when "algorithm_type = 0" 7 years ago
cfig ec32a3750a
update README and misc refine 8 years ago
CallMESuper 482ab1f998 fix: add back chainPartitionDescriptor
Due to the lack of this field, NX606J cannot boot ..
8 years ago
zhangjian 7b6fea2ffb Signer: correct command with avb2.0 signing 8 years ago
zhangjian 33f1d6d663 build.gradle: increase jvm heap size prevent signature failure 8 years ago
cfig 5657d736c2
support chained partition descriptor (tag=4) 8 years ago
cfig f2c276cc9d
upgrade build
kotlin 1.2.61 -> 1.3.10
gradle 4 -> 5
8 years ago
cfig f48d80479b
update avbtool 8 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
8 years ago
cfig 4f598e07cf
Update README.md 8 years ago
cfig 6505fea379
add 'pull' task
WIP: add initrc parser test to analyze system boot sequence
8 years ago
cfig 1f7476d884
enhancement: support PropertyDescriptor; support flashing vbmeta.img 8 years ago
cfig ec00936463
use javax.crypto.Cipher for raw signing
- using Cipher "RSA/ECB/NoPadding" to do raw sign
 - also add .gitignore
8 years ago
cfig 02be1f4b9e
use commons-codec Hex instead of BC Hex 8 years ago
cfig f21e851abd
support add_hash_footer 8 years ago
cfig 001d61ba7a
update AVB signature layout in README.expert.md 8 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
8 years ago
cfig 6ae76a7f2d
update linguist-vendored 8 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
8 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
8 years ago
Soul Trace e3c3386571 [CARGS] Use long for base, kernel_offset, ramdisk_offset, second_offset and tags_offset (#15)
Fixes https://github.com/cfig/Android_boot_image_editor/issues/13
8 years ago
cfig ef6e73fa50 patch it 8 years ago
cfig 68b167e7f0 add README in Chinese 8 years ago
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
|
8 years ago
cfig 8f704a817c DTBO
BootSignature.java
8 years ago
cfig b7784719a4 staging
*   commit 23e859dfd2e095bd71be0290b7c99f0016c6bf4e (HEAD, tag: android-o-mr1-iot-preview-8, m/master, aosp/o-mr1-iot-preview-8, aosp/master)
|\  Merge: 70d9b6a 9432381
| | Author: Treehugger Robot <treehugger-gerrit@google.com>
| | Date:   Wed Mar 28 13:02:01 2018 +0000
| |
| |     Merge "Throw ShortBufferException in RSA CipherSpi."
| |
| * commit 943238191685c85367fb0c51fb0a5f124b361876
|/  Author: Adam Vartanian <flooey@google.com>
|   Date:   Tue Mar 27 14:16:53 2018 +0100
|
|       Throw ShortBufferException in RSA CipherSpi.
|
|       The Javadoc for javax.crypto.Cipher.doFinal() and friends states that
|       Ciphers should throw ShortBufferException when given an output buffer
|       that's too small to hold the output.  BC does this in its other
|       classes, but the RSA implementation doesn't check the output buffer
|       size and just throws ArrayIndexOutOfBoundsException when it tries to
|       fill the output buffer.
|
|       This is bad not only because it's the wrong exception, but because it
|       modifies the Cipher object's internal buffers when it does it, which
|       means that passing a too-short buffer and then calling doFinal() again
|       with a properly-sized buffer will result in incorrect output.
|
|       This fixes tests that have been added for this case in Conscrypt
|       upstream.
|
|       Test: cts -m CtsLibcoreTestCases -t com.android.org.conscrypt.javax.crypto
|       Change-Id: Ieac98be5b9574006f1409911103487b8b55bb94e
8 years ago
cfig 402313d392 add avbtool for verified boot 2.0 8 years ago
Jonas Hackenberg fce93d5117 Fix typo: gradew -> gradlew (#11)
Thank you very much for your project.
Worked perfectly without any issues.
I just noticed this typos in the readme.
8 years ago
cfig e40768ed44
update README 9 years ago
cfig f30a87eea8
update README icon 9 years ago
cfig 29041710ec
update base code to android-8.1.0_r2
update bouncycastle to android-8.1.0_r2
update mkbootfs to android-8.1.0_r2
boot_signer is not updated in AOSP upstream
move mkbootfs to sub-project
9 years ago
cfig 3419d2f041
guide linguist to behave better 9 years ago
cfig 8a8a666d4d
obviously we support latest Androdi Oreo 9 years ago
cfig 86eeb8d6cb
squashed update
1.enable shell in debug mode
 2.upgrade gradle to 4.4
9 years ago
cfig 7c617c810b add debug tools for recovery mode 9 years ago
cfig 2a65ea7604 update README 9 years ago
cfig c2b0d20f60 support two-step-recovery image 9 years ago
cfig 168a3fd741 fix errors for gradle 4.0 9 years ago
cfig 167f4ba2a4 upgrade to support gradle 4.0 9 years ago
cfig 83bd158fc6 replace Task.leftShift(Closure) with Task.doLast(Action) 9 years ago
cfig d7eb1fce89 supress several Java compile warnings 9 years ago
cfig 8cfc1260fe update readme (#9) 9 years ago
Yu Yezhong 24499bb9a5 add macro CFIG_NO_FIX_STAT to disable fix_stat() for mkbootfs
just in case some geeks do not want the "fix stat" behavior
of Android cpio, a.k.a mkbootfs.

Test:
original attributes:
drw------- 2 yu yu 4.0K 2017-04-11 16:43 T1
drwxrwxrwx 2 yu yu 4.0K 2017-04-11 16:43 T2

generated boot image w/ fix_stat():
drwxr-xr-x   2 root   root        0 1969-12-31 18:00 T1
drwxr-xr-x   2 root   root        0 1969-12-31 18:00 T2

define CFIG_NO_FIX_STAT and disable fix_stat():
drw-------   2 root   root        0 1969-12-31 18:00 T1
drwxrwxrwx   2 root   root        0 1969-12-31 18:00 T2
9 years ago
Yu Yezhong 094252e583 add "-m" when unpacking cpio
"-m": Preserves original mtime on files being written out, so the copy will
have the same timestamps as the original (copy-out and pass-thru modes)
9 years ago
cfig 507342d0a7 update readme: we also support recovery.img 10 years ago
cfig a2aeea97c1 'mount' in Nougat is inside 'toybox' 10 years ago
cfig 7d23e6bdaf sync with android-7.1.1_r6 (#8)
* bouncycastle: sync with android-7.1.1_r6

* mkbootfs: sync with android-7.1.1_r6

* unpack: use hex value for bootimg json
10 years ago
cfig 77ba5d7aad remove wrong selabel 10 years ago
cfig 07ad14b74a add init.debug.rc for more debug features 10 years ago
cfig 1f8a88eaf4 move global var to local 10 years ago