Commit graph

60759 commits

Author SHA1 Message Date
Julien Desprez
3d006cecfc Merge "Add tradefed-test-framework to the suites exported jar" am: f244a36850 am: f39239b3f7
Change-Id: If6ebf8b08e56ee7506ba129dc472531e50e365e8
2020-05-20 17:12:36 +00:00
Julien Desprez
f39239b3f7 Merge "Add tradefed-test-framework to the suites exported jar" am: f244a36850
Change-Id: I072dfcfac0dc5f97047f21dd1aa29ab390fa2b78
2020-05-20 17:00:13 +00:00
Julien Desprez
f244a36850 Merge "Add tradefed-test-framework to the suites exported jar" 2020-05-20 16:46:22 +00:00
Treehugger Robot
037160499e [automerger skipped] Merge "Move BOARD_EXT4_SHARE_DUP_BLOCKS to BoardConfigMainlineCommon.mk" am: 0e19b74112 am: f7d89045d4 -s ours
am skip reason: Change-Id I8c4c7c9b2982daf6bf02991b4e62a43b296d003e with SHA-1 de9dc88b59 is in history

Change-Id: I65dde426b8c119c5908f996bb2094592580fc72a
2020-05-20 14:10:09 +00:00
Treehugger Robot
f7d89045d4 Merge "Move BOARD_EXT4_SHARE_DUP_BLOCKS to BoardConfigMainlineCommon.mk" am: 0e19b74112
Change-Id: I3e47d1e371a8a0291ff003b6d03382b6b8f8aae5
2020-05-20 13:54:42 +00:00
Treehugger Robot
0e19b74112 Merge "Move BOARD_EXT4_SHARE_DUP_BLOCKS to BoardConfigMainlineCommon.mk" 2020-05-20 13:32:24 +00:00
Yo Chiang
7644587bcc Merge "Resolve module bitness for PRODUCT_PACKAGES" am: 7c147f7e29 am: b5e015fa9e
Change-Id: If01ecd77e857d826f085cdcab18dd1c4c7506ff2
2020-05-20 05:38:34 +00:00
Yo Chiang
b5e015fa9e Merge "Resolve module bitness for PRODUCT_PACKAGES" am: 7c147f7e29
Change-Id: I74a2a50ddf83df66f8f373d724d8417be8e44e45
2020-05-20 05:24:20 +00:00
Sasha Smundak
262491b0a8 Do not fail if unzip found no files to extract
Fixes: 157081961
Test: manual
Change-Id: Ib84c9fa1ceb45542ebcee14e048ecf2c1783c0c0
Merged-In: Ib84c9fa1ceb45542ebcee14e048ecf2c1783c0c0
2020-05-20 04:58:01 +00:00
Sasha Smundak
5761b525de Do not fail if unzip found no files to extract
Fixes: 157081961
Test: manual
Change-Id: Ib84c9fa1ceb45542ebcee14e048ecf2c1783c0c0
2020-05-20 04:56:05 +00:00
Yo Chiang
7c147f7e29 Merge "Resolve module bitness for PRODUCT_PACKAGES" 2020-05-20 04:55:22 +00:00
Daniel Rosenberg
32be864b0e Disable sdcardfs from emulated_stroage.mk
This sets external_storage.sdcardfs.enabled=0 from emulated_storage.mk,
which will disable sdcardfs on devices that are using casefolding and
quotas as sdcardfs replacements. This allows the device to use these if
sdcardfs is present in the kernel.

Bug: 155222498
Test: mount|grep "type sdcardfs" should find nothing after boot complete
      if external_storage.sdcardfs.enabled=0
Change-Id: Id0446a7cac5ac768afc3b3e046359fc4e945e554
2020-05-20 04:50:06 +00:00
Automerger Merge Worker
13d47c8dc6 Merge changes from topic "am-95716cb6521c4007b25e4c8f3c38c84b" into rvc-dev-plus-aosp
* changes:
  Merge changes I80341c2e,I0935f611,Ia805cb47 am: 3dbbfde296 am: 68e66200f2
  [automerger skipped] Add PLATFORM_VERSION_LAST_STABLE am: c969779a05 am: a5ab34f4a0 -s ours
