Commit graph

7766 commits

Author SHA1 Message Date
hungweichen
bf11e34897 Remove PRODUCT_SUPPORTS_VERITY(_FEC) reference
PRODUCT_SUPPORTS_VERITY and PRODUCT_SUPPORTS_VERITY_FEC are going to be
deprecated since we removed VB 1.0 support. This change removes the
related references.

Bug: 241044073
Test: atest under build/make
Change-Id: Icee659ff0606cda1ab44e92372d86a394ddf1466
2022-08-11 08:12:58 +00:00
hungweichen
b2dd683421 Remove BOOT_SIGNER and PRODUCT_SUPPORTS_BOOT_SIGNER
These varaibles are going to be deprecated since we removed VB 1.0
support. This change removes the related references. boot.img can be
verified by a AVB 2.0 hash descriptor now.

Bug: 241044073
Test: atest under build/make
Change-Id: I267da2d591525ffc0cabf92791cf66a36ef8ff62
2022-08-11 08:12:58 +00:00
Arun Johnson
628d5665b1 Disable OMX for 64b_only devices.
bug: 239224744
Change-Id: I14364de9ef7fa3fcd6ce035eb596ac507be3e641
2022-08-03 21:36:41 +00:00
SzuWei Lin
606904d0b8 Remove TARGET_ENABLE_MEDIADRM_64 from BoardConfigGsiCommon.mk
The setting doesn't affect system image.

Bug: 239141283
Change-Id: I210add4cd76797bd181923ad8ec439cb96d0ac7c
2022-07-15 07:56:48 +00:00
SzuWei Lin
aba99adea4 Merge "Support dynamic 64-bit media service" 2022-07-14 00:20:03 +00:00
Elliott Hughes
449986300c Merge "Add support for only starting 64 bit zygote." 2022-07-13 19:57:47 +00:00
SzuWei Lin
951279493d Support dynamic 64-bit media service
64-bit GSI requires support both 64_32-bit and 64-bit devices at
the same time. Add a new variable TARGET_DYNAMIC_64_32_MEDIASERVER
to put mediaserver_dynamic.rc into GSI. Which starts 64-bit
mediaserver if ro.zygote is zygote64. Otherwise, it keeps the
original behavior to start 32-bit meidaserver.

Bug: 236664614
Test: make gsi_arm64-user; Check system/etc/init
Test: make gsi_arm-user; Check systen/etc/init
Test: cts-tradefed; run cts-on-gsi -m CtsViewTestCases
Change-Id: I74699ec5fafadcbe78a7fef6d10aaed752cd5afa
2022-07-06 12:06:46 +08:00
Almaz Mingaleev
f68794510f Merge "Remove tzdatacheck from system image." 2022-06-23 07:47:26 +00:00
Christopher Ferris
4876480992 Merge "Remove libbacktrace." 2022-06-22 17:07:33 +00:00
Chris Wailes
881e3a493f Merge "Add USAP related system properties" 2022-06-21 22:19:49 +00:00
Treehugger Robot
1b89a42778 Merge "Delete OneTimeInitializer AOSP app from the makefile." 2022-06-21 17:25:23 +00:00
Raman Tenneti
97c0af9500 Delete OneTimeInitializer AOSP app from the makefile.
Bug: 227214526
Test: presubmit
Change-Id: Id01f3f27a4d97497f1977b2327ff0d8fc52bc359
2022-06-17 15:20:33 -07:00
Christopher Ferris
d496e2a966 Remove libbacktrace.
Bug: 120606663

Test: Builds.
Change-Id: I0ee340f14f05d936272339cf47140202f019ccfb
2022-06-17 14:28:47 -07:00
Chris Wailes
197429ccb0 Add USAP related system properties
Test: Build; flash; set property; check device state
Bug: 161725679
Change-Id: I68fd45de51e20ad696e4a0e3201fb89031e97e5e
2022-06-16 23:39:23 +00:00
Jooyung Han
cdce3c46cc Remove AIDL libs from VNDK libs
The remaining AIDL libs are still in use by other VNDK libs.

Bug: 234181591
Test: m
Merged-In: I234a55f10c01ca1786eb5e6715a75ed72705ca50
Change-Id: I234a55f10c01ca1786eb5e6715a75ed72705ca50
2022-06-14 16:42:19 +09:00
Almaz Mingaleev
be8faafc1c Remove tzdatacheck from system image.
It is part of TZUvA feature, which was superseded by tzdata mainline
module(s).

