Commit Graph

9305 Commits

Author SHA1 Message Date
Inseob Kim
b97c96b4b3 Revert^6 "Use Soong-built system/build.prop"
0b2f48f0b2

Change-Id: I5d89d26945a3ab94f102633ccffa7622b5f99469
2024-07-31 02:00:41 +00:00
Liana Kazanova
0b2f48f0b2 Revert^5 "Use Soong-built system/build.prop"
82b8062a90

Change-Id: I25acc66023397e67c009bea26623260f828fc0b9
2024-07-30 19:14:30 +00:00
Inseob Kim
e72dcd549a Merge changes from topic "revert-3195812-revert-3195644-revert-3195637-revert-3184480-system_build_prop_soong-BZIDUTEOOC-KRUETCBWUR-TUHZPHUVFJ-XYILSUPUOA" into main
* changes:
  Revert^4 "Use Soong-built system/build.prop"
  Revert "Revert "Revert^2 "Add more variables for system/build.pr..."
2024-07-30 03:51:03 +00:00
Nelson Li
e63be2a724 Add HOST_PREFER_32_BIT to Soong Config and move art-tools to product configuration.
This change accomplishes two things:

Adds `HOST_PREFER_32_BIT` to Soong config variables:
The `HOST_PREFER_32_BIT` environment variable is frequently used in
Android.mk files within the art/ directory. By adding it to
soong_config_variable, we make it accessible to the Soong build system,
which will be essential when converting art modules to Android.bp.

Moves `art-tools` to product configuration:
Originally, `art-tools` was a phony target added to
PRODUCT_HOST_PACKAGES. This approach is incorrect because
PRODUCT_HOST_PACKAGES should only contain actual modules, not phony
targets. We are addressing this by converting the dependencies and
conditional statements (ifeq) within `art-tools` into
PRODUCT_HOST_PACKAGES entries in base_system.mk.

Bug: 346702835
Test: m -j; Then, check related dependencies build in the system.
Change-Id: Iab252dea71c9df9d75f2701b33d3cd4d391e7f5d
2024-07-26 12:57:41 +08:00
Inseob Kim
82b8062a90 Revert^4 "Use Soong-built system/build.prop"
70e8a1233c

Change-Id: I27c7b4b1deee0e10416d9d53820e48a25f8e26f1
2024-07-25 10:58:08 +00:00
Pechetty Sravani (xWF)
70e8a1233c Revert^3 "Use Soong-built system/build.prop"
7fa37d8e04

Change-Id: I563eb2268623fafa16d6a9bd59f79d38268cd650
2024-07-25 09:21:09 +00:00
Inseob Kim
7fa37d8e04 Revert^2 "Use Soong-built system/build.prop"
44fe21d315

Change-Id: I105c8759dc47a52e16443550650edceae8d4e4fe
2024-07-25 03:27:49 +00:00
Inseob Kim
44fe21d315 Revert "Use Soong-built system/build.prop"
Revert submission 3184480-system_build_prop_soong

Reason for revert: breaks ndk and mainline build 

Reverted changes: /q/submissionid:3184480-system_build_prop_soong

Change-Id: I3a04f39f3093e842e90947479cbe02bcfcd2ff14
2024-07-25 02:46:11 +00:00
Inseob Kim
63ea18a0c1 Use Soong-built system/build.prop
ADDITIONAL_SYSTEM_PROPERTIES and system related code in sysprop.mk and
sysprop_config.mk are removed since they are obsolete.

Bug: 322090587
Test: boot
Test: compare build.prop before and after
Change-Id: I4e5112b44c8446071e045813725b2364eb2f3ff1
2024-07-24 17:16:49 +09:00
Treehugger Robot
eb41879e1f Merge "Add BOARD_PERFSETUP_SCRIPT as a soong config variable" into main 2024-07-24 01:25:40 +00:00
Sid Nayyar
8afaf50faf Merge "Add kernel lifetimes and approved OGKI builds configs to GSI" into main 2024-07-23 16:32:58 +00:00
yangbill
90b90af5f6 Add BOARD_PERFSETUP_SCRIPT as a soong config variable
This variable is used to customize different perf script used by
perf-setup under platform_testing/scripts/perf-setup/.
This CL also add perf-setup.sh by default installed for eng and
userdebug build.

Bug: 343133111
Test: . build/envsetup.sh; lunch aosp_akita-trunk_staging-userdebug;\
      m perf-setup
Test: . build/envsetup.sh; lunch aosp_panther-trunk_staging-userdebug; \
      m perf-setup
