Commit graph

52406 commits

Author SHA1 Message Date
android-build-team Robot
f038399a43 Make change and version bump to QQ1A.190522.001
Change-Id: Ie83d539713671ec386eb0d3b74124bdbed7417ea
2019-05-22 03:18:43 +00:00
android-build-team Robot
ff03abaad3 Version bump to QQ1A.190521.002 [core/build_id.mk]
Change-Id: I2b6cb2553b7612436783f7610cfed9268615e288
2019-05-21 22:46:35 +00:00
android-build-team Robot
e06a1de864 Make change and version bump to QQ1A.190521.001
Change-Id: Id88f21e32e6bf35da613d13547dbc7b6f9c64d65
2019-05-21 03:17:04 +00:00
android-build-team Robot
10aa92aef1 Version bump to QQ1A.190520.002 [core/build_id.mk]
Change-Id: I9d7472bc8e1fa0b0a0e256ea4db3db8e43079f83
2019-05-20 21:07:39 +00:00
Tao Bao
7c58c104fb Add sign_apex.py that signs a given APEX file.
am: f52dbb81fe

Change-Id: I4db7fae14d9f48a1d6df7c4ad422ada187b89ef1
2019-05-20 09:17:21 -07:00
android-build-team Robot
6f5e7a9faa Make change and version bump to QQ1A.190520.001
Change-Id: I9a0fbf73472b0a15dbf5d205d48d3200176a8a8c
2019-05-19 23:18:26 +00:00
Tao Bao
f52dbb81fe Add sign_apex.py that signs a given APEX file.
Bug: 132687993, 131687150
This CL moves SignApex() from sign_target_files_apks into apex_utils,
and adds sign_apex that allows signing a standalone APEX file directly.

Test: Run the following command and check the output file.
$ build/make/tools/releasetools/sign_apex.py \
     -v \
     --container_key \
         build/make/target/product/security/testkey.x509.pem \
     --payload_key external/avb/test/data/testkey_rsa4096.pem \
     --payload_extra_args \
         "--signing_helper_with_files ./signing-helper.sh" \
     foo.apex \
     signed-foo.apex
Test: Run sign_target_files_apks.py on crosshatch target_files.zip.
Change-Id: I4b2422fd5cb1c60a3aa94511475e2a0e5b1666ca
2019-05-19 11:33:31 -07:00
android-build-team Robot
ef33b15151 Make change and version bump to QQ1A.190519.001
Change-Id: I3cf752d28395dd8f1733340435772c3861b3f9d7
2019-05-18 23:35:56 +00:00
Chong Zhang
29134063c8 Merge "Remove a few libs used by soft omx from vndk" into qt-dev
am: 8b6b22e593

Change-Id: If4da571c1b729766fdb6578aabcb7b4f3f45a03f
2019-05-17 13:49:02 -07:00
TreeHugger Robot
8b6b22e593 Merge "Remove a few libs used by soft omx from vndk" into qt-dev 2019-05-17 20:11:29 +00:00
Bowgo Tsai
c344b21ef4 Merge "Appending per-partition os_version into AVB props" into qt-dev
am: 61c5d29655

Change-Id: Ifdc58c3bf9d4ce0edca9fe14f8a9fe65e5e4d610
2019-05-17 10:03:04 -07:00
TreeHugger Robot
61c5d29655 Merge "Appending per-partition os_version into AVB props" into qt-dev 2019-05-17 16:45:44 +00:00
Mathieu Chartier
0fef2ff79d Merge "Specify default image block size of 512KB by default" into qt-dev
am: 6e0bc97875

Change-Id: Ie2b41683df25d72ab12542a49140d9f0e7098e8e
2019-05-17 09:43:56 -07:00
Mathieu Chartier
6e0bc97875 Merge "Specify default image block size of 512KB by default" into qt-dev 2019-05-17 16:35:30 +00:00
Chong Zhang
1e6573f85e Remove a few libs used by soft omx from vndk
Soft omx plugins are already removed from vndk,
these should have been removed together. Keeping
them in vndk with have both 32 and 64 bit on system,
but soft omx only uses one set.

