Commit graph

20114 commits

Author SHA1 Message Date
android-build-team Robot
a41dacbad3 Make change and version bump to QQ1A.190708.001
Change-Id: I4f22eb7ec5868fea01b4ea8a819a3467f4e8a4f6
2019-07-07 23:23:48 +00:00
android-build-team Robot
b972579883 Make change and version bump to QQ1A.190707.001
Change-Id: I04e7dc86169ede23619946839ab691e826b97483
2019-07-06 23:31:46 +00:00
Justin Yun
25065c44cc Do not allow building product_services image
product_services partition is designed for the test purpose only. It
must not be included in the target devices.

Bug: 134359158
Test: Build configuration for product_services partition must return
      error message.

Change-Id: I6f8cdf73d18ad3174c7b31edb5d5ee10df75a776
2019-07-05 20:38:01 +09:00
android-build-team Robot
ebc9f37f7b Make change and version bump to QQ1A.190704.001
Change-Id: I481dc2ddae1a96aab97f76a4d0827f9afb752607
2019-07-04 03:18:18 +00:00
android-build-team Robot
18ff68d165 Make change and version bump to QQ1A.190703.001
Change-Id: I263ed7b6c3473b261a63bc7ad109ad8c37283690
2019-07-03 03:18:55 +00:00
Tao Bao
06429d7048 Change the condition for building super_empty.img.
This CL changes the condition for building super_empty.img from
PRODUCT_BUILD_SUPER_PARTITION to PRODUCT_USE_DYNAMIC_PARTITIONS, as a
follow-up to the change in [1].

With the CL in [1], it skips building super.img and super_empty.img both
when turning off PRODUCT_BUILD_SUPER_PARTITION. However, the latter
should be mandatory whenever dynamic partitions is enabled. Because
fastboot relies on this file to properly flash dynamic partitions. Plus,
the cost for building super_empty.img is much lower than the one for
super.img.

As part of the change, it'll write group info into target_files when
building with PRODUCT_BUILD_SUPER_PARTITION == false. It's the work for
target_files merging script to determine the values to be picked up. The
current logic in merge_target_files.py always uses the one from vendor
target_files. This CL adds a testcase to ensure the behavior.

[1] https://android-review.googlesource.com/c/platform/build/+/928756

Bug: 135752763
Test: `m dist` with a target that sets PRODUCT_BUILD_SUPER_PARTITION to
      false. Check the built artifacts contain super_empty.img. Verify
      that the build can be flashed properly.

Change-Id: I277f087eab45663a6c3b33333d16e9e576c1c25c
Merged-In: I277f087eab45663a6c3b33333d16e9e576c1c25c
(cherry picked from commit 48a2feb670)
2019-07-02 03:30:17 +00:00
android-build-team Robot
4d2885878d Make change and version bump to QQ1A.190702.001
Change-Id: Idc2bd3ca1e03ad201ecd145202409b69d381c0a8
2019-07-02 03:19:39 +00:00
android-build-team Robot
511fe626a8 Version bump to QQ1A.190701.003 [core/build_id.mk]
Change-Id: I90fa337d389dfec1f6c57431ec9596deda141174
2019-07-01 22:58:54 +00:00
android-build-team Robot
932f481c7b Version bump to QQ1A.190701.002 [core/build_id.mk]
Change-Id: I4fea9c5b5a0fe78dda6ab9c860e7d86526e52794
2019-07-01 22:53:54 +00:00
Daniel Norman
ef212270fe Allows skipping building the super images for partial builds.
Previously, setting PRODUCT_BUILD_SUPER_PARTITION to false for a partial
build (with PRODUCT_USE_DYNAMIC_PARTITIONS == true) would fail to
include necessary keys in misc_info.txt that are required when merging
two partial builds to create a dynamic-partition-enabled mixed build.

This change ensures these necessary keys are included even when
PRODUCT_BUILD_SUPER_PARTITION is false. Setting
PRODUCT_BUILD_SUPER_PARTITION to false causes partial builds to skip
building super.img and super_empty.img, instead relying on these images
to come from the final merged build.

Bug: 135752763
Bug: 134764140
Test: Building & booting a dynamic-partition-enabled mixed build, and
inspecting partial builds' logs / out folder to ensure that
super.img/super_empty.img were not created.

Change-Id: I99431a9a342e9b0617510e250597f3024ef39322
Merged-In: I99431a9a342e9b0617510e250597f3024ef39322
(cherry picked from commit 0bf940cace)
2019-07-01 15:19:22 -07:00
android-build-team Robot
3cbf4d9387 Make change and version bump to QQ1A.190701.001
Change-Id: I0c163bdc7c07eefbf92e56ae44212d54437d1faa
2019-06-30 23:20:35 +00:00
android-build-team Robot
f880e258b5 Make change and version bump to QQ1A.190630.001
Change-Id: I8cd16782fdd6b0cb4ffee51bd9f51573f30ca4f0
2019-06-29 23:23:50 +00:00
android-build-team Robot
62fb6c6e0d Make change and version bump to QQ1A.190627.001
Change-Id: I3e96ab2eb3c01d0ce765a870bf839a8741e6b5f5
2019-06-27 03:19:16 +00:00
android-build-team Robot
234d8cf05a Make change and version bump to QQ1A.190626.001
Change-Id: I0ad6073bcfbb21533b5463b5aee4f33ca12c71aa
2019-06-26 03:18:13 +00:00
android-build-team Robot
e3bf4c2c36 Make change and version bump to QQ1A.190625.001
Change-Id: I1b2eb9903fc8c5688c95752969bfb6d4b097ac77
2019-06-25 13:03:29 +00:00
android-build-team Robot
852ca6d6e7 Make change and version bump to QQ1A.190624.001
Change-Id: Idef010ba2b18b7bd6d864861258515fe84b7daa1
2019-06-23 23:21:27 +00:00
android-build-team Robot
882b6dff4e Make change and version bump to QQ1A.190623.001
Change-Id: I54111ad60e451e0f7fa1175537bf2e7a3d9625de
2019-06-22 23:26:46 +00:00
android-build-team Robot
eea43a80d2 Make change and version bump to QQ1A.190620.001
Change-Id: If4227bb705db5bd2080b9a93856cf4bd6b9ade9d
2019-06-20 03:19:31 +00:00
Chen Zhu
ce72964fa1 Add Mainline Test Suite (MTS) to build.
Test: m mts