Test: . build/envseup.sh; lunch aosp_cf_x86_64_phone-trunk_staging-userdebug; \
      m perf-setup
Change-Id: I0f81f5296aa59bef5b5d608a6cfda6d8b05b4e0f
2024-07-23 02:49:41 +00:00
Treehugger Robot
a6fe9e7ebd Merge "Remove PRODUCT_SHIPPING_API_LEVEL in assemble_vintf" into main 2024-07-23 01:57:09 +00:00
Parth Sane
01e6b4bc51 Merge "Export the libbinder flag to Android.bp" into main 2024-07-22 12:22:05 +00:00
Sid Nayyar
0ddd61a73f Add kernel lifetimes and approved OGKI builds configs to GSI
These kernel configs are required for end-of-life enforcement and OGKI
compliance verification VTS tests.

Bug: 338636324
Bug: 342094847
Test: manually built and flashed on device, device had config files
Change-Id: Ia1f94ba19bab1f2e3b129827ad5634023290dbc5
2024-07-21 09:17:57 +00:00
Christopher Ferris
7064db2a19 Replace PRODUCT_DISABLE_SCUDO with MALLOC_LOW_MEMORY.
The PRODUCT_DISABLE_SCUDO only removes scudo from the list of
sanitizers. It doesn't change the allocator to be used.

Instead use MALLOC_LOW_MEMORY := true, which causes a device
to use a low memory version of the allocator.

Bug: 318756974

Test: Treehugger.
Change-Id: Idaf57cfa4fa723ce8d7f285b2bad8ec29059f0df
2024-07-19 21:38:52 +00:00
Ashok Mutyala
bfd217bb0f Remove PRODUCT_SHIPPING_API_LEVEL in assemble_vintf
No longer handling PRODUCT_SHIPPING_API_LEVEL

Test: Build Success
Change-Id: I91715290d556ad8fd24a59ed1cf2a4930293bf53
2024-07-19 02:57:48 +00:00
Parth Sane
560884d4af Export the libbinder flag to Android.bp
Note that the namespace is "libbinder".

Bug: 333854840
Test: N/A
Flag: RELEASE_LIBBINDER_CLIENT_CACHE
Change-Id: Iecfb62c14685afcce72cf89ad61536efd2d17e31
2024-07-18 14:24:01 +00:00
Treehugger Robot
3a2d9d2c50 Merge "Copy odex files from system_other to data/dalvik-cache on first boot" into main 2024-07-16 23:02:20 +00:00
Spandan Das
4388643d21 Copy odex files from system_other to data/dalvik-cache on first boot
This is currently not the default behavior. products opt-in by
setting ro.cp_system_other_odex=1 (with cuttlefish being the only
product family in internal main that sets this).

With https://r.android.com/3144182, the odex files of system_ext and
product are now installed in system_other. Since the odex files are not
copied to /data, it triggers dexopt on device, which slows down first
boot performance.

This CL changes makes cp_system_other_odex=1 in
build/make/target/product/runtime_libart.mk. This file is inherited by
internal google products and external OEMs, and ensures that the odex
files are copied from system_other to /data/dalvik-cache on first boot.

Test: lunch oriole-trunk_staging-userdebug && get_build_var
PRODUCT_VENDOR_PROPERTIES # verified that this property is set

Test: In logcat, found the following match for `CalendarGooglePrebuilt`
(a /product app)
```
Successfully loaded /data/dalvik-cache/arm64/product@app@CalendarGooglePrebuilt@CalendarGooglePrebuilt.apk@classes.dex with executable: 0
/data/dalvik-cache/arm64/product@app@CalendarGooglePrebuilt@CalendarGooglePrebuilt.apk@classes.dex is kOatUpToDate with filter verify
Dexopt result: [packageName = com.google.android.calendar] DexContainerFileDexoptResult{dexContainerFile=/product/app/CalendarGooglePrebuilt/CalendarGooglePrebuilt.apk, primaryAbi=true, abi=arm64-v8a, actualCompilerFilter=verify, status=SKIPPED, dex2oatWallTimeMillis=0, dex2oatCpuTimeMillis=0, sizeBytes=0, sizeBeforeBytes=0, extendedStatusFlags=[]}

```
Bug: 349083274
Bug: 343367700

Change-Id: I42eda6742adcce7caccb1f2302578c01df8a24fd
2024-07-16 18:50:32 +00:00
Yeabkal Wubshit
4bf41fda53 Include Wear flag values in sdk builds
Wear APIs are currently not being included in sdk builds, since Wear
flags are not part of the default set of flags read by the build system.
To mitigate this, we are explicitly including Wear flags in the list of
flags processed for sdk builds.

