Commit Graph

20515 Commits

Author SHA1 Message Date
android-build-team Robot
888e632a2a Version bump to QP1A.190612.003 [core/build_id.mk]
Change-Id: Id5ecb99b2033b043b0411872fbc6fcb4bff99304
2019-06-12 23:00:00 +00:00
android-build-team Robot
70ecb703e6 Make change and version bump to QP1A.190612.002
Change-Id: Ic201ce7a961f8ff66a508ede1476b4b98f41485a
2019-06-12 03:54:57 +00:00
android-build-team Robot
4529650f26 Make change and version bump to QP1A.190612.001
Change-Id: I400aa0cbcfb157a044e5c2268e9c916362190a27
2019-06-12 03:17:14 +00:00
android-build-team Robot
64f473826d Make change and version bump to QP1A.190611.001
Change-Id: I9ffe8ad056942aa04314d5bee2a94df3650cac7f
2019-06-11 03:15:25 +00:00
android-build-team Robot
544e95e83f Make change and version bump to QP1A.190610.001
Change-Id: Ie8dd4efd89943b10a53fd8918db8b2a4cfd46586
2019-06-09 23:16:29 +00:00
android-build-team Robot
b520db13f9 Make change and version bump to QP1A.190609.001
Change-Id: I912be523c90599636dbbbad2117a8e2762adb524
2019-06-08 23:16:24 +00:00
android-build-team Robot
c609f1ebb7 Version bump to QP1A.190606.002 [core/build_id.mk]
Change-Id: I95b0758241cc0f8b5ef09b8d2aaeabc1803fb553
2019-06-07 01:59:05 +00:00
android-build-team Robot
d1447629d9 Make change and version bump to QP1A.190606.001
Change-Id: Icac4a2d2978fc5941c4c5e0c4874ea59d635be1a
2019-06-06 06:52:04 +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
5f27d3c100 Make change and version bump to QP1A.190605.001
Change-Id: I6b7d95613f136840aafb9b1ef137734fa1af2e67
2019-06-05 03:17:19 +00:00
android-build-team Robot
cadeadf764 Version bump to QP1A.190604.002 [core/build_id.mk]
Change-Id: Ifff361e7dc5e4ebe05e2bcd7849a1ba168371085
2019-06-04 19:13:36 +00:00
android-build-team Robot
f0d815f176 Make change and version bump to QP1A.190604.001
Change-Id: Ic4ed77870364b2f43082d25a88f1af81a0a741bd
2019-06-04 03:17:06 +00:00
android-build-team Robot
8a8881fac8 Make change and version bump to QP1A.190603.001
Change-Id: I671ec9a0eae1be75b6755219c1d57f1da99e60c6
2019-06-02 23:16:32 +00:00
android-build-team Robot
6e387b85ed Make change and version bump to QP1A.190602.001
Change-Id: Iafeabd47b4a5426e0f1f1a0441bed9e255d61683
2019-06-01 23:21:26 +00:00
android-build-team Robot
287a102868 Version bump to QP1A.190530.004 [core/build_id.mk]
Change-Id: I9aa6eaab86146653620a5d349755f357fceb2ee9
2019-05-31 18:39:46 +00:00
android-build-team Robot
997eb1fc76 Version bump to QP1A.190530.003 [core/build_id.mk]
Change-Id: Iff6c5a9e247e9710bcc3c3f2f77479533fcc4383
2019-05-31 02:50:46 +00:00
android-build-team Robot
5a6501cdb2 Version bump to QP1A.190530.002 [core/build_id.mk]
Change-Id: I2c772dbfc79c48837bbb24abd582b5a0f6ccd8ac
2019-05-30 20:03:09 +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
711d58a3df Make change and version bump to QP1A.190530.001
Change-Id: Ia5716c6eb80c15e2fbf8f7366690af21226021b4
2019-05-30 03:18:47 +00:00
android-build-team Robot
525ac92ea6 Version bump to QP1A.190529.003 [core/build_id.mk]
Change-Id: Ie03275169a2f525f932c89f4350a46366ad2179b
2019-05-29 21:32:53 +00:00
android-build-team Robot
901cf49ade Version bump to QP1A.190529.002 [core/build_id.mk]
Change-Id: I3bcdbce0111e659b2132639f9efb46dbb2a38dfc
2019-05-29 20:46:47 +00:00
android-build-team Robot
7fe1a77688 Make change and version bump to QP1A.190529.001
Change-Id: I067f073d9d19bba4d22f548f4868168eeb470d5e
2019-05-29 03:19:03 +00:00
android-build-team Robot
27f155370c Version bump to QP1A.190528.002 [core/build_id.mk]
Change-Id: I7439452e621476465bf6250d322de69d43ef0c44
2019-05-28 23:05:57 +00:00
android-build-team Robot
b40885b606 Make change and version bump to QP1A.190528.001
Change-Id: I0df681db6504ee1f1abec2297af83c5269714426
2019-05-28 03:17:48 +00:00
android-build-team Robot
edfade219c Make change and version bump to QP1A.190527.001
Change-Id: Ia171033ea5baa789be272e96fe3db35d7a4e69b9
2019-05-26 23:19:21 +00:00
android-build-team Robot
53b09b43d0 Make change and version bump to QP1A.190526.001
Change-Id: I498bbc60a1a112b38c97aefd055bdf7f437acc7a
2019-05-25 23:20:55 +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
9466226aa7 Make change and version bump to QP1A.190523.001
Change-Id: I9537a35ec231ee533e9504e22ceff95410ede2d4
2019-05-23 03:17:15 +00:00
android-build-team Robot
1f08610bc2 Version bump to QP1A.190522.002 [core/build_id.mk]
Change-Id: I74a62fd102dc69ad65a7b6a491dfcc136947fd5d
2019-05-23 00:27:15 +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
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
febea1fe3c Make change and version bump to QP1A.190522.001
Change-Id: I3c29339c46c616374f42a28227f8939538afd128
2019-05-22 03:18:34 +00: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
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
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
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
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
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
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
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
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
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
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
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