bug: 132466615
test: build and check these libs are now on vendor/lib.
Change-Id: I0242ece971ac75266cdf84e2341e5fa4b087451b
2019-05-16 12:24:53 -07:00
Bowgo Tsai
ce8b063507 Appending per-partition os_version into AVB props
os_version is important for keymaster version binding, where it
refuses to perform operations with a key that is bound to an old
system version.  This ensures that an attacker who discovers a
weakness in an old version of system or TEE software cannot roll a
device back to the vulnerable version and use keys created with the
newer version.

Previously, os_version for system.img is added into boot.img header
for bootloader to read the value then pass to TEE before booting the
HLOS. However, with project Treble to modularize each partition, all
images are now in the trajectory to be built independently (still
on-going). Also, in the Generic System Image (GSI) compliance test,
the os_version in OEM's boot.img cannot reflect the actual version of
GSI.

This CL adds per-partition os_versions into AVB metadata, which is
readable by bootloader via libavb without file system dependency. It's
still unclear for how os_version in non-system partition should be used.
We just add them for completeness here.

See more details in:
https://source.android.com/security/keystore/version-binding

Bug: 132233601
Test: build and avbtool info_image $OUT/vbmeta.img
      - Prop: com.android.build.boot.os_version -> '10'
      - Prop: com.android.build.system.os_version -> '10'
      - Prop: com.android.build.system.security_patch -> '2019-06-05'
      - Prop: com.android.build.vendor.os_version -> '10'
      - Prop: com.android.build.vendor.security_patch -> '2019-06-05'
      - Prop: com.android.build.product.os_version -> '10'
      - Prop: com.android.build.product.security_patch -> '2019-06-05'

Change-Id: I21a77420f2e8a3456f7a8cae5158eb8fc41319e7
Merged-In: I21a77420f2e8a3456f7a8cae5158eb8fc41319e7
(cherry picked from commit 9b54801b58)
2019-05-16 21:46:53 +08:00
Anton Hansson
dce130f251 Merge "Move default setting of a product variable" into qt-dev
am: 43b86c0182

Change-Id: I4ff87c28d74c5655f3deea7c112ff42712a7f5e9
2019-05-16 02:44:21 -07:00
Anton Hansson
43b86c0182 Merge "Move default setting of a product variable" into qt-dev 2019-05-16 09:27:29 +00:00
Chong Zhang
b573bc3eb7 Merge "Remove soft omx libs from package -- DO NOT MERGE" into qt-dev
am: 99d493fd3b

Change-Id: Ifec68bf52455117a9c4c85b7c5a14989fbac375d
2019-05-15 14:13:50 -07:00
Chong Zhang
7980587608 Remove soft omx libs from package -- DO NOT MERGE
am: 07d4342fa5

Change-Id: I3f5a3b7a3478f6ba1c9fa3bdbe7f8c8906420f6a
2019-05-15 14:13:38 -07:00
TreeHugger Robot
99d493fd3b Merge "Remove soft omx libs from package -- DO NOT MERGE" into qt-dev 2019-05-15 20:48:32 +00:00
Chong Zhang
07d4342fa5 Remove soft omx libs from package -- DO NOT MERGE
These are installed by media.codec as required modules,
and they're usually on vendor partition now. We don't
want to install the system targets here.

bug: 132466615

Change-Id: I8375563648bc2a5016dac4760b853cb32dde5429
2019-05-15 20:02:23 +00:00
Ian Pedowitz
122a1136e6 Merge "Revert "Revert "Updating the platform sdk version for Q""" into qt-dev 2019-05-15 16:28:53 +00:00
Ian Pedowitz
89e4c9da7a Merge "Android Q is now REL" into qt-dev 2019-05-15 16:28:53 +00:00
Mathieu Chartier
410ec0d03e Specify default image block size of 512KB by default
Enables parallel decompression.

Test: manual
Bug: 116052292