Bug: 126277867
Bug: 123411735
Change-Id: Iba6bf89bd4457ed0f5c1eb3351bf5ffd6720441d
2019-06-19 15:14:23 -07:00
android-build-team Robot
a5bcd443a2 Make change and version bump to QQ1A.190619.001
Change-Id: Id7a93a98e1d925c174b62511df3e3417f97e62ab
2019-06-19 03:19:21 +00:00
android-build-team Robot
ba7e37df43 Make change and version bump to QQ1A.190618.001
Change-Id: I85fdf95d6d6aa149cd63ed6b1e3e0e77a8fbd706
2019-06-18 03:20:37 +00:00
Adam Seaton
78a6b8c0f7 Revert "Update Security String from 08-05 to 2019-08-01 Bug:126590667"
am: 0c355124bf

Change-Id: Ibc17188873169460a841c1a3dca36212e18a30d6
2019-06-17 14:58:15 -07:00
android-build-team Robot
df49c0d4dd Make change and version bump to QQ1A.190617.002
Change-Id: I5a08a70912927451da7e0892df8b3aa7a0880d0b
2019-06-17 17:22:17 +00:00
Adam Seaton
a3ff1155e5 Revert "Update Security String from 08-05 to 2019-08-01 Bug:126590667"
This reverts commit ef7c2c7915.

Reason for revert: Resolve string downgrade issue

Change-Id: I28831f2592bba09907b76c7d5ac46326a9c1e9f8
(cherry picked from commit 0c355124bf)
2019-06-17 17:21:53 +00:00
Adam Seaton
0c355124bf Revert "Update Security String from 08-05 to 2019-08-01 Bug:126590667"
This reverts commit ef7c2c7915.

Reason for revert: Resolve string downgrade issue

Change-Id: I28831f2592bba09907b76c7d5ac46326a9c1e9f8
2019-06-17 17:03:51 +00:00
android-build-team Robot
2e1450709a Make change and version bump to QQ1A.190617.001
Change-Id: Id4c561643c2e32ddfeac5f94eebcd160278ac48f
2019-06-16 23:20:35 +00:00
android-build-team Robot
0282e08654 Make change and version bump to QQ1A.190616.001
Change-Id: Id35e8bce642efbd9a47c5baa2e7dc97a2bc3de53
2019-06-15 23:21:26 +00:00
TreeHugger Robot
7730dfc659 Merge "Fail build when sum of sizes of logical partitions exceeds OEM-set limit" into qt-r1-dev 2019-06-14 23:26:24 +00:00
Paul Scovanner
51b942fbe4 Update Security String from 08-05 to 2019-08-01 Bug:126590667 am: ead61ed19e
am: ef7c2c7915

Change-Id: I39ff01e6a0a2d7a1bc0f3c3d655c63ff9363f10e
2019-06-14 13:37:35 -07:00
Hridya Valsaraju
645bc41ecb Fail build when sum of sizes of logical partitions exceeds OEM-set limit
BOARD_SUPER_PARTITION_ERROR_LIMIT can be set by OEMs to cause a
build failure when the sum of sizes of logical partitions exceeds the same.
It is set to BOARD_SUPER_PARTITION_SIZE by default.

Bug: 133329143
Test: mmm -j32

Change-Id: Ief85c9ab3e3b9d071cd22b70e13b5c64bb784b9c
Merged-In: Ief85c9ab3e3b9d071cd22b70e13b5c64bb784b9c
(cherry picked from commit 219b6294dc)
2019-06-14 20:24:17 +00:00
Paul Scovanner
ef7c2c7915 Update Security String from 08-05 to 2019-08-01 Bug:126590667
am: ead61ed19e

Change-Id: Iaf434bf5690c3c50371bb11266d300ab7d335184
2019-06-14 13:22:34 -07:00
Hridya Valsaraju
c624484135 Print a warning when sum of sizes of logical partitions an OEM-set limit
BOARD_SUPER_PARTITION_WARN_LIMIT can be set by OEMs to print
a warning when the sum of sizes of logical partitions exceed the same.
It is set to 95% of BOARD_SUPER_PARTITION_SIZE by default.

Bug: 133329143
Test: mmm -j32

Change-Id: I7d3bedd970a92be60991898e436f63d914359301
Merged-In: I7d3bedd970a92be60991898e436f63d914359301
(cherry picked from commit 6fab18a7eb)
2019-06-13 16:49:46 -07:00
android-build-team Robot
111a94b7c9 Version bump to QQ1A.190613.002 [core/build_id.mk]
Change-Id: Iaa4b33e662be205d0cddebc16b3efaeec7181424
2019-06-13 19:58:58 +00:00
android-build-team Robot
cea0613297 Make change and version bump to QQ1A.190613.001
Change-Id: Idafb741cb1daee62d1cc339205fc825543a8ceda
2019-06-13 03:22:17 +00:00
Paul Scovanner
3a25bc8b55 Update Security String to 2019-08-05 Bug:126590667
am: a3e1c57a95