Bug: 148144561
Test: see system/timezone
Change-Id: I5f67e34e9beb608d3cf3c4c072b268805865f6dd
Merged-In: I5f67e34e9beb608d3cf3c4c072b268805865f6dd
2022-06-13 11:43:56 +00:00
Jiakai Zhang
f5637f94fe Set TARGET_USES_64_BIT_BINDER for mainline_sdk.
Devices are all using 64 bit binder, and mainline_sdk should too.
According the comment here: https://cs.android.com/android/platform/superproject/+/master:build/make/target/board/BoardConfigMainlineCommon.mk;l=25;drc=6e7693f1597a0934833a72faf35e918dfbdb6ecd,
this flag is required even for non-64 bit devices.

`libbinder` doesn't compile on host with 32 bit binder.

Test: packages/modules/common/build/mainline_modules_sdks.sh \
        --build-platform-sdks-for-mainline --build-release=latest
Change-Id: I357ce42e88ad13ed259d573b9dd2bbfc27b82687
2022-06-10 14:35:53 +01:00
Kelvin Zhang
ade034f4e9 Remove fs utilities from init_boot module list
These modules aren't actually marked with "ramdisk_avaible: true",
so including them in the generic ramdisk module list don't do anything.
In addition, the generic ramdisk won't have enough space to store
all these modules, because each static executable would be 1MB in size, and init_boot is only 8MB.

Test: th
Change-Id: I589a43ca07d25ffc03a7b72516b329404a92d694
2022-05-26 18:00:32 +00:00
Kelvin Zhang
4117e78575 Merge "Install new snapuserd_ramdisk stem" 2022-05-25 15:39:17 +00:00
Treehugger Robot
7668e5a13c Merge "Remove "@1.0-" from android.system.suspend service's name" 2022-05-20 18:49:39 +00:00
Anton Hansson
eb483046c0 Merge "Revert^2 "Slim down the sdk product"" 2022-05-20 13:16:13 +00:00
Colin Cross
37823d1e6e Don't depend on art's boot-image-profile.txt in thin manifests
Use $(wildcard) to avoid referencing art/build/boot/boot-image-profile.txt
in thin manifests that don't have the art project.

Bug: 207813628
Test: tradefed build
Change-Id: I5d23834f4e8484d2c51b916b6e8395ee23315487
2022-05-18 14:15:59 -07:00
Frederick Mayle
cb577c2efc Remove "@1.0-" from android.system.suspend service's name
Bug: 232447926
Test: TH
Change-Id: If177707ae0459cd3e0521d3b8fba8417c5609c5f
Merged-In: If177707ae0459cd3e0521d3b8fba8417c5609c5f
2022-05-18 20:18:14 +00:00
Anton Hansson
6a6092cab0 Revert^2 "Slim down the sdk product"
8d4de90683

Change-Id: I34ffd88204cb0ee668abf26ecb7bb20f663ef7d9
2022-05-18 14:11:44 +00:00
Issei Suzuki
8d4de90683 Revert "Slim down the sdk product"
Revert submission 2096601-sdkprod

Reason for revert: DroidMonitor-triggered revert due to breakage https://android-build.googleplex.com/builds/build-details/8608272/targets/sdk, bug b/233036676
Reverted Changes:
I5ef671781:Update sdk parent
I940655c39:Slim down the sdk product
I926d520ce:Update sdk parent

Change-Id: I16953ba601a22b469c312dc481c45ec351ac8cbc
2022-05-18 11:36:23 +00:00
Anton Hansson
af94854296 Slim down the sdk product
The sdk_phone_armv7 product is designed to build system images, which
adds unnecessary dependencies and enables unnecessary checks (such as
verifying dexpreopt artifacts).

Bug: 205008975
Test: m sdk sdk_repo dist && diff android-sdk.zip (only build.prop diffs)
Change-Id: I940655c39a3ae58839521416abafaf461df44921
2022-05-12 22:41:02 +00:00
Kelvin Zhang
823d695d3a Install new snapuserd_ramdisk stem
This installs snapuserd to /system/bin/snapuserd_ramdisk instead of
/system/bin/snapuserd