(cherry picked from commit 6cbc3899b3)

Merged-In: I172935c8dd9c729199d9015e82487f84018bb9f4
Change-Id: I1b5db4aed3b06b527a6b4d4b25583f7ee10f05cb
2019-05-15 09:09:38 -07:00
Anton Hansson
584d3726b6 Move default setting of a product variable
Should be in product_config.mk, before the variables are readonly'd, or
the default will fail to work.

(cherry picked from commit 269dd013a5)

Bug: 131576555
Test: set PRODUCT_SHIPPING_API_LEVEL := 29 in mainline_arm64.mk && lunch
Change-Id: I25faee7ec0a3fff17e1d08b834d868834effda36
Merged-In: I25faee7ec0a3fff17e1d08b834d868834effda36
2019-05-15 11:30:29 +01:00
Paul Scovanner
2813ebc21d Update Security String to 2019-07-05 Bug:132634503 am: 0718f458a1 am: 67f7ba7d9c am: 2ec2e55239
am: f01785c0a8

Change-Id: I92f844d235420335ccd7a29a07b8d6ea9757fedd
2019-05-14 15:03:19 -07:00
TreeHugger Robot
02c434e887 Merge "Add libdepthphoto to mainline_system" into qt-dev 2019-05-14 22:00:21 +00:00
Paul Scovanner
f01785c0a8 Update Security String to 2019-07-05 Bug:132634503 am: 0718f458a1 am: 67f7ba7d9c
am: 2ec2e55239

Change-Id: I1164c5fd489d282c2c297c78e59a3d937adb4e2f
2019-05-14 14:59:06 -07:00
Paul Scovanner
2ec2e55239 Update Security String to 2019-07-05 Bug:132634503 am: 0718f458a1
am: 67f7ba7d9c

Change-Id: Id153c7f78dcf9cb5f0aacf261837bff9844f9cbf
2019-05-14 14:52:55 -07:00
Paul Scovanner
67f7ba7d9c Update Security String to 2019-07-05 Bug:132634503
am: 0718f458a1

Change-Id: Ice3a0dc3f425217138d881543aaae1c4c412d7db
2019-05-14 14:45:50 -07:00
Paul Scovanner
1620b85285 Update Security String to 2019-07-01 Bug:132634503 am: 95bee0f53e am: 2f15ff97b7 am: 58c2ebf84b am: d51234a521
am: 3caec84292

Change-Id: I93f7768049078019002141c9d5d7182cd05bdfd4
2019-05-14 11:33:49 -07:00
Paul Scovanner
3caec84292 Update Security String to 2019-07-01 Bug:132634503 am: 95bee0f53e am: 2f15ff97b7 am: 58c2ebf84b
am: d51234a521

Change-Id: I713c98262d85d9dfac5e372284f9f93e7dbce7d9
2019-05-14 11:23:11 -07:00
Paul Scovanner
d51234a521 Update Security String to 2019-07-01 Bug:132634503 am: 95bee0f53e am: 2f15ff97b7
am: 58c2ebf84b

Change-Id: Ic30bcfffb5ff71afd8d59fe9cfb1a0402b55c4c3
2019-05-14 11:18:01 -07:00
Paul Scovanner
58c2ebf84b Update Security String to 2019-07-01 Bug:132634503 am: 95bee0f53e
am: 2f15ff97b7

Change-Id: I7a8fabadfa32356443305953ec91665037f7aa28
2019-05-14 11:10:59 -07:00
Paul Scovanner
2f15ff97b7 Update Security String to 2019-07-01 Bug:132634503
am: 95bee0f53e

Change-Id: If6ac58537bc1e8359a0774a5dd9513813900a6c2
2019-05-14 11:04:42 -07:00
Paul Scovanner
0718f458a1 Update Security String to 2019-07-05
Bug:132634503
2019-05-14 00:02:43 +00:00
Paul Scovanner
95bee0f53e Update Security String to 2019-07-01
Bug:132634503
2019-05-13 20:36:29 +00:00
Ian Pedowitz
bed3e5262e Revert "Revert "Updating the platform sdk version for Q""
This reverts commit 842119ab3a.