Change-Id: I0b10bab75834759c3bd216fc77c38c84b445c4e2
2019-06-12 16:06:18 -07:00
android-build-team Robot
017d54c8fb Version bump to QQ1A.190612.003 [core/build_id.mk]
Change-Id: I574120036665118aa5252e57a72ffc2cd317fc63
2019-06-12 22:59:36 +00:00
Paul Scovanner
ead61ed19e Update Security String from 08-05 to 2019-08-01
Bug:126590667
2019-06-12 22:51:45 +00:00
android-build-team Robot
ea9a041a31 Make change and version bump to QQ1A.190612.002
Change-Id: Ic848196d1284be1e9cca2e8e363d25b74c8af23f
2019-06-12 04:15:42 +00:00
android-build-team Robot
7a35f1e622 Make change and version bump to QQ1A.190612.001
Change-Id: I07321cecc77d149b675730b738113e149156274b
2019-06-12 03:25:48 +00:00
Paul Scovanner
a3e1c57a95 Update Security String to 2019-08-05
Bug:126590667
2019-06-11 19:46:33 +00:00
android-build-team Robot
8d96eefaf8 Make change and version bump to QQ1A.190611.001
Change-Id: I1b34f9022fc59e0a9fdd7804e174fdc54ba722b5
2019-06-11 03:18:48 +00:00
android-build-team Robot
9b6093b895 Make change and version bump to QQ1A.190610.001
Change-Id: I6a429ed0af22636c14294da72e7db4764a0f5340
2019-06-09 23:19:47 +00:00
android-build-team Robot
4b5188783d Make change and version bump to QQ1A.190609.001
Change-Id: I7d6c06fa2ec5b9ce03e67612d77eb993f3e4e2ff
2019-06-08 23:21:22 +00:00
android-build-team Robot
75cba2ac01 Version bump to QQ1A.190606.002 [core/build_id.mk]
Change-Id: I3d8b1b1bc57da9a899bd3c181255227acb27ef10
2019-06-07 01:58:51 +00:00
android-build-team Robot
30819d4413 Make change and version bump to QQ1A.190606.001
Change-Id: Ia9ca25f5e3fca630e4e332e824a328aab1d0e6bb
2019-06-06 06:59:16 +00:00
Tao Bao
97a6690a23 Rebuild recovery-from-boot patch when calling add_img_to_target_files.
When using Verified Boot 2.0, releasetools specifies a salt value based
on build fingerprint, so that to give idempotent images.

However, the change that removed static `ro.build.fingerprint` [1] broke
the behavior, as common.LoadInfoDict still relies on fingerprints.
Without a fixed salt, the first call to make_recovery_patch.py and the
second one (which writes IMAGES/{boot,recovery}.img) will see different
images, which leads to install-recovery.sh failure.

Note that currently there's a dependency that requires getting bootable
images through two separate calls. make_recovery_patch.py has to happen
first to get (placeholder) files in the system image. We then generate
canned fs_config files, and finally use add_img_to_target_files.py to
write the images.

This CL adds a quick workaround to force rebuilding the
recovery-from-boot patch while calling add_img_to_target_files.py.

[1] https://android-review.googlesource.com/c/platform/build/+/892933

Bug: 134123803
Bug: 134525174
Test: TreeHugger
Test: Build a non-A/B target that uses AVB. Run validate_target_files.py
      on the generated target_files.zip.
Change-Id: I5859e30be63bfd54398cf41fd2d907f15285f560
Merged-In: I5859e30be63bfd54398cf41fd2d907f15285f560
(cherry picked from commit 4978fa99d1)
2019-06-05 22:04:47 -07:00
android-build-team Robot
8ff869a7d2 Make change and version bump to QQ1A.190605.001
Change-Id: I46b9ab521a7757a7b8032638b52b9bc778d5edc6
2019-06-05 03:20:23 +00:00
android-build-team Robot
a4ccde4da2 Make change and version bump to QQ1A.190604.001
Change-Id: I323a3a7d11a549b6039c947a01db798132e51355
2019-06-04 03:23:21 +00:00
android-build-team Robot
920dfd1f65 Make change and version bump to QQ1A.190603.001
Change-Id: I5dd3e2935ae0770001a4ff12a4749be098cab4d7
2019-06-02 23:18:47 +00:00
android-build-team Robot
b7ef307108 Make change and version bump to QQ1A.190602.001
Change-Id: I92f9df14b18efa407d0d4fa2fd7c3537a853464c
2019-06-01 23:21:36 +00:00
android-build-team Robot
f4cc8e11b7 Version bump to QQ1A.190530.004 [core/build_id.mk]
Change-Id: Ia153e4a7499d844860b5d65c8bca42f47d9819fc
2019-05-31 18:39:43 +00:00
android-build-team Robot
da68ac05ce Version bump to QQ1A.190530.003 [core/build_id.mk]
Change-Id: I5235c1df2c65e911aa200f5f2d40a277d9c1e68f
2019-05-31 02:51:00 +00:00
android-build-team Robot
061303c923 Version bump to QQ1A.190530.002 [core/build_id.mk]
Change-Id: I84f149d5360681804c78fb417136b93b178f0b47
2019-05-30 20:03:19 +00:00
Alan Viverette
c45849fc0c Remove obsolete Support Library guidance from version_defaults.mk
Test: n/a docs only
Fixes: 133228727
Change-Id: I10cdd9a4dfe8c508417f7b80320e308c236f2c8e
2019-05-30 16:57:25 +00:00
android-build-team Robot
f898929326 Make change and version bump to QQ1A.190530.001
Change-Id: I44fd6d367b608e55e90a38e267df04cb691c4b82
2019-05-30 03:18:43 +00:00
android-build-team Robot
4d5c1d84c0 Version bump to QQ1A.190529.002 [core/build_id.mk]
Change-Id: Id04d38fa12c1bcf36eb3d67a845ebc2faea1abb6
2019-05-29 20:46:44 +00:00
android-build-team Robot
d81166e6c1 Make change and version bump to QQ1A.190529.001
Change-Id: Id6ad6c28f8d676172480fa2276876fdb16d5b94e
2019-05-29 03:17:32 +00:00
android-build-team Robot
961f1ca425 Version bump to QQ1A.190528.002 [core/build_id.mk]
Change-Id: Ie931dcac8a79a56029542b8718f78dff47015e8f
2019-05-28 23:06:21 +00:00
android-build-team Robot
f628c0ceb0 Make change and version bump to QQ1A.190528.001
Change-Id: I8e4eb31d8a4b8677bc7f2b8ea75903c843d117dc
2019-05-28 03:18:16 +00:00
android-build-team Robot
9399a7e567 Make change and version bump to QQ1A.190527.001
Change-Id: I10e7c1dffb12d1330ab86729d3aaec7ce58d246c
2019-05-26 23:18:19 +00:00
android-build-team Robot
c823d3b5e1 Make change and version bump to QQ1A.190526.001
Change-Id: I79b60aa82b84319e3335fc799b92c67173a044b7
2019-05-25 23:20:37 +00:00
TreeHugger Robot
f862715103 Merge "Allow for the DTB image to be built by the Android build system." into qt-dev 2019-05-24 17:34:27 +00:00
android-build-team Robot
ec5fa5b6fb Make change and version bump to QQ1A.190523.001
Change-Id: I4089d9a577695cf89a50f28c1c1819cba870f5be
2019-05-23 03:17:31 +00:00
android-build-team Robot
517c116765 Version bump to QQ1A.190522.003 [core/build_id.mk]
Change-Id: I163ad5e2548ad88f4d3f2f01a9f712b90de726a0
2019-05-23 00:26:59 +00:00
Hridya Valsaraju
5b8f78fbe8 Allow for the DTB image to be built by the Android build system.
The current solution expects BOARD_PREBUILT_DTBIMAGE_DIR to
contain prebuilt DTB files that are concatenated by the build system
to create $OUT/dtb.img. In order to accommodate devices that build
the dtb image locally, when BOARD_PREBUILT_DTBIMAGE_DIR is undefined,
make boot.img creation depend only on $OUT/dtb.img.