2020-05-20 04:20:24 +00:00
Treehugger Robot
26a01be6bc Merge changes I80341c2e,I0935f611,Ia805cb47 am: 3dbbfde296 am: 68e66200f2
Change-Id: I0bd92a44d7507ef2f695a342878a37859b69fc82
2020-05-20 04:20:18 +00:00
Roland Levillain
f7d81b9b40 [automerger skipped] Introduce build variable OVERRIDE_TARGET_FLATTEN_APEX. am: 1dbb0c3d1e -s ours am: 7f81fd1403 -s ours
am skip reason: Change-Id Ib9ccae38430340de38e4758b4f55df2c65ea60d5 with SHA-1 b3a503df7f is in history

Change-Id: Ideb874f25ca4bed64f2dd1a56c3755fadb3fb6f5
2020-05-20 04:20:17 +00:00
Jiyong Park
99edce0c1e [automerger skipped] Add PLATFORM_VERSION_LAST_STABLE am: c969779a05 am: a5ab34f4a0 -s ours
am skip reason: Change-Id Iaeefb35137de01c6ea57115d8830dd9bc30eccba with SHA-1 25648e60b2 is in history

Change-Id: Ia5ad458db73f8ba32a8b9fb95f71ced178850899
2020-05-20 04:20:16 +00:00
Hongguang Chen
f23364d280 Add options to sign the prebuilt custom images.
The custom images are any images owned by OEMs and SoCs, oem images
mounted on /oem is an example. The oem images can be used to customize
devices for different carriers, like wallpaper, ringtones, and
carrier-specific apks. OEMs can generate multiple oem images, like
oem.img, oem-carrier1.img and oem-carrier2.img and flash different oem
images for different carriers. The oem images are only one case, OEMs
and SoCs can add more custom images and mount them to custom partitions.

This change enables custom images to be vbmeta.img chained partitions.
The following configuration in BoardConfig.mk is an exmaple. It has two
custom partitions: oem and test. They will be signed by different keys.
And they will be chained by vbmeta.img. The custom images here are
prebuilts, which can be built by `make custom_images` separately.
BOARD_AVB_<CUSTOM_PARTITION>_IMAGE_LIST should include all custom images
to apply AVB signing. And to every custom partition, one image whose
name is partition name must be added in its
BOARD_AVB_<CUSTOM_PARTITION>_IMAGE_LIST.

BOARD_CUSTOMIMAGES_PARTITION_LIST := oem test

BOARD_AVB_OEM_KEY_PATH := external/avb/test/data/testkey_rsa4096.pem
BOARD_AVB_OEM_ALGORITHM := SHA256_RSA4096
BOARD_AVB_OEM_ADD_HASHTREE_FOOTER_ARGS :=
BOARD_AVB_OEM_ROLLBACK_INDEX_LOCATION := 1
BOARD_AVB_OEM_PARTITION_SIZE := 5242880
BOARD_AVB_OEM_IMAGE_LIST := \
    device/xxxx/yyyy/oem/oem.img \
    device/xxxx/yyyy/oem/oem1.img

BOARD_AVB_TEST_KEY_PATH := external/avb/test/data/testkey_rsa2048.pem
BOARD_AVB_TEST_ALGORITHM := SHA256_RSA2048
BOARD_AVB_TEST_ADD_HASHTREE_FOOTER_ARGS :=
BOARD_AVB_TEST_ROLLBACK_INDEX_LOCATION := 2
BOARD_AVB_TEST_PARTITION_SIZE := 10485760
BOARD_AVB_TEST_IMAGE_LIST := \
    device/xxxx/yyyy/test/test.img \
    device/xxxx/yyyy/test/test1.img

To resign the custom images in the target zip file, the
avb_extra_custom_image_key, avb_extra_custom_image_algorithms and
avb_extra_custom_image_extra_args options are added to the
sign_target_files_apks tool too. The following test cases list some
examples about how to use them.