Reason for revert: Rolling forward for Q-Finalization

Bug: 129975435
Bug: 129943426
Test: Build
Change-Id: I651e3ec68a765d3867be5341751cd536ccbe604a
2019-05-11 10:01:39 -07:00
Ian Pedowitz
883ad4c8b2 Android Q is now REL
Bug: 129943426
Test: Build
Change-Id: I99d58a4afeaf38c51a93cc95d9ea1f5666797602
Merged-In: I352e02484fa73ee924c84846913b93f7713c77ef
2019-05-11 08:33:31 -07:00
Tao Bao
721a8c7e96 releasetools: Unzip all files when generating image archive.
am: a3c3b9bc64

Change-Id: I9a02ccaa17bb3768cf8f2149a15e94e6596be213
2019-05-10 20:53:07 -07:00
Tao Bao
a3c3b9bc64 releasetools: Unzip all files when generating image archive.
Commit 7df64c3e starts to call common.LoadInfoDict() when generating
image archive, which reads additional files under BOOT/, RECOVERY/ and
ROOT/. Unzip everything from the target_files.zip.

Bug: 132456827
Test: Run img_from_target_files.py on previously failing
      target_files.zip.
Change-Id: I22ee57c4f765bee9494478bf115b1581877401f4
2019-05-10 15:52:01 -07:00
Martin Stjernholm
fff3315c73 Extend library absence check to Bionic libs and all ART debug libs.
am: 6311b83cc2

Change-Id: Ief2ed470eb737cc47023afc4cc3f51f222cf5cf9
2019-05-10 11:14:39 -07:00
Martin Stjernholm
cc8e2872f5 Add the library absence check as a kati stage check.
am: e954e3e47d

Change-Id: I70836f6bd2cf678c555de55e98b57bffc6dd373e
2019-05-10 11:14:02 -07:00
Martin Stjernholm
ca92a79326 Add libs that have been resolved to the library absence check.
am: 4c62151f8e

Change-Id: Ie547a5752b6a750a610dd4154ff51e0574426c84
2019-05-10 11:13:25 -07:00
Martin Stjernholm
66462ee8f3 Ignore vndk-* subdirectories in the library absence check.
am: 4a901c6d41

Change-Id: I6e32b8649debf18922c1306b86712f163aa27ec7
2019-05-10 11:12:55 -07:00
Martin Stjernholm
ba44af0449 Exclude lib/arm(64) from the library absence check.
am: b4e549bfb7

Change-Id: I91beab01e5fbae18352ec1a6a1192da82cb3d6e2
2019-05-10 11:12:23 -07:00
Martin Stjernholm
6311b83cc2 Extend library absence check to Bionic libs and all ART debug libs.
(cherry picked from commit c2e0205927)

Test: m systemimage
Test: build_test on Forrest
Bug: 132289438
Merged-In: I1a25d8d45668638b7eb0d39ded9cad3ed30db33c
Change-Id: I5b89aa33d35022fdca7f19c98f1bae51c173a876
2019-05-10 16:14:58 +00:00
Martin Stjernholm
e954e3e47d Add the library absence check as a kati stage check.
(cherry picked from commit a5181f67a7)

Test: m systemimage
Test: build_test on Forrest
Bug: 132289438
Merged-In: I7a93cc0ac4480404a3d56c75eb43ae499e8a3a05
Change-Id: I6012e16bb02d4fea1cff51b20de94560da7a8d09
2019-05-10 16:14:50 +00:00
Martin Stjernholm
4c62151f8e Add libs that have been resolved to the library absence check.
(cherry picked from commit 7a2dde8bd5)

Test: m systemimage
Test: build_test on Forrest
Bug: 132289438
Merged-In: I9e517d3c2344b39cf2743a34723572e646675677
Change-Id: Id39a947c1522cf3a226ff1a4430c57bf7d861141
2019-05-10 16:14:29 +00:00