Bug: 350775600
Test: sdk builds contain Wear flags
Change-Id: I9e78a7f4282fa80a2ea30cbbc358c8e45ced0a9e
2024-07-15 17:55:05 +00:00
Kelvin Zhang
2421247136 Add owners for build/make/target/product/virtual_ab_ota
Test: th
Bug: 352538699
Change-Id: Id79ff979aeb13fc8b9de7505f25f90e5cf12551b
2024-07-11 09:28:20 -07:00
Justin Yun
d13b9a24bc Move otacerts module from Android.mk to Android.bp
Remove the otacerts module defined in Android.mk. Instead, provide
variables to soong.

Bug: 335364209
Test: Define "PRODUCT_DEFAULT_DEV_CERTIFICATE := \
                 build/make/target/product/security/testkey" and
      m aosp_cf_system_x86_64
Change-Id: I99a484e04984da8bd7f58deecd90c880de16fd71
2024-07-04 14:49:23 +09:00
Treehugger Robot
f3fa5d5bbc Merge "Revert "Remove non existent snapuserd.recovery package"" into main 2024-07-02 20:07:38 +00:00
David Anderson
b3f0337ae6 Revert "Remove non existent snapuserd.recovery package"
This reverts commit 48a8f59607.

Reason for revert: b/349287459

Change-Id: I5835cc025b37efca4d6294abf4aefd7148ddfd65
2024-07-02 03:30:05 +00:00
Justin Yun
c5f7f80416 Replace PRODUCT_COPY_FILES with soong module
Include android.software.credentials.prebuilt.xml prebuilt_etc module
instead of using PRODUCT_COPY_FILES.

Bug: 345373198
Test: See if android.software.credentials.xml is installed in
      system/etc/permissions
Change-Id: Ia5519d1650b994f380aa4e31042139af999e49a7
2024-06-28 14:18:20 +09:00
Treehugger Robot
e6370eaecd Merge "release config is now protobuf" into main 2024-06-27 01:21:49 +00:00
LaMont Jones
f982547c1b release config is now protobuf
Use `release_config_map.textproto` instead of relying on platform/build
to intuit that for us.

Bug: 328495189
Flag: build.RELEASE_BUILD_FLAGS_IN_PROTOBUF
Test: manual, TH
Ignore-AOSP-First: resolving automerger conflict
Merged-In: Ia3ae6787183208a216dc4ea26c2fc3a9e4f56054
Change-Id: I4573cc04c8bf3116e1a8b728b819b09d6b3a87a3
2024-06-26 12:15:12 -07:00
Reema Bajwa
cc589fada5 Enable Credential Manager for all handheld devices
Bug: 345373198
Test: Cts

Change-Id: I54ec933aaacef5c313dada751cd68d303a7cb0b7
2024-06-26 16:44:30 +00:00
Justin Yun
db07c59d96 Include soong modules instead of using PRODUCT_COPY_FILES
The xml files are defined as prebuilt_etc modules. Use those modules
instead of copying them manually with PRODUCT_COPY_FILES.

Bug: 314933937
Test: m aosp_cf_system_x86_64
Change-Id: I97569381a29ade620584b96b20908c514a07e981
2024-06-24 18:18:14 +09:00
Almaz Mingaleev
ec8241e212 Merge "Rename icu_tzdata.dat_host target." into main 2024-06-21 19:45:04 +00:00
Almaz Mingaleev
96bf1f0e18 Rename icu_tzdata.dat_host target.
icu_tzdata.dat was replaced by .res files.

Bug: 347657693
Test: ./art/tools/run-libcore-tests.sh --mode host
Change-Id: I83db07738410b5537134550ab2dce78986853c5c
2024-06-21 13:27:54 +00:00
Wei Li
e2e37cfe7b Merge "Revert "Set widevine apex signed with dev key"" into main 2024-06-21 00:28:44 +00:00
Wei Li
527ba92bea Revert "Set widevine apex signed with dev key"
This reverts commit cc21bf8b29.

Reason for revert: b/348462910

Change-Id: Ia65e4b87bd3d7a0780dedc1cc3118c98ccfe077c
2024-06-20 23:28:07 +00:00
Daniel Zheng
d3bb564316 Merge "Add read_ahead size to configurables" into main 2024-06-20 19:23:11 +00:00
Hung-ying Tyan
60713e6a7d Merge "Add a GSI overlay for the framework package" into main 2024-06-20 09:53:31 +00:00
Hung-ying Tyan
73e0442fec Add a GSI overlay for the framework package
This overlay is used to override the default value of the config_multiuserMaximumUsers resource in the framework package. This is necessary because the default value of this resource is 1, which is too low for CTS (like ProxyMediaRouter2HostSideTest) to add test users.

