Commit Graph

21519 Commits

Author SHA1 Message Date
android-build-team Robot
febea1fe3c Make change and version bump to QP1A.190522.001
Change-Id: I3c29339c46c616374f42a28227f8939538afd128
2019-05-22 03:18:34 +00:00
Mitch Phillips
e293edfa2e Merge "Fix fuzzer builds." am: 65dbf9bfb3
am: 164b2532a6

Change-Id: I149780657e1ab209240e4488662eb06c2d2f5d50
2019-05-21 18:40:35 -07:00
android-build-team Robot
93b5c6f6ec Version bump to QP1A.190521.003 [core/build_id.mk]
Change-Id: I1355875cfb6031db81bb8583fc0a8b8e5075597f
2019-05-21 23:43:22 +00:00
Mitch Phillips
65dbf9bfb3 Merge "Fix fuzzer builds." 2019-05-21 22:45:43 +00:00
android-build-team Robot
70e0d45460 Version bump to QP1A.190521.002 [core/build_id.mk]
Change-Id: I54826aa07647b348977ff78705495415d8175356
2019-05-21 18:10:37 +00:00
Pete Gillin
0e4e6f52b3 Merge "Avoid targeting Java 9 for targets with SDK version up to 29." am: 42fe06b3c2
am: 7a383f586c

Change-Id: I750b6274d550d46e03f3863e6028abbd95456ed7
2019-05-21 03:42:10 -07:00
Pete Gillin
42fe06b3c2 Merge "Avoid targeting Java 9 for targets with SDK version up to 29." 2019-05-21 10:19:06 +00:00
android-build-team Robot
a3916b9fe9 Make change and version bump to PQ3B.190705.001
Change-Id: Idcf2beaa5d2f63971de86bb0be7190e27e336455
2019-05-21 06:29:23 +00:00
Paul Scovanner
07050936a3 Update Security String to 2019-07-05
Bug:132634503
(cherry picked from commit 0718f458a1)

Change-Id: Id2b2d4417c0a406d752734804359988f9c890fc3
2019-05-21 06:29:03 +00:00
patricktu
e28672d634 Merge "AIDEGen: Collect the srcjar path of modules into module-info.json" am: 40b5340a94
am: 608cf95523

Change-Id: I5a04a63ede69400e8c3b0e472a8f6e43501ecdb8
2019-05-20 21:49:21 -07:00
android-build-team Robot
87d036cc4a Make change and version bump to QP1A.190521.001
Change-Id: I30283d61a2507767a655620ae232a7e1ba077388
2019-05-21 03:17:50 +00:00
Treehugger Robot
40b5340a94 Merge "AIDEGen: Collect the srcjar path of modules into module-info.json" 2019-05-21 02:02:20 +00:00
Chris Gross
99a22624a5 Merge "Add merging of apexkeys and apkcerts metadata" am: a489a92fdc
am: 07d985d122

Change-Id: Ib5e6d864f3704ffeeb4adb1933bb34f92d3511d8
2019-05-20 18:24:32 -07:00
Colin Cross
55a499b28b Merge "Move check-all-partition-sizes to a non-phony rule" am: 2ee5efd824
am: 468549471a

Change-Id: Ia83d37b549c97fd3dc91f6f3fddc7328fb2696bf
2019-05-20 18:23:36 -07:00
Mitch Phillips
ee8f4a0ada Fix fuzzer builds.
- Updates the fuzzer builds to use SANITIZE_TARGET='fuzzer' instead of
'coverage'.
- Removed an old dependency that made fuzzer builds without ASan
an error.
- Fixed up the build flags to allow fuzzers to be built. Previously, the
coverage flags were manually provided. As the toolchain has moved on,
these flags are no longer compatible with libFuzzer, and so I've updated
them to use the correct, compatible flags.

Bug: 121042685
Test: With all patches in the bug merged, build a fuzzer using
'SANITIZE_TARGET=fuzzer mmma <your_fuzzer>'.

