Commit Graph

37834 Commits

Author SHA1 Message Date
TreeHugger Robot 6652dd9005 Merge "Updating the BUILD_ID to OC for oc-dev branch." into oc-dev 2017-06-13 19:43:02 +00:00
Tianjie Xu 9ac4cb0984 Fix duplicate 'META/care_map.txt' when calling add_img_to_target_files
In case the system/vendor image is updated for an A/B target file, we'll
delay the write of META/care_map.txt. Specifically, we'll run "zip -d"
to remove the old entry and then zip in the new one from tmp dir.

Bug: 62345693
Test: Run add_img_to_target_files.py on sailfish target files, and
care_map.txt is updated.

Change-Id: Id2f9997aac50c0740e6944d0d0d43d98f5fc6c29
2017-06-13 11:20:29 -07:00
Jeff Vander Stoep 0b3fc37d7e Build split file_contexts for recovery
am: 4ff042c4aa

Change-Id: If9ff1b6b2ed152333eeb92a83d9bdbbacc431ed2
2017-06-13 17:59:05 +00:00
Jeff Vander Stoep 4ff042c4aa Build split file_contexts for recovery
Bug: 62564629
Test: build and flash marlin. Successfully switch between regular
    and recovery modes

Change-Id: I67ae2f59ca1868cfe777de0d4f0c4e3c2d99329d
2017-06-13 15:39:29 +00:00
Dan Willemsen 2bd2a9d630 Merge "Apply ALLOW_MISSING_DEPENDENCIES to droiddoc template dir" am: cb07cb1aa7
am: cf8ac2a820

Change-Id: Ieef27917a409ff8682cb2159341876480b099d4b
2017-06-13 15:29:55 +00:00
Dan Willemsen cf8ac2a820 Merge "Apply ALLOW_MISSING_DEPENDENCIES to droiddoc template dir"
am: cb07cb1aa7

Change-Id: I984922749f69dad7bb04052655d14ad62316cd8d
2017-06-13 15:25:54 +00:00
Dan Willemsen cb07cb1aa7 Merge "Apply ALLOW_MISSING_DEPENDENCIES to droiddoc template dir" 2017-06-13 15:18:57 +00:00
Hung-ying Tyan a6b68e72b1 Revert "Revert "Move /default.prop to /system/etc/prop.default""
This reverts commit 88c9dddd0f.