Bug: 133161451
Test: Build with BOARD_PREBUILT_DTBIMAGE_DIR undefined and verify
using unpack_bootimg.py that $OUT/dtb.img was included in boot.img.

Change-Id: Iae2c634ccdc1d83589b26d382882f75fb8565a31
Merged-In: Iae2c634ccdc1d83589b26d382882f75fb8565a31
2019-05-22 15:55:47 -07:00
android-build-team Robot
2a2cea9d41 Version bump to QQ1A.190522.002 [core/build_id.mk]
Change-Id: I8ff2608b8a1ac9f2e3e7eb579556e727419305d2
2019-05-22 21:33:28 +00:00
Bowgo Tsai
33ff602070 Moving /odm/build.prop to /odm/etc/buid.prop
In device root directory, we have the following symlinks:
  - /odm/app -> /vendor/odm/app
  - /odm/bin -> /vendor/odm/bin
  - /odm/etc -> /vendor/odm/etc
  ...

This allows the Generic System Image (GSI) to be used on both devices:
  1) Has a physical odm partition, where those symlink will be hidden
     when /odm is used as the mount point
  2) Has no physical odm partition and fallback to /vendor/odm/.

We can't just have the symlink /odm -> /vendor/odm, because the former
devices won't have /vendor/odm directory, which leads to mount failure
when the mount point /odm is resolved to /vendor/odm.

The existing /vendor/odm/build.prop won't be loaded in the latter
devices, because there is no symlink:
    - /odm/build.prop -> /vendor/odm/build.prop.

Note that init blocks reading through direct symlinks (O_NOFOLLOW) so
the above symlink won't work either. This CL moves the odm build.prop
to /odm/etc/build.prop for init to load it (symlinks in earlier
components of the path will still be followed by O_NOFOLLOW).

Bug: 132128501
Test: boot a device and checks /odm/etc/build.prop is loaded
Test: make dist with an odm.img, checks $OUT/odm/etc/build.prop is loaded
Change-Id: I6f88763db755c9ec6068bfdd9cee81c19d72e9d7
Merged-In: I6f88763db755c9ec6068bfdd9cee81c19d72e9d7
(cherry picked from commit 6c62884000)
2019-05-22 16:14:53 +08:00
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
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
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
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
43b86c0182 Merge "Move default setting of a product variable" into qt-dev 2019-05-16 09:27:29 +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
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
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
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
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
Martin Stjernholm
4a901c6d41 Ignore vndk-* subdirectories in the library absence check.
(cherry picked from commit 8222ce45dd)

Test: m systemimage
Test: build_test on Forrest
Bug: 132289438
Merged-In: I059c9d0edb78e52838a25cef0472807847d77417
Change-Id: I57359dc9f1aa2230acd3252118aaf41f42b7a913
2019-05-10 16:14:20 +00:00
Martin Stjernholm
b4e549bfb7 Exclude lib/arm(64) from the library absence check.
(cherry picked from commit 4655206209)

Test: m systemimage
Test: build_test on Forrest
Bug: 132289438
Merged-In: I5dfb534aa2bc24a8d0a75fde31b139a6ed86e6a5
Change-Id: Ied158548f391d67f44ca31b74a3711d1cb5216fe
2019-05-10 16:13:54 +00:00
TreeHugger Robot
cfca3e591d Merge "Move ro.boot.dynamic_partitions to vendor/build.prop" into qt-dev 2019-05-08 23:28:51 +00:00
Hridya Valsaraju
ccd6279bef Move ro.boot.dynamic_partitions to vendor/build.prop
Bug: 132197773
Test: property present in vendor/build.prop

Currently, the property resides in product partition which gets
overwritten by the GSI image. Moving it to vendor will ensure
that the property is set even when a GSI image is flashed on the device.

Change-Id: I4d4a3c473194e15ba124a121f89bbb3ec1a73d19
Merged-In: I4d4a3c473194e15ba124a121f89bbb3ec1a73d19
2019-05-08 21:40:26 +00:00
Jiyong Park
18411a42f0 Ensure TARGET_FLATTEN_APEX == true when ro.apex.updatable is not set
TARGET_FLATTEN_APEX and ro.apex.updatable cannot be independently set.
For a device where updating APEXes is not supported, ro.apex.updatable
should not be set (or set to false) and TARGET_FLATTEN_APEX should be
set to true. For APEX-supporting devices, it is the opposite;
ro.apex.updatable == true and TARGET_FLATTEN_APEX is false (or not set).