BUG: 154171021
Test: 1) "atest --host releasetools_test releasetools_py3_test -c"
  2) Build images by 'make dist', sign and validate target files.
   a) Test on dist w/ chained vbmeta_system and ome custom images
   sign_target_files_apks -d certs \
     --avb_extra_custom_image_key oem=oem_rsa4096.pem \
     --avb_extra_custom_image_algorithm oem=SHA256_RSA4096 \
     xxx-target_xxx.zip signed.zip
   validate_target_files.py signed.zip
   Flash image and boot up.
   Verify the oem images and vbmeta images in OUT and target zips by
   avbtool.

   b) Test on dist w/ chained vbmeta_system and oem and test custom images
   sign_target_files_apks -d certs \
     --avb_extra_custom_image_key oem=oem_rsa4096.pem \
     --avb_extra_custom_image_algorithm oem=SHA256_RSA4096 \
     --avb_extra_custom_image_extra_args oem=--do_not_generate_fec \
     --avb_extra_custom_image_key test=test_rsa4096.pem \
     --avb_extra_custom_image_algorithm test=SHA256_RSA4096 \
     xxx-target_xxx.zip signed.zip
   validate_target_files.py signed.zip
   Verify the oem, test images and vbmeta images in OUT and target zips
   by avbtool.

   c) Test on dist w/o chained partition.
   sign_target_files_apks -d certs xxx-target_xxx.zip signed.zip
   validate_target_files.py signed.zip
   Flash image and boot up.
   Verify the vbmeta images in OUT and target zips by avbtool.

Change-Id: Ifccfee5e8909697eef6ccda0cc352fa16a9f6db6
2020-05-20 04:10:00 +00:00
Treehugger Robot
68e66200f2 Merge changes I80341c2e,I0935f611,Ia805cb47 am: 3dbbfde296
Change-Id: Id8e59bc9dbc6527023adbb1e2bc79b710a61c804
2020-05-20 04:04:11 +00:00
Jiyong Park
a5ab34f4a0 Add PLATFORM_VERSION_LAST_STABLE am: c969779a05
Change-Id: I31262e1db291c91b3d2ace0cd0c90272982662c5
2020-05-20 04:04:08 +00:00
Roland Levillain
7f81fd1403 [automerger skipped] Introduce build variable OVERRIDE_TARGET_FLATTEN_APEX. am: 1dbb0c3d1e -s ours
am skip reason: Change-Id Ib9ccae38430340de38e4758b4f55df2c65ea60d5 with SHA-1 b3a503df7f is in history

Change-Id: I857709a0805622d6c16a44b393ab1f38cacaddee
2020-05-20 04:03:58 +00:00
TreeHugger Robot
cd33816ca5 [automerger skipped] Merge "support different boot partition sizes in aosp_arm64" into rvc-dev am: 27e8474d57 -s ours
am skip reason: Change-Id I66b57de91042bfd56ba54a3659843d8cf7873955 with SHA-1 903a1ca7e1 is in history

Change-Id: I256d9ab91bbd9bd611d9be91b664fdb29570eb9f
2020-05-20 03:49:30 +00:00
Treehugger Robot
3dbbfde296 Merge changes I80341c2e,I0935f611,Ia805cb47
* changes:
  Deprecate ADDITIONAL_DEFAULT_PROPERTIES
  Move most of the sysprop generation rules to sysprop.mk
  Add PLATFORM_VERSION_LAST_STABLE
2020-05-20 03:49:26 +00:00
TreeHugger Robot
27e8474d57 Merge "support different boot partition sizes in aosp_arm64" into rvc-dev 2020-05-20 03:26:56 +00:00
Bob Badour
1f6b2cf0d8 Merge "Revert "Delete deps-license target."" am: fe1328755d am: c052816a75
Change-Id: I500aba28c05bd75323c40eff339fd10ca6585dba
2020-05-20 02:57:40 +00:00
Bob Badour
c052816a75 Merge "Revert "Delete deps-license target."" am: fe1328755d
Change-Id: I646dcc7d6d407926e34e6691550da1841f0dbcc7
2020-05-20 02:44:42 +00:00
Bob Badour
fe1328755d Merge "Revert "Delete deps-license target."" 2020-05-20 02:16:06 +00:00
Bob Badour
233336e8a8 Revert "Delete deps-license target."
This reverts commit a553cc828e.

Reason for revert: atest has code that tries to build the target