Test: th
Bug: 219841787
Change-Id: I517e251bf1f895b9de993ec7e5f57f11205172c8
2022-05-11 11:30:26 -07:00
Treehugger Robot
7b90489e27 Merge "Add android.hardware.usb-V1 to vndk" 2022-04-27 16:21:29 +00:00
Martin Stjernholm
0f96329283 Merge "Add a product for building linux_bionic in --soong-only mode." 2022-04-25 16:54:49 +00:00
Badhri Jagan Sridharan
639593a3e4 Add android.hardware.usb-V1 to vndk
Bug: 200993386

Change-Id: Ibb328d9080c7879d9fc097039fcc9af18640937f
Merged-In: Ibb328d9080c7879d9fc097039fcc9af18640937f
(cherry picked from commit d67c8e4569)
2022-04-25 05:25:06 +00:00
Martin Stjernholm
2d068b59e6 Add a product for building linux_bionic in --soong-only mode.
Modelled after the mainline_sdk product.

Test: build/soong/soong_ui.bash --make-mode --soong-only \
        SOONG_ALLOW_MISSING_DEPENDENCIES=true \
        TARGET_PRODUCT=linux_bionic com.android.art.host
Bug: 31559095
Bug: 229123823
Change-Id: I6051d21cc4bae561e987561ddad5f1ec5435c4ca
2022-04-20 16:58:29 +01:00
SzuWei Lin
97064c53ff Add boot AVB key setting to GSI
Signing tool assumes GSI targets has boot.img and get error without
these settings.

Bug: 229814765
Change-Id: I1e8e7f6375e396e1c2feb858b97e7d27dc5a2dec
2022-04-20 07:20:45 +00:00
Christopher Ferris
66b6fd6049 Add support for only starting 64 bit zygote.
Added code to support a single system image that can start the
64 bit zygote only, or both the 64 bit and 32 bit zygote. By
default, the system will default to 64 bit only.

For this image, all abilist properties are only present in the
vendor partition. All other copies of these properties are deleted.

Bug: 227482437

Test: Verified that secondary doesn't start with same disk image
Test: with ro.zygote set to zygote64 and abilists set appropriately.
Test: Verified that secondary does not start when restarting netd.
Test: with ro.zygote set to zygote64_32 and abilists set appropriately.
Test: Verified that secondary does start when restarting netd.
Test: Verified that a 64 bit device only starts the primary.
Test: Verified that a 32 bit device only starts the primary.
Change-Id: Ifc6413cecc4df8ba041699f7d0b10786d1926d64
2022-04-11 14:18:58 -07:00
Treehugger Robot
ff15a27bd7 Merge "Non-module targets." 2022-04-11 19:42:29 +00:00
Bob Badour
3a0f0c157e Non-module targets.
Bug: 151177513
Bug: 213388645
Bug: 210912771

Test: m droid dist reportmissinglicenses

Change-Id: Ia7cddef9748f6c036a2fc7539dad717ebc131f7c
2022-04-07 22:03:29 -07:00
SzuWei Lin
0c791bedb4 Support building EROFS for GSI targets
The EROFS is planned to replace the ext4 as the file system format
of readonly partitions. This patch is enabling the ability to
build GSI with EROFS. The usage is

  $ GSI_FILE_SYSTEM_TYPE=erofs make -j

Bug: 227552340
Test: lunch gsi_arm64-user; GSI_FILE_SYSTEM_TYPE=erofs make -j
Test: Verify the file system format of system.img
Change-Id: Ie815002c677d099c4db0ab7ca22db16ac6123659
2022-04-07 07:11:24 +00:00
Martin Stjernholm
47dcbeaefb Build modules from source for module products.
This overrides the branch default
(BRANCH_DEFAULT_MODULE_BUILD_FROM_SOURCE) if it is set to use
prebuilts.

Test: build/soong/soong_ui.bash --dumpvar-mode MODULE_BUILD_FROM_SOURCE
  returns false with BRANCH_DEFAULT_MODULE_BUILD_FROM_SOURCE:=false
  in internal
Test: env TARGET_PRODUCT=module_arm64 \
      build/soong/soong_ui.bash --dumpvar-mode MODULE_BUILD_FROM_SOURCE
  returns true with BRANCH_DEFAULT_MODULE_BUILD_FROM_SOURCE:=false
  in internal