To ensure this relationship, TARGET_FLATTEN_APEX is by default set to
true, and overridden to false when updatable_apex.mk is inherited.

Bug: 130623080
Test: choosecombo to Pixels 2 and later; get_build_var
TARGET_FLATTEN_APEX returns false.
choosecombo to the original Pixel and other non-Pixel targets;
get_build_var TARGET_FLATTEN_APEX returns true.
choosecombo to the cuttlefish; get_build_var TARGET_FLATTEN_APEX
returns false

Change-Id: Id73a594dd9838457e68e2793122592c11a84fc83
2019-05-08 20:51:21 +09:00
Bowgo Tsai
30a4eb54fc Using a test key to sign boot-debug.img if needed
When /boot partition is chained in AVB signing, libavb will try to
read AVB footer from the end of /boot partition, even if the device is
unlocked. However, this makes device unbootable when the unsigned
boot-debug.img is flashed on /boot partition. This CL uses a test key
from external/avb to sign the boot-debug.img if /boot partition is
chained.

Bug: 126493225
Bug: 129508966
Test: Enables chain partition for boot.img, `make bootimage_debug` then
      checks `avbtool info_image --image $OUT/boot-debug.img`
Test: `make bootimage_debug-nodeps`
Test: boot a device with a chained boot-debug.img

Change-Id: I870cb70c70b7d4d7a30b77bed58cbca6e007d5e3
Merged-In: I870cb70c70b7d4d7a30b77bed58cbca6e007d5e3
(cherry picked from commit 26b0a26e3e)
2019-05-07 17:27:43 +08:00
bohu
c73e9b70dc emulator: support dynamic partitions
BUG: 125540538

Change-Id: I9d486f57ac4ec11b1bbe9ab97890d12441c3054e
Merged-In: I9d486f57ac4ec11b1bbe9ab97890d12441c3054e
2019-05-03 03:36:53 +00:00
Anton Hansson
669a9dbd99 Merge "Remove unneeded bootimage properties" into qt-dev 2019-05-02 08:24:48 +00:00
Ian Pedowitz
277bf1ae79 Merge "Revert "RESTRICT AUTOMERGE Updating the platform sdk version for Q"" into qt-dev 2019-05-02 00:59:09 +00:00
Ian Pedowitz
842119ab3a Revert "RESTRICT AUTOMERGE Updating the platform sdk version for Q"
This reverts commit 5e0226b816.

Reason for revert: QT SDK Finalization. Will be merged again on/after May 13th

Bug: 129975435
Change-Id: Ia3693b2a4907c4ca9be56cfe18fda35b8545abba
2019-05-02 00:55:38 +00:00
Ian Pedowitz
72cb9c892d Merge "RESTRICT AUTOMERGE Updating the platform sdk version for Q" into qt-dev 2019-05-02 00:53:29 +00:00
Yifan Hong
d8900299d7 Merge "Add BOARD_SUPER_IMAGE_IN_UPDATE_PACKAGE flag." into qt-dev 2019-05-01 18:00:33 +00:00
TreeHugger Robot
258fbef820 Merge "Skip unneeded notice files for ETC modules." into qt-dev 2019-05-01 12:55:39 +00:00
Pete Bentley
feef8d4af5 Merge "Remove libjavacrypto from system image." into qt-dev 2019-05-01 11:27:29 +00:00
Jaewoong Jung
48483a6903 Skip unneeded notice files for ETC modules.
Non-installable, non-library modules can still have notice files
attached if they are bundled in an apex module, in which case the
current make setting would generate an error. This change makes it just
ignore them silently if the module is ETC. Other classes will still
trigger an error.

Bug: 130138217
Test: manual build + TreeHugger
Merged-In: Ic7931f990369f744c8de62956a1a0a9c0451d6ab
Change-Id: Ic7931f990369f744c8de62956a1a0a9c0451d6ab
(cherry picked from commit dca3186b84)
2019-05-01 00:40:50 +00:00
Mathieu Chartier
b5ce621e6b Merge "Add PRODUCT_DEX_PREOPT_RESOLVE_STARTUP_STRINGS" into qt-dev 2019-04-30 20:03:52 +00:00
Pete Bentley
5a78b371ed Remove libjavacrypto from system image.
The only copy needed is the one in the Conscrypt APEX.

Bug: 123925742
Test: m
Change-Id: Ieea8549d047750cf3580d6fe0204fdf55b6b8394
Merged-In: Ieea8549d047750cf3580d6fe0204fdf55b6b8394
2019-04-30 20:36:18 +01:00
Yifan Hong
7df64c3e77 Add BOARD_SUPER_IMAGE_IN_UPDATE_PACKAGE flag.
When set, product-img-tag.zip contains super.img instead of individual
user images from target files. For virtual devices, super.img is needed
to boot the device, but individual user images aren't needed.

Test: on A/B DAP, with flag set:
     - m updatepackage and look at img.zip
     - img_from_target_files
     both have super.img and not system / vendor / system_other
Test: on non-A/B DAP, with the flag set:
     - m updatepackage and look at img.zip
     - img_from_target_files
     both have super.img and not system / vendor
Test: on A/B retrofit, with the flag set:
     - m updatepackage and look at img.zip
     - img_from_target_files
     both have super_*.img and system_other.img, but not system / vendor
Bug: 113175337

Change-Id: I94e33091d0c837cae40776176b4dcfdd338aba90
(cherry picked from commit 0e97dbb8ca)
Merged-In: I94e33091d0c837cae40776176b4dcfdd338aba90
2019-04-30 11:36:16 -07:00
Suprabh Shukla
5e0226b816 RESTRICT AUTOMERGE Updating the platform sdk version for Q
Test: Builds, boots.

Bug: 129975435
Change-Id: I98d35b36c540a258e17d18210eb4e93717abacc6
2019-04-30 00:48:01 +00:00
Yifan Hong
75ed2e7f11 Add BOARD_BUILD_SUPER_IMAGE_BY_DEFAULT flag.
If set to true,
- super.img is built from images in $PRODUCT_OUT
- super.img is built to $PRODUCT_OUT
- super.img is built when 'make'.