Change-Id: I46902b3930a5a73aa3e5a15f29e0bb0246e59250
2020-05-20 02:14:04 +00:00
Treehugger Robot
e0795ba45b [automerger skipped] Merge changes from topic "nonab_pkg" am: b5ee0f0b57 am: 87a0c92ace -s ours
am skip reason: Change-Id Id3f8e4425b65176baf1b0ff1ee07ab3d820a3a7f with SHA-1 ae6e0d5d28 is in history

Change-Id: I570c6ac0f44bf417a83fb52d04e91369d236f8ae
2020-05-20 01:11:10 +00:00
Yifan Hong
ae221fbfd9 [automerger skipped] Support forcefully generating non-AB packages. am: 65afc07f9d am: 2e12b29cd3 -s ours
am skip reason: Change-Id I5e81eb161722e07ef50081b6a16685cbc9963ae2 with SHA-1 7169f754cc is in history

Change-Id: I110f1e72e54d99d82e785f69f9c6756267b70531
2020-05-20 01:11:07 +00:00
Remi NGUYEN VAN
0463fc6b96 [automerger skipped] Merge "Use NetworkStack on system image" into rvc-dev am: 5016b84b00 -s ours
am skip reason: Change-Id Ibc74edb88904f953a1e5e6ceef44c461f381c9cf with SHA-1 09153e244e is in history

Change-Id: I88be2451f4ae96d012302ee4b403c961706d97b2
2020-05-20 01:03:50 +00:00
Treehugger Robot
87a0c92ace Merge changes from topic "nonab_pkg" am: b5ee0f0b57
Change-Id: I2748519ca9bc1e6f7650bb6f35e7822cfb9bfcd2
2020-05-20 00:55:02 +00:00
Yifan Hong
2e12b29cd3 Support forcefully generating non-AB packages. am: 65afc07f9d
Change-Id: I0a9d871701505bf32e4a6df2f4cab83000fc4d32
2020-05-20 00:55:00 +00:00
Remi NGUYEN VAN
5016b84b00 Merge "Use NetworkStack on system image" into rvc-dev 2020-05-20 00:52:47 +00:00
Treehugger Robot
b5ee0f0b57 Merge changes from topic "nonab_pkg"
* changes:
  Use add_slot_suffix function in edify script
  Support forcefully generating non-AB packages.
2020-05-20 00:30:31 +00:00
TreeHugger Robot
9817fa2953 Merge "Fix the syntax in install-recovery.sh" into rvc-dev am: 581a943336
Change-Id: I00241508e40d7c3fb50d2bff6da376131d805682
2020-05-19 22:44:42 +00:00
TreeHugger Robot
581a943336 Merge "Fix the syntax in install-recovery.sh" into rvc-dev 2020-05-19 22:44:39 +00:00
Dan Shi
5dac983f9c [automerger skipped] Merge "Revert "Add vts related artifacts to vts-core package"" into rvc-dev am: e47836b0c6 -s ours
am skip reason: Change-Id I8245f1b7a4a74e133c0b7958e0f2908e4e8efd05 with SHA-1 c4fa187094 is in history

Change-Id: I83d8adc9fdc0d2e4c7d16eab8105f9fb942069e8
2020-05-19 22:44:16 +00:00
Dan Shi
e47836b0c6 Merge "Revert "Add vts related artifacts to vts-core package"" into rvc-dev 2020-05-19 22:25:44 +00:00
Yifan Hong
65afc07f9d Support forcefully generating non-AB packages.
Force generate a non-A/B update package when requested.

Bug: 154344887
Test: ota_from_target_files.py --force_non_ab ...
Test: apply it as well

Change-Id: I5e81eb161722e07ef50081b6a16685cbc9963ae2
(cherry picked from commit 7169f754cc)
Merged-In: I5e81eb161722e07ef50081b6a16685cbc9963ae2
2020-05-19 15:23:27 -07:00
Yifan Hong
bdb3201353 Use add_slot_suffix function in edify script
Whenever a device is retrieved from fstab, wrap it with
add_slot_suffix() if it has slotselect option.

Test: change fstab (changes boot image, which is a static partition),
      change system partition (a dynamic partition),
      generate incremental OTA with --force_non_ab and apply it on
      cuttlefish