Bug: 37815285
Bug: 62525809
Test: Tested with ag/2400523 and ag/2400524. Booted pixel phones,
      checked the location of prop.default, verified the symlink,
      checked a few properties via adb shell and manually tested
      a few apps (Camera, Maps etc).
      sign_target_files_apks.py was tested with:
      sign_target_files_apks -o -e DynamiteLoader.apk= -e DynamiteModulesA.apk= \
        -e DynamiteModulesB.apk= -e DynamiteModulesC.apk= -e DynamiteModulesD.apk= \
        -e GoogleCertificates.apk= out/dist/*-target_files-*.zip signed-target_files.zip
      Booted to recovery and ran 'adb sideload' successfully.

Change-Id: I2ddf287f42360d1a7c7a22f08e7b9e203e7e603a
2017-06-13 21:18:04 +08:00
Bowgo Tsai 3e599ead66 AVB: support chain partition signing
Current build system will include AVB metadata from each partition and
store them into /vbmeta partiton when BOARD_AVB_ENABLE is set, which makes
each partition tightly-coupled.

Add the support for 'chain partition':
  - The vbmeta of each partition is stored on the same partition itself.
  - The public key used to verify each partition is stored in /vbmeta.

For example, the following build variables are required to enable chain
partition for system partition:
  - BOARD_AVB_SYSTEM_KEY_PATH := path/to/system_private_key
  - BOARD_AVB_SYSTEM_ALGORITHM := SHA512_RSA8192
  - BOARD_AVB_SYSTEM_ROLLBACK_INDEX := 1
  - BOARD_AVB_SYSTEM_ROLLBACK_INDEX_LOCATION := 2

The corresponding settings will be added into META/misc_info.txt for
build_image.py and/or add_img_to_target_files.py:
  - avb_system_key_path=path/to/system_private_key
  - avb_system_algorithm=SHA512_RSA8192
  - avb_system_add_hashtree_footer_args=--rollback_index 1
  - avb_system_rollback_index_location=2

To enable chain partition for other partitions, just replace SYSTEM with
BOOT, VENDOR and/or DTBO in the build variables.

Also switch from  `avbtool make_vbmeta_image --setup_rootfs_from_kernel system.img ...`
to `avbtool add_hashtree_footer --image system.img --setup_as_rootfs_from_kernel...`
when BOARD_BUILD_SYSTEM_ROOT_IMAGE is true. This works for both chained
and no-chained:
  - chained: `avbtool add_hashtree_footer --setup_as_rootfs_from_kernel` will
    add dm-verity kernel cmdline descriptor to system.img
  - no-chained: `avbtool make_vbmeta_image --include_descriptors_from_image
    system.img` will include the kernel cmdline descriptor from system.img into
    vbmeta.img

Bug: 38399657
Test: `make` pass, flash images from $OUT and boot device without chain partitions
Test: `make` pass, flash images from $OUT and boot device with chain partitions
Test: `make dist` pass, flash images from TF.zip and boot device without chain partitions
Test: `make dist` pass, flash images from TF.zip and boot device with chain partitions
Test: follow the same steps in
      https://android-review.googlesource.com/#/c/407572/

Change-Id: I344f79290743d7d47b5e7441b3a21df812a69099
2017-06-13 17:45:10 +08:00
Dolly Dhariwal 14a9d76026 Updating the BUILD_ID to OC for oc-dev branch.
Bug: None
Test: Build and flashed AIO device
Change-Id: I0c87c33b8fb6cbaf71cdb90ce86097bfb31f4137
Merged-In: I53047dbc0b89c2b3afe5d2af3c0532968f60b893
2017-06-13 06:24:35 +00:00
Bowgo Tsai 7cd30041e9 Align size of vbmeta image to 4k boundary
Adding option "--padding_size 4096" when making vbmeta.img.

Bug: 38454093
Test: build vbmeta.img and check it's being padded.
Change-Id: Id3ba6bf9998755bae75ec8b272ceccf59f4b8666
2017-06-13 11:31:06 +08:00
Dan Willemsen 6402873d49 Apply ALLOW_MISSING_DEPENDENCIES to droiddoc template dir
Some of our minimal branches don't have the necessary droiddoc
templates, so don't cause a FindEmulator warning when the template dir
is missing and ALLOW_MISSING_DEPENDENCIES is set. The warnings will soon
be errors.

When the template directory is missing, ensure that the command doesn't
succeed by adding the directory into the dependency list. Passing a
missing directory doesn't cause an error otherwise, it just wouldn't use
the template.

Test: build-aosp_arm64.ninja is identical before and after this change
Test: Move away build/tools/droiddoc/templates-sdk; m -j libcore-docs
Change-Id: I122f3916b6ab348a5a98dcf2520992eda3655e26
2017-06-12 19:31:50 -07:00
Tao Bao fb13a3b9f4 Merge "Revert "Move /default.prop to /system/etc/prop.default"" into oc-dev
am: d4b25e481e  -s ours

Change-Id: I11773c0b8ed6727b0b225635f590337ec04dd06f
2017-06-12 19:57:16 +00:00
Tao Bao d4b25e481e Merge "Revert "Move /default.prop to /system/etc/prop.default"" into oc-dev 2017-06-12 19:39:54 +00:00
Tao Bao 88c9dddd0f Revert "Move /default.prop to /system/etc/prop.default"
This reverts commit fad00e4318.

init fails to read default.prop under recovery:
init: Couldn't load properties from /default.prop: Too many symbolic links encountered

Bug: 62525809
Change-Id: I133e9025693e3e01278ec73c8d08860fc89d314b
2017-06-12 17:00:42 +00:00
Isaac Chen 924e705c85 Fix audio policy configuration for generic targets
Changes in this CL:
1. Use ":=", instead of "+=", for PRODUCT_COPY_FILES so previous audio
policy related settings won't be overwritten.
2. Use basic audio policy XML files provided by audio team as default.

Bug: 62524944
Test: check if the XML files for audio policy configuration are under
      /system/etc and devices with generic system imagei, but without
      such configuration under /vendor/etc can boot with audio working.

Change-Id: I4ccffdfb131a9d2445d9c2f52a22ffcc97884479
2017-06-12 18:56:50 +08:00
Adam Seaton c5c1af423a Updating security string to 2017-08-05
am: d6e984f9e3

Change-Id: I0b15f09daedf3c57f479da7ccf126a6ca56c9b56
2017-06-09 20:14:27 +00:00
Adam Seaton d6e984f9e3 Updating security string to 2017-08-05 2017-06-09 10:50:47 -07:00
Paul Duffin c45b7e3d98 Added android.test.mock to PRODUCT_PACKAGES
Adds android.test.mock.jar to the /system/framework
directory. That will allow it to be dynamically included
with a uses-library manifest entry.

Bug: 30188076
Test: flash and check contents of /system/framework
Change-Id: I3ea0e558276176edd21e24c8337980c5c02a652e
2017-06-09 13:34:13 +01:00
Hung-ying Tyan 3fb7217336 Merge "Move /default.prop to /system/etc/prop.default" into oc-dev
am: fc00134c1e  -s ours

Change-Id: If1f0e8c8abc7ba434b2a6b4e512eb6db36bb783f
2017-06-09 08:12:10 +00:00
Hung-ying Tyan fc00134c1e Merge "Move /default.prop to /system/etc/prop.default" into oc-dev 2017-06-09 08:04:37 +00:00
Hung-ying Tyan fad00e4318 Move /default.prop to /system/etc/prop.default
This patch tries to fix the problem where the default properties need
to go with the system image especially on non-AB devices where
/default.prop is on the ramdisk image. A symlink is created at
/default.prop for backward compatibility.

Bug: 37815285
Test: Tested with ag/2376383. Booted pixel phones, checked the location
      of prop.default, verified the symlink, checked a few properties
      (via adb shell getprop) and manually tested a few apps (Camera,
      Maps etc).
      sign_target_files_apks.py was tested with:
      sign_target_files_apks -o -e DynamiteLoader.apk= -e DynamiteModulesA.apk= \
          -e DynamiteModulesB.apk= -e DynamiteModulesC.apk= -e DynamiteModulesD.apk= \
          -e GoogleCertificates.apk= out/dist/*-target_files-*.zip signed-target_files.zip

Change-Id: I1a9a2ba49c8252afc13ced3dea71253afbd3091e
2017-06-09 13:00:58 +08:00
Tao Bao ddb9391d6b Merge "Delay the write-back of misc_info in sign_target_files_apks.py." am: d6e8002734
am: 6da0f9c8fd

Change-Id: Ifbaea16ab19a30c74132319b199cc2f41c3a3bff
2017-06-08 22:34:22 +00:00
Adam Seaton 35cb152c58 [DO NOT MERGE] Updating Security String to 2017-08-05 on nyc-dev bug:62388772 am: 2b93753bc4 am: 8828ffc63e am: edda32c5e3 -s ours am: af114e0286 -s ours am: 332ef64b0e -s ours am: c56a72d5fc -s ours am: e4f93ecc22 -s ours
am: c41c875e40

Change-Id: Ib38cf38a4af75d573ec114c0f0162e0708ab0957
2017-06-08 22:32:31 +00:00
Adam Seaton 9f58c6ab5c [DO NOT MERGE] Updating Security String to 2017-08-01 on nyc-dev bug:62388772 am: a847c0b23c am: c486b5d047 am: 92c1ca1f5c -s ours am: 5cada70115 -s ours am: 525c88d2c8 -s ours am: d9109cc1c6 -s ours am: a66e843ded -s ours
am: e2f98a3f49

Change-Id: Ia6d0e906b99f7e014428685e3acc7d2cb93c9c31
2017-06-08 22:32:23 +00:00
Tao Bao 6da0f9c8fd Merge "Delay the write-back of misc_info in sign_target_files_apks.py."
am: d6e8002734

Change-Id: I51b8dc08fcfb483afa74654f553ee6d810470a5c
2017-06-08 22:32:22 +00:00
Adam Seaton c41c875e40 [DO NOT MERGE] Updating Security String to 2017-08-05 on nyc-dev bug:62388772 am: 2b93753bc4 am: 8828ffc63e am: edda32c5e3 -s ours am: af114e0286 -s ours am: 332ef64b0e -s ours am: c56a72d5fc -s ours
am: e4f93ecc22  -s ours

Change-Id: Icb54a96f3bc41251d70acf42464a4232be200c47
2017-06-08 22:30:37 +00:00
Adam Seaton e2f98a3f49 [DO NOT MERGE] Updating Security String to 2017-08-01 on nyc-dev bug:62388772 am: a847c0b23c am: c486b5d047 am: 92c1ca1f5c -s ours am: 5cada70115 -s ours am: 525c88d2c8 -s ours am: d9109cc1c6 -s ours
am: a66e843ded  -s ours

Change-Id: I0646b133e890c4f42ffe20d1b9273a808c027873
2017-06-08 22:30:32 +00:00
Adam Seaton 32535d9241 [DO NOT MERGE] Updating Security String to 2017-08-05 on nyc-dev bug:62388772 am: 2b93753bc4 am: 8828ffc63e am: edda32c5e3 am: 4f43543b11 am: 7801b3d4b6 -s ours
am: c012ed7db7

Change-Id: I34fa826c334116f6123437530c2d6a1d577e0bb7
2017-06-08 22:28:36 +00:00
Adam Seaton e4f93ecc22 [DO NOT MERGE] Updating Security String to 2017-08-05 on nyc-dev bug:62388772 am: 2b93753bc4 am: 8828ffc63e am: edda32c5e3 -s ours am: af114e0286 -s ours am: 332ef64b0e -s ours
am: c56a72d5fc  -s ours

Change-Id: I94cd4cfcded3eadbde4b0ca4e18c8dd907174c2f
2017-06-08 22:28:30 +00:00
Adam Seaton a66e843ded [DO NOT MERGE] Updating Security String to 2017-08-01 on nyc-dev bug:62388772 am: a847c0b23c am: c486b5d047 am: 92c1ca1f5c -s ours am: 5cada70115 -s ours am: 525c88d2c8 -s ours
am: d9109cc1c6  -s ours

Change-Id: Ifccd5223842b85ba689e9cf7d86e8c3f782d471a
2017-06-08 22:28:25 +00:00
Adam Seaton d7e2b3bd06 [DO NOT MERGE] Updating Security String to 2017-08-01 on nyc-dev bug:62388772 am: a847c0b23c am: c486b5d047 am: 92c1ca1f5c am: 93b5d26067 am: dbaa8cfaee -s ours
am: bdc526e833

Change-Id: I2b131fda4e1e403b4ef64fe7cd73cae923dd8a33
2017-06-08 22:28:23 +00:00
Adam Seaton c012ed7db7 [DO NOT MERGE] Updating Security String to 2017-08-05 on nyc-dev bug:62388772 am: 2b93753bc4 am: 8828ffc63e am: edda32c5e3 am: 4f43543b11
am: 7801b3d4b6  -s ours

Change-Id: I66f1d69ea99409328136b4d9b77f284382ed1535
2017-06-08 22:26:24 +00:00
Adam Seaton c56a72d5fc [DO NOT MERGE] Updating Security String to 2017-08-05 on nyc-dev bug:62388772 am: 2b93753bc4 am: 8828ffc63e am: edda32c5e3 -s ours am: af114e0286 -s ours
am: 332ef64b0e  -s ours

Change-Id: Icc1fb0c39bff8d6c03860c861e6560bf26e9ac37
2017-06-08 22:26:24 +00:00
Adam Seaton d9109cc1c6 [DO NOT MERGE] Updating Security String to 2017-08-01 on nyc-dev bug:62388772 am: a847c0b23c am: c486b5d047 am: 92c1ca1f5c -s ours am: 5cada70115 -s ours
am: 525c88d2c8  -s ours

Change-Id: I76fa61270e0175db6ba51f78c07b231c943387f0
2017-06-08 22:26:20 +00:00
Adam Seaton bdc526e833 [DO NOT MERGE] Updating Security String to 2017-08-01 on nyc-dev bug:62388772 am: a847c0b23c am: c486b5d047 am: 92c1ca1f5c am: 93b5d26067
am: dbaa8cfaee  -s ours

Change-Id: Ib5b3c252d0ee6e9d12edee8e44fd1154fa62370e
2017-06-08 22:26:20 +00:00
Treehugger Robot d6e8002734 Merge "Delay the write-back of misc_info in sign_target_files_apks.py." 2017-06-08 22:24:53 +00:00
Adam Seaton 7801b3d4b6 [DO NOT MERGE] Updating Security String to 2017-08-05 on nyc-dev bug:62388772 am: 2b93753bc4 am: 8828ffc63e am: edda32c5e3
am: 4f43543b11

Change-Id: I4efeaa885f6d5a7e7d09d69c4b6627be1fe71a52
2017-06-08 22:24:30 +00:00
Adam Seaton 332ef64b0e [DO NOT MERGE] Updating Security String to 2017-08-05 on nyc-dev bug:62388772 am: 2b93753bc4 am: 8828ffc63e am: edda32c5e3 -s ours
am: af114e0286  -s ours

Change-Id: Ie4d5456a8883b1f3e86af1204f0a627ddd0f9dbe
2017-06-08 22:24:27 +00:00
Adam Seaton dbaa8cfaee [DO NOT MERGE] Updating Security String to 2017-08-01 on nyc-dev bug:62388772 am: a847c0b23c am: c486b5d047 am: 92c1ca1f5c
am: 93b5d26067

Change-Id: I04be3f2332d926a4b6d3dfb0bcfc921b76e8d9a1
2017-06-08 22:24:25 +00:00
Adam Seaton 525c88d2c8 [DO NOT MERGE] Updating Security String to 2017-08-01 on nyc-dev bug:62388772 am: a847c0b23c am: c486b5d047 am: 92c1ca1f5c -s ours
am: 5cada70115  -s ours

Change-Id: I2d03b9c0bb0820cea78f4a34ac30a2696c312210
2017-06-08 22:24:21 +00:00
Adam Seaton 4f43543b11 [DO NOT MERGE] Updating Security String to 2017-08-05 on nyc-dev bug:62388772 am: 2b93753bc4 am: 8828ffc63e
am: edda32c5e3

Change-Id: Iebc23556477b796e6329efb5adaa1804d5adcb33
2017-06-08 22:20:25 +00:00
Adam Seaton af114e0286 [DO NOT MERGE] Updating Security String to 2017-08-05 on nyc-dev bug:62388772 am: 2b93753bc4 am: 8828ffc63e
am: edda32c5e3  -s ours

Change-Id: Ia51a28b186f06bc18c67c247b83e1525d702a62b
2017-06-08 22:20:23 +00:00
Adam Seaton 93b5d26067 [DO NOT MERGE] Updating Security String to 2017-08-01 on nyc-dev bug:62388772 am: a847c0b23c am: c486b5d047
am: 92c1ca1f5c

Change-Id: I115bf33d134b11d6d7790cda0bada7bb9588aa2a
2017-06-08 22:20:20 +00:00
Adam Seaton 5cada70115 [DO NOT MERGE] Updating Security String to 2017-08-01 on nyc-dev bug:62388772 am: a847c0b23c am: c486b5d047
am: 92c1ca1f5c  -s ours

Change-Id: Id2b8adc2a1839822fa3eefe3e197a6d5de02062a
2017-06-08 22:20:19 +00:00
Adam Seaton edda32c5e3 [DO NOT MERGE] Updating Security String to 2017-08-05 on nyc-dev bug:62388772 am: 2b93753bc4
am: 8828ffc63e

Change-Id: I568b77fd78359fc38c0be5085579df79bc2461b0
2017-06-08 22:18:24 +00:00
Adam Seaton 92c1ca1f5c [DO NOT MERGE] Updating Security String to 2017-08-01 on nyc-dev bug:62388772 am: a847c0b23c
am: c486b5d047

Change-Id: I25dcd76fcb3d76aa7783256fda220750b52acf7a
2017-06-08 22:18:20 +00:00
Adam Seaton 8828ffc63e [DO NOT MERGE] Updating Security String to 2017-08-05 on nyc-dev bug:62388772
am: 2b93753bc4

Change-Id: I2d0801ec72e4bdd4dfa59b40359c20491b485522
2017-06-08 22:16:24 +00:00
Adam Seaton c486b5d047 [DO NOT MERGE] Updating Security String to 2017-08-01 on nyc-dev bug:62388772
am: a847c0b23c

Change-Id: Ib9527d98d2b7a06fc5416079973352bc59984b5f
2017-06-08 22:16:20 +00:00
TreeHugger Robot 070b6d4df7 Merge "Unspecialize oc-dev-plus-aosp" into oc-dev-plus-aosp 2017-06-08 19:07:15 +00:00