'make dist' still builds super image from images in target files to
intermediates directory.

This flag is useful for virtual devices, but isn't intended to be set for
actual devices. For actual devices, userspace fastboot should flash
super_empty.img and individual user images separately.

Test: on cuttlefish (flag is set),
      make            # generates $OUT/super.img
      make superimage # generates $OUT/super.img
Test: on real non-retrofit DAP device (flag is not set)
      make            # no super.img is generated
      make superimage # generates $OUT/obj/PACKAGING/.../super.img
      make dist       # generates out/dist/super.img

Bug: 113175337

Change-Id: Ieb81e4fbb663bb4b69e9962c3fa9f16b03aeb907
(cherry picked from commit acd862aed3)
Merged-In: Ieb81e4fbb663bb4b69e9962c3fa9f16b03aeb907
2019-04-29 16:41:32 -07:00
Mathieu Chartier
b37c79c3a2 Add PRODUCT_DEX_PREOPT_RESOLVE_STARTUP_STRINGS
For enabling per product configuration of resolving startup
const strings.

Bug: 130217075
Bug: 131310042
Test: make
Change-Id: I51cb8931b915a710ab584f954b7a99c7a651d914
2019-04-29 11:23:26 -07:00
Anton Hansson
8ac52324f2 Remove unneeded bootimage properties
These were added as part of http://r.android.com/731514, but
most of these properties make no sense for the bootimage. Revert
to only defining date, date.utc and fingerprint.

Bug: 131066061
Test: inspect vendor/build.prop
Test: boot, no SELinux warnings for removed props
Change-Id: Ibbeff9870a5b71e83c2cceeb1327b12600077b23
Merged-In: Ibbeff9870a5b71e83c2cceeb1327b12600077b23
2019-04-29 15:39:10 +01:00
Yifan Hong
46f7e88c27 Merge changes from topic "productmanifest" into qt-dev
* changes:
  ota_from_target_files: include metadata when odm / product is changed.
  Add product manifest.
2019-04-26 22:39:01 +00:00
Yifan Hong
1bf5cd31c0 Add product manifest.
- Rename framework_manifest.xml to system_manifest.xml since that's more accurate.
- Add product_manifest.xml to base_product.mk
- Add product_manifest.xml to verified_assembled_framework_manifest.xml to check
  it at build time.

Bug: 126770403
Bug: 130714844
Bug: 80547152

Test: build and inspect output
Test: lshal

Change-Id: I1b447d8c36f72768e28e9bcaa4d06afdeba08c2a
Merged-In: I1b447d8c36f72768e28e9bcaa4d06afdeba08c2a
2019-04-24 16:28:48 -07:00
SzuWei Lin
d312ca82ed Merge "Fix build error for no-ramdisk targets" into qt-dev 2019-04-24 08:57:44 +00:00
Bowgo Tsai
6e38628664 Fix aosp_arm64 build error when make ramdisk_debug
Some targets have ramdisk.img but no boot.img, howerver,
ramdisk-debug.img only depends on boot.img. Fix this by making
ramdisk-debug.img depends on ramdisk.img.