Change-Id: I86e6a26d27c22b3622cf6ea8760f502f607df6f0
2019-05-20 16:58:26 -07:00
Chris Gross
a489a92fdc Merge "Add merging of apexkeys and apkcerts metadata" 2019-05-20 23:36:45 +00:00
Treehugger Robot
2ee5efd824 Merge "Move check-all-partition-sizes to a non-phony rule" 2019-05-20 23:02:26 +00:00
android-build-team Robot
8a30b46910 Version bump to QP1A.190520.002 [core/build_id.mk]
Change-Id: I74f6e060d56f40acf8eb29c6cecd78ca47713698
2019-05-20 21:08:00 +00:00
Chris Gross
fabf50a577 Add merging of apexkeys and apkcerts metadata
Bug: 131437873
Test: Built system-only and vendor builds for merge. Compared
resulting apkcertx and apexkeys text files to that of a monolithic
build,
Test: Created colliding entries in both apexkeys and apkcerts text
files and ensure the script exited with an appropriate error message.
Test: Created unit tests to cover both non-colliding and colliding
entries
Change-Id: I6e42ce682ffa9059344e8cd63ba3a720c1f93452
2019-05-20 18:35:22 +00:00
Pete Gillin
58090478d7 Avoid targeting Java 9 for targets with SDK version up to 29.
Targets with sdk_version values up to and including 29 should not use
Java language level 9, even if EXPERIMENTAL_JAVA_LANGUAGE_LEVEL_9=true
is set.

This change keeps the make logic in sync with the soong logic in the
other change in this topic.

Bug: 131678633
Test: EXPERIMENTAL_JAVA_LANGUAGE_LEVEL_9=true make droid tests docs cts java
Change-Id: Icd5db432f6b18486e8ede006c15a930c754ad4c2
2019-05-20 15:46:50 +01:00
android-build-team Robot
ed0f3a5468 Make change and version bump to QP1A.190520.001
Change-Id: I96329f3116b1e61766efb56b5be713f99fab9fd4
2019-05-19 23:18:32 +00:00
android-build-team Robot
c38d512152 Make change and version bump to QP1A.190519.001
Change-Id: Id824972c43b186712a0b38f555d7a03aa1104f98
2019-05-18 23:19:56 +00:00
Colin Cross
8ab6df3f2d Merge "Bypass LOCAL_*_REQUIRED_MODULES checks for ONE_SHOT_MAKEFILE" am: 6ae7967309
am: ab5c9cdbb1

Change-Id: Ibb87d9e0ac6a1b0f7cff1873b3d2bf4d1dd351fb
2019-05-17 22:27:53 -07:00
android-build-team Robot
fe6a175a40 Version bump to QP1A.190516.006 [core/build_id.mk]
Change-Id: I035cc11262d70db71698af3b55f320a4009a5de0
2019-05-18 00:03:09 +00:00
Colin Cross
ab83244472 Bypass LOCAL_*_REQUIRED_MODULES checks for ONE_SHOT_MAKEFILE
When ONE_SHOT_MAKEFILE is set, the targets of LOCAL_*_REQUIRED_MODULES
may not exist, so skip the error message.

Fixes: 131241991
Test: mmm cts/tests/signature/intent-check
Change-Id: I95c4c901610746854179af8486c8c4767dd18864
2019-05-17 23:10:26 +00:00
Colin Cross
606c9f4d0d Move check-all-partition-sizes to a non-phony rule
Phony rules with recipes run on every build, move the recipe for
check-all-partition-sizes to a rule with an output.

Fixes: 132900128
Test: m && m
Change-Id: I9b4d335bf269cd09a01094e895fc15053b410415
2019-05-17 15:51:39 -07:00
android-build-team Robot
70995c830e Version bump to QP1A.190516.005 [core/build_id.mk]
Change-Id: Iaf1b466e5322ba7e4860c1736271746589b79cfc
2019-05-17 22:43:31 +00:00
android-build-team Robot
2d0e9a27b4 Version bump to PQ3A.190705.002 [core/build_id.mk]
Change-Id: I83e37c2c3b588caa567ccb271530df6597499447
2019-05-17 22:26:18 +00:00
android-build-team Robot
ac6863a9e4 Version bump to QP1A.190516.004 [core/build_id.mk]
Change-Id: I5afaf455c57c241100cba488b340231c02e6dcc1
2019-05-17 21:59:48 +00:00
android-build-team Robot
e1639dd50c Version bump to QP1A.190516.003 [core/build_id.mk]
Change-Id: I50ee056d9ee488afa692bdd782a4d505a7239b9a
2019-05-17 01:50:17 +00:00
patricktu
ab435e39a5 AIDEGen: Collect the srcjar path of modules into module-info.json
By design doc: go/aidegen-doc-generate-R
In order to generate R.java of app modules, AIDEGen needs to build
the module. It might cause system.img oversized so we turn to build
the target srcjar file if it exists in module-info.json.

Build module-info.json without this change:
Build time: 1m47.227s
File size: 14,186,429 Bytes

Build module-info.json with this change:
Build time: 1m46.796s
File size: 14,614,470 Bytes

Bug: 132407603
Test: 1. m out/target/product/generic_x86_64/module-info.json
      2. by grep "target/common/obj/APPS/Settings_intermediates/aapt2.srcjar"
         in module-info.json.