Test: env TARGET_PRODUCT=mainline_modules_x86 \
      build/soong/soong_ui.bash --dumpvar-mode MODULE_BUILD_FROM_SOURCE
  returns true with BRANCH_DEFAULT_MODULE_BUILD_FROM_SOURCE:=false
  in internal
Test: env TARGET_PRODUCT=redfin \
      build/soong/soong_ui.bash --dumpvar-mode MODULE_BUILD_FROM_SOURCE
  returns false with BRANCH_DEFAULT_MODULE_BUILD_FROM_SOURCE:=false
  in internal
Bug: 222723757
Change-Id: I0faea006b0e95eff40bbfbe00cc74ba5985beeba
2022-03-30 18:16:51 +01:00
Kelvin Zhang
8a7277df41 Remove snapuserd from vendor ramdisk
When BOARD_MOVE_RECOVERY_RESOURCES_TO_VENDOR_BOOT is set,
snapuserd.recovery will be installed to vendor ramdisk, which we don't
want. To remove snapuserd from vendor ramdisk, remove
snapuserd.recovery. And only include it if dedicated recovery partition
is enabled. For non-dedicated recovery case, boot partition contains
snapuserd.

Test: th
Test: acloud create --local-image --local-instance, install OTA, reboot
Change-Id: Ib8173f68a1f43b736fe609977a36ad4851e0c367
2022-03-24 10:43:37 -07:00
Treehugger Robot
00ba4d5ea0 Merge "Remove iorapd from base product packages" 2022-03-22 04:09:42 +00:00
Treehugger Robot
f16854d5f8 Merge "Re-land "Enable CFI for Bluetooth in new home"" 2022-03-21 15:02:11 +00:00
Treehugger Robot
ed21d0f56a Merge "Roll-forward the VNDK snapshot list of GSI to 32" 2022-03-18 09:09:35 +00:00
Yi-yo Chiang
1d7c7f674e Roll-forward the VNDK snapshot list of GSI to 32
Bug: 216414337
Test: Presubmit
Merged-In: Ic6cec82357cec8f4ad7bee62a4eaf2f7685b730f
Change-Id: I76026d6f518c51966bc652eeb617b61967af77a7
2022-03-18 04:50:48 +00:00
Myles Watson
d0a9ac08b9 Re-land "Enable CFI for Bluetooth in new home"
This reverts commit 2b0dd3bcbd.

Reason for revert: Fix landed at CL # 2029417
Bug: 221893030
Test: cert/run
Tag: #gd-refactor

Change-Id: I22799c8f898233851a5f2ae54add8e4f71541c94
2022-03-17 16:44:06 +00:00
Bram Bonné
ce8629fdbf Merge "Cherry pick sdk_sandbox dev keys." 2022-03-17 12:31:30 +00:00
Beth Thibodeau
cdd28862c3 Merge "Revert "Enable CFI for Bluetooth in new home"" 2022-03-17 00:49:07 +00:00
Beth Thibodeau
2b0dd3bcbd Revert "Enable CFI for Bluetooth in new home"
This reverts commit 6c7cce123c.

Reason for revert: DroidMonitor: Potential culprit for b/225059300 - verifying through ABTD before revert submission. This is part of the standard investigation process, and does not mean your CL will be reverted

Change-Id: I0f790404ba95ec2ba343c31faa58f4eb7c198758
2022-03-17 00:21:02 +00:00
Treehugger Robot
21b35496ee Merge "Enable CFI for Bluetooth in new home" 2022-03-16 20:34:04 +00:00
Myles Watson
6c7cce123c Enable CFI for Bluetooth in new home
Bug: 221893030
Test: cert/run
Tag: #gd-refactor
Change-Id: I34d8749d200de04b68f7ad9bd5b49b06dddc7841
2022-03-16 10:03:23 -07:00
Patrick Rohr
33b6aaff5e Merge "Remove ethernet-service jar dependency." 2022-03-16 16:03:30 +00:00
Bram Bonne
029dffaf72 Cherry pick sdk_sandbox dev keys.
Test: make, boot

Bug: 224796470
Bug: 203670791
Bug: 220320098

Merged-In: Ib0cdf7786c7f74cf294c54187649114e8ec6d315
Merged-In: I3f757c7e3e81c2ac31cd623eae68f7778bf3bafa
Change-Id: I70d6a745b8b2fc9ba68791caae2e83f8eb74c645
2022-03-16 15:39:41 +01:00