Commit Graph

257 Commits (95ed740426b8b039854b28d5c7f61aedcdbfaebd)
 

Author SHA1 Message Date
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
7 years ago
cfig 402313d392 add avbtool for verified boot 2.0 7 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.
7 years ago
cfig e40768ed44
update README 7 years ago
cfig f30a87eea8
update README icon 7 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
7 years ago
cfig 3419d2f041
guide linguist to behave better 7 years ago
cfig 8a8a666d4d
obviously we support latest Androdi Oreo 7 years ago
cfig 86eeb8d6cb
squashed update
1.enable shell in debug mode
 2.upgrade gradle to 4.4
7 years ago
cfig 7c617c810b add debug tools for recovery mode 7 years ago
cfig 2a65ea7604 update README 7 years ago
cfig c2b0d20f60 support two-step-recovery image 7 years ago
cfig 168a3fd741 fix errors for gradle 4.0 8 years ago
cfig 167f4ba2a4 upgrade to support gradle 4.0 8 years ago
cfig 83bd158fc6 replace Task.leftShift(Closure) with Task.doLast(Action) 8 years ago
cfig d7eb1fce89 supress several Java compile warnings 8 years ago
cfig 8cfc1260fe update readme (#9) 8 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
8 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)
8 years ago
cfig 507342d0a7 update readme: we also support recovery.img 8 years ago
cfig a2aeea97c1 'mount' in Nougat is inside 'toybox' 8 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
8 years ago
cfig 77ba5d7aad remove wrong selabel 8 years ago
cfig 07ad14b74a add init.debug.rc for more debug features 8 years ago
cfig 1f8a88eaf4 move global var to local 8 years ago
cfig 8bcdeda55a fix typo 9 years ago
cfig 76b4966007 support Android N recovery binaries 9 years ago
cfig 742e776412 fix decimal patch version decode bug 9 years ago
cfig 3e5449af04 Squashed commit of all strict checkings
1. make my groovy code more java like
add @groovy.transform.TypeChecked and @groovy.transform.CompileStatic to
eliminate runtime surprise
2. add strict checking before 'pack' task
3. all boot.img.clear* will be hashed and the hash code will be compared to
    assert equation
4. upgrade gradle and groovy version
9 years ago
cfig 601453ef84 add missing '--pagesize', fix '--board' bug 9 years ago
cfig 78414cab0d Merge pull request #6 from cfig/dev
align with AOSP master
9 years ago
cfig e90758fe94 fix unit test issue
fix an argument issue which causes the difference of mkbootimg program
and mkbootimg.groovy core
9 years ago
cfig 896d6065f9 groovy unpack/pack tasks can run, but still failed unit test 9 years ago
cfig 460c5b05eb mass update for next generation boot.img
remove original abootimg by Gilles Grandou <gilles@grandou.net>
create groovy abootimg and mkbootimg
previous bootimg.cfg moved to bootimg.json
update doc: README.expert.md
9 years ago
cfig 56dacf31bd update to android master on May.30.2016, not tested 9 years ago
cfig 395d66ef9e fix an error in 'flash' task 9 years ago
cfig 1c77093f10 update readme (#5) 9 years ago
cfig 6cd1026891 support boot.img and recovery.img (#4)
support boot.img and recovery.img
9 years ago
cfig b27994ec46 update tasks for recovery debugging (#3) 9 years ago
cfig b3d5fbde2e update readme for master (#2) 9 years ago
cfig ae70fe4122 add debug tools for recovery mode 9 years ago
cfig db3bb98466 allow co-working with full ANDROID code base when packing 9 years ago
cfig ea3bf4622b update readme 9 years ago
cfig 245f99187c add 'flash' task
'flash' task will update boot.img on rooted platforms
9 years ago
cfig ef64e70941 fix get cmdline error 9 years ago
cfig d7ce4d65aa clean up and refine README 9 years ago
cfig ea493a7d6d add self test in travis-ci 9 years ago
cfig ba75f8f6af fix previous workarounds, fix travis-ci 9 years ago
cfig 1826113a74 add wrapper 9 years ago
cfig 1d85ff4c60 add missing bouncycastle from Android AOSP 9 years ago