Change-Id: I09c812aede0324bc38acbead0a863a85ae15b33e
2019-05-17 01:46:56 +00:00
android-build-team Robot
3fac868176 Version bump to QP1A.190516.002 [core/build_id.mk]
Change-Id: I702b70ed804b60168fd0d201d3c2572ac611aa93
2019-05-17 01:19:31 +00:00
Xin Li
4534fcca85 Merge "DO NOT MERGE - Merge pie-platform-release (PPRL.190505.001) into master." 2019-05-17 00:58:10 +00: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
Justin Yun
c859b0a6b2 Merge "Allow overriding PRODUCT_EXTRA_VNDK_VERSIONS" am: 2faec12c07
am: 916b368b2f

Change-Id: I83f2a5b53d0bd53aef74b72c7e4f515907d85b63
2019-05-16 06:31:48 -07:00
Justin Yun
916b368b2f Merge "Allow overriding PRODUCT_EXTRA_VNDK_VERSIONS"
am: 2faec12c07

Change-Id: I97b262be7c4947b08914eb0d2a1fbf8db902b38d
2019-05-16 06:26:37 -07:00
Justin Yun
9d608dc541 Allow overriding PRODUCT_EXTRA_VNDK_VERSIONS
As a PRODUCT variable, PRODUCT_EXTRA_VNDK_VERSIONS is not allowed to
be assigned from the build command. Instead, we can use
OVERRIDE_PRODUCT_EXTRA_VNDK_VERSIONS in the build command to
override PRODUCT_EXTRA_VNDK_VERSIONS.

Bug: 132412510
Test: OVERRIDE_PRODUCT_EXTRA_VNDK_VERSIONS=28 m vndk_snapshot_package
Change-Id: I91579961ab393f40ddce8bfe9304829b5b669441
2019-05-16 13:12:55 +00:00
Bowgo Tsai
813f0a975c Merge "Appending per-partition os_version into AVB props" am: 196f64bc6b
am: 5aa1aecc21

Change-Id: Ia1aa5965dfa03403f3bab5ea1acc42fbe6d9e113
2019-05-16 04:44:36 -07:00
Bowgo Tsai
5aa1aecc21 Merge "Appending per-partition os_version into AVB props"
am: 196f64bc6b

Change-Id: Iab23dbb438cda078ac44cf569939f54db0663e95
2019-05-16 04:39:30 -07:00
Treehugger Robot
196f64bc6b Merge "Appending per-partition os_version into AVB props" 2019-05-16 11:27:31 +00:00
Anton Hansson
6ea18292dc Add more colors to generated product graphs
Color the node nodes by their location to:
- /build/make/target/product/* => light yellow
- /vendor/* => light red

Test: m product-graph
Change-Id: I911764352e7dc4e2ead2b3770300f48d23dc20b8
2019-05-16 11:09:57 +01:00
Anton Hansson
43b86c0182 Merge "Move default setting of a product variable" into qt-dev 2019-05-16 09:27:29 +00:00
Bowgo Tsai
9b54801b58 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
2019-05-16 12:56:41 +08:00
android-build-team Robot
a745edad09 Make change and version bump to QP1A.190516.001
Change-Id: I0ba3452cad0b305e7a43a36f52381d21aecf2c34
2019-05-16 03:17:32 +00:00
android-build-team Robot
f92632ca48 Make change and version bump to QP1A.190515.003
Change-Id: I412aa222b1963d0e13705eef010de9ac31c719ff
2019-05-16 00:17:01 +00:00
Ian Pedowitz
65f0dbbd7a 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
(cherry picked from commit bed3e5262e)
2019-05-15 23:02:54 +00:00
Ian Pedowitz
16c89dcec2 Android Q is now REL
Bug: 129943426
Test: Build
Change-Id: I99d58a4afeaf38c51a93cc95d9ea1f5666797602
Merged-In: I352e02484fa73ee924c84846913b93f7713c77ef
(cherry picked from commit 883ad4c8b2)
2019-05-15 23:02:46 +00:00
TreeHugger Robot
4dae317ace Merge "DO NOT MERGE - Merge pi-platform-release (PPRL.190505.001) into stage-aosp-master" into stage-aosp-master 2019-05-15 23:02:16 +00:00
Inseob Kim
43f0db0fa0 Merge "Generate VNDK snapshot with Soong except configs" am: 85fba4c04a
am: 1d61f54039

Change-Id: I1b4bbaa7bf30fd3f75e8c78868ce32f5692a0806
2019-05-15 15:38:00 -07:00
android-build-team Robot
300683a125 Version bump to QP1A.190515.002 [core/build_id.mk]
Change-Id: Ib0f96f3c288e7ecda70cc961228a38d3246e1ccc
2019-05-15 22:24:12 +00:00