Bug: 153581609
Change-Id: Id3f8e4425b65176baf1b0ff1ee07ab3d820a3a7f
(cherry picked from commit ae6e0d5d28)
Merged-In: Id3f8e4425b65176baf1b0ff1ee07ab3d820a3a7f
2020-05-19 15:23:27 -07:00
Treehugger Robot
c7d65744c4 Merge "support different boot partition sizes in aosp_arm64" am: def74b4c2b am: 3bfb87b96b
Change-Id: Iff0c4a70c7a3ed43d2f96a72a0dd16c4301386f0
2020-05-19 22:02:28 +00:00
Treehugger Robot
3bfb87b96b Merge "support different boot partition sizes in aosp_arm64" am: def74b4c2b
Change-Id: Ifb89214358958ab0c2f407b98cef676c78ad2f21
2020-05-19 21:41:08 +00:00
Steve Muckle
53226684b9 support different boot partition sizes in aosp_arm64
The different boot images in aosp_arm64 have different partition size
requirements. Add support for defining a partition size associated with
each boot image variant.

This support is limited to aosp_arm64 currently, which is built with
recovery-as-boot.

A previous version of this change did not update the boot-debug image
AVB logic with the required macro for multiple boot partition size
support. This is now required because the aosp-arm64 boot.img is
configured as a chained AVB partition.

Bug: 156036850
Bug: 155049180
Change-Id: I66b57de91042bfd56ba54a3659843d8cf7873955
Merged-In: I66b57de91042bfd56ba54a3659843d8cf7873955
2020-05-19 14:37:40 -07:00
Treehugger Robot
def74b4c2b Merge "support different boot partition sizes in aosp_arm64" 2020-05-19 21:30:07 +00:00
Tianjie
e55f62c971 Fix the syntax in install-recovery.sh
We recently modify the logic in install-recovery.sh to support
non-A/B updates on VAB launched devices. And the position of the
$(getprop ro.boot.slot_suffix) is misplaced for the recovery image.
For example:
"if ! applypatch --check EMMC$(getprop ro.boot.slot_suffix):/dev/block/recovery:SHA1"
should be:
"if ! applypatch --check EMMC:/dev/block/recovery$(getprop ro.boot.slot_suffix):SHA1"

Bug: 156979431
Test: rerun add_image_to_target_file, then validate_target_files
Change-Id: Id2d45e281151a46d66b37ea8fdb7b5cb4ae72e81
2020-05-19 13:44:26 -07:00
Dan Shi
a1082fb046 Revert "Add vts related artifacts to vts-core package"
This reverts commit 5e06288e7c.

Bug: 149249068
Test: build

Change-Id: I8245f1b7a4a74e133c0b7958e0f2908e4e8efd05
Merged-In: I8245f1b7a4a74e133c0b7958e0f2908e4e8efd05
2020-05-19 13:24:59 -07:00
Treehugger Robot
3264459841 Merge "Delete deps-license target." am: c2c427f6bb am: 724ea1f3b4
Change-Id: Ib774278b4818b0b9d0c9856b675cbb24c552b8aa
2020-05-19 18:25:10 +00:00
Treehugger Robot
724ea1f3b4 Merge "Delete deps-license target." am: c2c427f6bb
Change-Id: I0074c6b81e9ebf2221325b1fbacb0057a75bb742
2020-05-19 18:10:24 +00:00
Treehugger Robot
c2c427f6bb Merge "Delete deps-license target." 2020-05-19 17:56:53 +00:00
Jiyong Park
a1887f326c sign_apex.py respects hash algorithm
When sign_apex.py re-signs an apex, the hash algorithm is extracted and
it is used when re-packaging the file.

Bug: 155771970
Test: releasetools_py3_test doesn't regress
(some tests were failed, but they failed even without this change:
test_ApexApkSigner_apkKeyNotPresent (test_apex_utils.ApexUtilsTest) ... ERROR
test_ApexApkSigner_noApkPresent (test_apex_utils.ApexUtilsTest) ... ERROR
test_ApexApkSigner_noAssetDir (test_apex_utils.ApexUtilsTest) ... ERROR
test_ApexApkSigner_signApk (test_apex_utils.ApexUtilsTest) ... ERROR)

Change-Id: I996a33e0208d3dd3a04a31b8dafb27ef995297f2
2020-05-19 23:19:59 +09:00