Bug: 347122747
Change-Id: I351a96c49b698570f67742b176274124c41018c9
Test: TH
2024-06-20 04:55:43 +00:00
Steven Terrell
b66aa7edc2 Add trace redactor to system
This change adds the trace_redactor binary to system so that it can be
called from the Profiling module.

Bug: 327423523
Test: build and flash phone, verify binary is avalable at /system/bin.

Merged-In: I661fca73c02e2904b988b4bddce62f09c7e3a5d7
Change-Id: I661fca73c02e2904b988b4bddce62f09c7e3a5d7
2024-06-20 10:00:16 +09:00
Jakub Czapiga
31f6e08fc9 Drop legacy vboot support.
Bug: 291329969
Bug: 347885843
Bug: 347899892
Test: m
Test: CIs
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:5071b95a067c9392b7bfa4d95957307ff0ccdcc3)
Merged-In: I5f30f63553cc2670650897e259ba51baf8ced05d
Change-Id: I5f30f63553cc2670650897e259ba51baf8ced05d
2024-06-18 15:40:14 +00:00
Ted Bauer
6e11172c6b Add defaults target for shared linking
Add a defaults target that all targets linking to aconfig codegen with
the new storage API dependencies will need. The target takes the new
storage APIs conditionally behind a flag, so we can disable it easily.

In this topic, we add it to a single target to see that it builds and
adds the dependency. In follow-on CLs we can add it to the rest of the
targets.

Test: m audiopolicy_tests
Bug: 347701310
Change-Id: I67643205b283301f72c5466401060212b637388f
Merged-In: I67643205b283301f72c5466401060212b637388f
2024-06-17 21:16:51 +00:00
Treehugger Robot
5a648e50c9 Merge "Set widevine apex signed with dev key" into main am: 683eb4b502
Original change: https://android-review.googlesource.com/c/platform/build/+/3101237

Change-Id: I58b8a290fcbcda4ff8e3cc478ba2e3d0328f35f1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-11 23:04:03 +00:00
Treehugger Robot
683eb4b502 Merge "Set widevine apex signed with dev key" into main 2024-06-11 22:46:44 +00:00
Kyle Zhang
cc21bf8b29 Set widevine apex signed with dev key
Bug: 341134913
Change-Id: Ied39e2a1dd4b715afc2ee4d35c18b52eabfc417f
2024-06-11 21:45:34 +00:00
Treehugger Robot
f8180be2bf Merge "Enable Pre-reboot Dexopt at build time." into main am: bfcac4a398
Original change: https://android-review.googlesource.com/c/platform/build/+/3121991

Change-Id: I7181149aeb5beda5a8290df959e0d313cabb9b41
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-10 16:36:08 +00:00
Jiakai Zhang
28618cfff8 Enable Pre-reboot Dexopt at build time.
Bug: 311377497
Test: m
Change-Id: I48933eadea8be1d81e7c4ce37abb5a2175402236
2024-06-10 15:11:07 +01:00
Treehugger Robot
4401accfe0 Merge "Build build_flags.json in soong" into main am: 04837c61f3
Original change: https://android-review.googlesource.com/c/platform/build/+/3011233

Change-Id: Ia33e4242d757bf6be4158039d5f88147ec7d99b8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-07 05:31:15 +00:00
Treehugger Robot
04837c61f3 Merge "Build build_flags.json in soong" into main 2024-06-07 05:12:31 +00:00
Xin Li
67d97cd71e Merge 2024-06 Release (ab/AP2A.240605.024) to aosp-main-future
Bug: 343100748
Merged-In: I02e87e92878770cf21fb5032efb75eb1b222c62f
Change-Id: I2f8cb71a54227b97ab83eb7966b2f4c04724f2d2
2024-06-05 14:07:19 -07:00
Cole Faust
154682ce06 Merge "Remove all VNDK deprecation flags" into main am: b20aee1b1e
Original change: https://android-review.googlesource.com/c/platform/build/+/3109757

Change-Id: I6eb9b5aeff8293dddc9dc2d1941ad98a0f123532
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-05 19:36:28 +00:00
Cole Faust
b20aee1b1e Merge "Remove all VNDK deprecation flags" into main 2024-06-05 19:24:17 +00:00