Bug: 126493225
Test: make ramdisk_debug
Change-Id: I65120a3b3372712fafc26442354ee031eede0bd3
Merged-In: I65120a3b3372712fafc26442354ee031eede0bd3
(cherry picked from commit c3e8cc9bd1)
2019-04-24 08:42:09 +00:00
Bowgo Tsai
f00885f299 Fix build error for no-ramdisk targets
In some build targets, e.g., aosp_arm64_ab, $OUT/ramdisk is an empty
dir, and leads to rsync $OUT/ramdisk/* failure. Removing the trailing
asterisk to avoid throwing an error if it's empty. Note that the
trailing slash still needs to be kept to avoid creating an additional
directory level at the destination.

Bug: 126493225
Test: `make ramdisk_debug` on aosp_arm64_ab
Test: flash boot-debug.img on crosshatch still can adb root
Change-Id: I44937324379fa78fc26a4471ba94eb7694911c2d
(cherry picked from commit 85f292939647fb9bd659a6a5deebd3f07dd3a079)
2019-04-24 16:25:10 +08:00
Bowgo Tsai
d82a1549f1 Adding boot-debug.img and ramdisk-debug.img
The two new debugging images adds additional files based on
boot.img and ramdisk.img/ramdisk-recovery.img, respectively.

File /force_debuggable is to trigger special logic in /init to load an
userdebug version of sepolicy and an additional property file from this
ramdisk to allow adb root, if the device is unlocked.

It's intentional to skip signing for boot-debug.img, as it can
only be used if the device is unlocked, where verification error
is allowed.

Those debugging images allows adb root on user build
system.img, vendor.img, product.img, etc. This can facilitate more
automated testings on user builds and is helpful to narrow down the
delta between what's being tested v.s. what's being shipped.

Bug: 126493225
Test: `make dist`, checks both boot-debug.img and ramdisk-debug.img
      are in $OUT/ and out/dist.
Test: `make dist`, checks installed-files-ramdisk-debug.{json,txt} are
       in out/dist.
Test: `system/core/mkbootimg/unpack_bootimg.py --boot_img $OUT/boot-debug.img`,
      checks the extracted out/ramdisk is as expected
Test: Run `gunzip -c ramdisk | cpio -idm` for the ramdisk extracted from
      $OUT/boot-debug.img and $OUT/boot.img, respectively.
      Then compare the root dirs of both, e.g.,
      `diff -rq --no-dereference ./ramdisk ./ramdisk-debug`
Test: `make ramdisk_debug-nodeps` and `make bootimage_debug-nodeps`

Change-Id: I30137c3caef91805d9143d404e5e4d06c0fccc30
Merged-In: I30137c3caef91805d9143d404e5e4d06c0fccc30
(cherry picked from commit 0013f55ef4)
2019-04-23 21:03:00 +08:00
Colin Cross
dc47df6439 Allow codename.fingerprint format for targetSdkVersion
Use codename.fingerprint format for targetSdkVersion if it is unset
in the manifest and UNBUNDLED_BUILD_TARGET_SDK_WITH_API_FINGERPRINT=true.

Test: manual
Bug: 130541924
Change-Id: Ie748d1963ff6f525f8d9e551b73846c3e1c7f9a2
Merged-In: Ie748d1963ff6f525f8d9e551b73846c3e1c7f9a2
(cherry picked from commit d60401a59b)
2019-04-22 09:58:24 -07:00
Colin Cross
5180722c5e Use framework.aidl built by Soong
Bug: 130798034
Test: m checkbuild
Change-Id: I24621b41860ce1fd1c3ba067430c8d62b49d03cb
Merged-In: I24621b41860ce1fd1c3ba067430c8d62b49d03cb
(cherry picked from commit 50bf3127d9)
2019-04-22 09:58:07 -07:00
Dan Willemsen
97548ef31b Fix typo of PRODUCT_BUILD_ODM_IMAGE
Bug: 130879723
Test: treehugger
Change-Id: Ibe6523ca77aeb1ff6fdd138dcf2bfa46bcdeee59
Merged-In: Ibe6523ca77aeb1ff6fdd138dcf2bfa46bcdeee59
2019-04-19 15:02:21 -07:00
TreeHugger Robot
706fa88b91 Merge "TARGET_FS_CONFIG_GEN is a list, not a single path" into qt-dev 2019-04-18 22:46:22 +00:00
Calin Juravle
471c9170c4 Add the entire boot image to boot.zip
Add all the boot image files necessary of offline inspection and
compilation in a single zip file (boot.zip).

This replaces the previous boot_profiles_jars.zip which contained only the
jar files.

Bug: 130376456
Test: m dist

Change-Id: I25b0c03ee9e7a2c2ff25db406656ce79baff5a46
Merged-In: Ib71c4fcc0d451570d0bb0584745487c54f884fd9
(cherry picked from commit 3dfae3f149)
2019-04-18 14:28:24 -07:00
Dan Willemsen
e531685ba5 TARGET_FS_CONFIG_GEN is a list, not a single path
Bug: 130787336
Test: m oemaids_header_gen oemaids_headers passwd group
Test: Set TARGET_FS_CONFIG_GEN to a list of paths
Change-Id: I5186b378fea8865f46cfd891420ba576f36e2565
Merged-In: I5186b378fea8865f46cfd891420ba576f36e2565
(cherry picked from commit 7f25f2aed9)
2019-04-18 14:26:48 -07:00
Colin Cross
081e9b5363 Always use aapt2 for prebuilt appcompat
Running appcompat is missing a dependency on aapt/aapt2.  There
is no need to switch between aapt and aapt2, so always use aapt2
and add the missing dependency.

Fixes: 130575935
Test: treehugger
Change-Id: If32c03410fbdb3945bf20f7405de13dc8cd83038
Merged-In: If32c03410fbdb3945bf20f7405de13dc8cd83038
(cherry picked from commit a0d89b994f)
2019-04-16 23:00:52 -07:00
David Brazdil
38cd7f3c8b Enable core platform API warnings on non-user builds
Core platform API violation reporting is disabled by default and can be
enabled by setting the persist.debug.dalvik.vm.core_platform_api_policy
property. Set it to "just-warn" for non-user builds and leave disabled
on user builds.

Test: builds, boots
Bug: 125701194
Change-Id: I2f4be42373de9fdbc71c3178de6d34e07809f13a
Merged-In: I2f4be42373de9fdbc71c3178de6d34e07809f13a
(cherry picked from commit f5b3fc854f)
2019-04-15 22:06:39 +01:00
Paul Scovanner
593be3c494 Update Security String to 2019-06-05 Bug:129374896 Merged-In: 2c26c3d4c0 am: 3ae4e858b7 am: cce67c52c9
am: e90b407c2f

Change-Id: I451be3f8467540539c00be5d02798be830f89ff1
2019-04-12 20:54:41 -07:00
Paul Scovanner
e90b407c2f Update Security String to 2019-06-05 Bug:129374896 Merged-In: 2c26c3d4c0 am: 3ae4e858b7
am: cce67c52c9

Change-Id: Iad4a6c33c50cc2fd213a6a207c920ee540ae1c43
2019-04-12 20:25:15 -07:00
Paul Scovanner
cce67c52c9 Update Security String to 2019-06-05 Bug:129374896 Merged-In: 2c26c3d4c0
am: 3ae4e858b7

Change-Id: I02ef18033096d4e6d22f0eb945b4b630104e4609
2019-04-12 19:35:43 -07:00
Paul Scovanner
3d6b8b2896 Merge "Update Security String to 2019-06-05 Bug:129374896" into qt-dev 2019-04-12 23:42:34 +00:00
Paul Scovanner
3ae4e858b7 Update Security String to 2019-06-05
Bug:129374896
Merged-In: 2c26c3d4c0
2019-04-12 18:40:01 +00:00
TreeHugger Robot
93b2a10b6e Merge "Export more config values to Soong" into qt-dev 2019-04-12 17:24:18 +00:00
Paul Scovanner
2c26c3d4c0 Update Security String to 2019-06-05 Bug:129374896 2019-04-12 16:39:24 +00:00
TreeHugger Robot
f9dca5e1d8 Merge "Convert oemaids_headers / passwd / group to Soong" into qt-dev 2019-04-12 16:06:59 +00:00
TreeHugger Robot
ec5b536446 Merge "DO NOT MERGE BUILD_ID=QT" into qt-dev 2019-04-12 00:41:32 +00:00
Dan Willemsen
b9d45c7d47 Convert oemaids_headers / passwd / group to Soong
Bug: 118089258
Test: m oemaids_header_gen oemaids_headers passwd group
Change-Id: Ie3b92a499b44391e0692da5d9ad067089a62aabb
Merged-In: Ie3b92a499b44391e0692da5d9ad067089a62aabb
(cherry picked from commit d32e6d1314)
2019-04-11 16:41:22 -07:00
Ian Pedowitz
6136d945b3 DO NOT MERGE BUILD_ID=QT
Bug: 128934651
Change-Id: Icad27eb43a782c6bf97e78076a365b0d31aefd54
2019-04-11 15:55:57 -07:00
Colin Cross
27ba4730f3 Export more config values to Soong
Export more config values to Soong that will be use dto generate
robolectric's build.prop.

Bug: 122331577
Test: m checkbuild
Change-Id: I1e9dd165772a071cf78927b3bf1e29e01290a42e
2019-04-11 10:52:18 -07:00
Yifan Hong
0d8e89b5f8 Reland "Only assert-max-image-size for static partitions."
assert-max-image-size doesn't make sense for
dynamic partitions, as build_image.py always find the
right size for the output image. Hence:

- build_image.py no longer need to write generated_*_info.txt
  (which contains the size of the image).
- assert-max-image-size on the static BOARD_*IMAGE_PARTITION_SIZE. If
  a partition is dynamic, that variable isn't set, and
  assert-max-image-size becomes a no-op. If the partition is static,
  assert-max-image-size checks the static partition size as it used
  to be.
- Fix read-size-of-partitions to use the size of the partition by
  reading the image directly (instead of using generated_*_info.txt).

For devices without AVB, with DAP enabled, and does not have
RESERVED_SIZE for partitions, because of right sizing, the original
code always warns about approaching size limits. Since such checks
doesn't make sense for dynamic partitions, remove them.

Test: builds on device with dynamic partitions
Test: builds on cuttlefish with DAP enabled (without AVB), no
      more size limit warnings:
WARNING: out/target/product/vsoc_x86/vendor.img approaching size limit (X now; limit X)

This reverts commit 6e099095d1.

Reason for revert: reland the CL

Bug: 122377935
Test: build blueline_mainline

Change-Id: Iee594b64e687decff186c0fa60f82b88608febe9
Merged-In: Iee594b64e687decff186c0fa60f82b88608febe9
2019-04-11 10:12:27 -07:00
Yifan Hong
c5aae579b7 Revert "Fix dynamic partition size check for devices with recovery"
Reason for revert: size check is removed for devices
with dynamic partitions because it doesn't make sense.

Bug: 122377935
Bug: 120043292
Bug: 124489494
Test: build cuttlefish

This reverts commit accf09b2e0.

Change-Id: I289faf11a08acbcef36924eb747a15f55124ce79
Merged-In: I289faf11a08acbcef36924eb747a15f55124ce79
2019-04-11 10:12:27 -07:00
Dan Willemsen
5606d2b53b Split ALL_MODULES.*.REQUIRED and friends between target/host
So that we actually respect different LOCAL_REQUIRED_MODULES for the
host and device versions instead of unioning them. That got particularly
problematic when LOCAL_SHARED_LIBRARIES is implicitly added to
LOCAL_REQUIRED_MODULES. We also used to walk through device-only modules
when filling out the list of required modules, which triggered even more
extra installations.

This also changes the requirements for PRODUCT_HOST_PACKAGES so that it
no longer accepts target-only phony modules (since we can now
differentiate them). They were all removed in previous patches.

Bug: 123925742
Fixes: 129719937
Test: treehugger; diff resulting builds
Test: diff list of product_target_FILES and product_host_FILES
Change-Id: I2ed8950320d31f5693323ad8cef6ec5b6780b7d4
Merged-In: I2ed8950320d31f5693323ad8cef6ec5b6780b7d4
(cherry picked from commit 8e96a794ac)
2019-04-10 17:04:48 -07:00
Anton Hansson
9ce8087afc Merge "Move board-info props to vendor/build.prop" into qt-dev 2019-04-10 12:39:24 +00:00
Anton Hansson
0643efcc5a Move board-info props to vendor/build.prop
This change moves the ro.build.require.* props extracted from
TARGET_BOARD_INFO_FILE to vendor/build.prop as opposed to
system/build.prop. These typically contain what bootloader and
baseband the build requires, which are very device-specific.

Bug: 130025216
Test: make, inspect props
Test: flash blueline
Change-Id: I48642485bdc853884d465d1fe00f2ceae69a4736
Merged-In: I48642485bdc853884d465d1fe00f2ceae69a4736
2019-04-10 12:38:59 +00:00
Dan Willemsen
2ab5c90e9c Add BUILD_BROKEN_USES_NETWORK
Some people apparently still talk to the network during their build.
Allow this temporarily with a BUILD_BROKEN_USES_NETWORK check.

Bug: 129992021
Test: attempt to talk to the network during the build with and without
      this flag
Change-Id: I45612ad6165f92f123847b4057338c0dfc3424ee
Merged-In: I45612ad6165f92f123847b4057338c0dfc3424ee
(cherry picked from commit 0586c65780)
2019-04-09 21:52:19 -07:00
TreeHugger Robot
a26d2189d1 Merge "Q Branch prefix is QP1A" into qt-dev 2019-04-10 04:31:28 +00:00
Ian Pedowitz
0f38bfccab Q Branch prefix is QP1A
Bug: 128934651
Bug: 129683166
Bug: 129943426
Test: source build/envsetup.sh && lunch aosp_blueline-userdebug
Test: m -j cts docs tests
Change-Id: I34c360a68c6721e8fef9e39be30c8af7bca90c39
2019-04-09 13:44:24 -07:00
Paul Scovanner
9231b34069 [DO NOT MERGE] Update Security String to 2019-06-01 Bug:129374896 Merged-In:1f8f84de6133f82df8210fa9214475d7c5aaa2f0
am: 3e8a1393a7

Change-Id: I2a8ce7b192ccb2bbf23c342c88da45d9c3b3f070
2019-04-09 13:06:43 -07:00