Commit graph

9188 commits

Author SHA1 Message Date
Vilas Bhat
d98e1a86f3 ndk: Remove MALLOC_LOW_MEMORY config for the ndk
This switches the ndk to using scudo instead of jemalloc.

Bug: 337242400
Test:
Built NDK and tested lldb-server on both 4k and 16k devices
```
$ cd aosp && mkdir ndk_prebuilts
$ export OUT_DIR=ndk_prebuilts
$ ./build/soong/scripts/build-ndk-prebuilts.sh
$ cp -r ~/aosp/ndk_prebuilts/soong/ndk/sysroot/*
~/llvm-project/toolchain/prebuilts/ndk/releases/r27/toolchains/llvm/prebuilt/linux-x86_64/sysroot/
$ cd ../llvm-project
$ python3 toolchain/llvm_android/build.py
$ adb push out/stage2-install/runtimes_ndk_cxx/aarch64/lldb-server /data/local/tmp/
$ adb shell "getconf PAGE_SIZE"
16384
$ adb shell "strace /data/local/tmp/lldb-server"
<output trimmed>
mprotect(<address redacted>, 16384, PROT_READ) = 0
exit_group(0)                           = ?
+++ exited with 0 +++
```
Change-Id: I982595278d70cb39b9f6c7c8e9b95f12723fc5bf
2024-05-23 18:43:57 +00:00
Dan Albert
e35bb7c9b3 Remove no-op config.
This was copied over from when Soong required us to define it in the
properties file, but this is the default and we also don't care.

Bug: None
Test: None
Change-Id: I35311093c83fddcb7c413535fbb50a126b615036
2024-05-22 20:49:53 +00:00
Treehugger Robot
5b0dfe41b8 Merge "16k: build: Enable PRODUCT_NO_BIONIC_PAGE_SIZE_MACRO on the ndk target" into main 2024-05-21 18:26:27 +00:00
Vilas Bhat
2c51ebf669 16k: build: Enable PRODUCT_NO_BIONIC_PAGE_SIZE_MACRO on the ndk target
Test: Presubmit and manual testing
Bug: 337242400
Change-Id: I89f91566ebe7dcaf8056859549d5769d2f5e936e
2024-05-21 16:33:04 +00:00
Jiyong Park
a65a617855 Merge "Revert^2 "Remove libmdnssd"" into main 2024-05-17 12:11:25 +00:00
Jiyong Park
502ba31ea2 Revert^2 "Remove libmdnssd"
This reverts commit 7a31b44227.

Reason for revert: relanding

Change-Id: I3a5758c83ce979f591042488f58fb2bacdf9aa23
2024-05-16 22:38:56 +00:00
Treehugger Robot
d3d7e46a98 Merge "Revert "Move all GKI targets away from non-AB"" into main 2024-05-16 21:47:55 +00:00
Kelvin Zhang
2a3faafdbf Revert "Move all GKI targets away from non-AB"
This reverts commit d17ef4a30b.

Reason for revert: build breakage on sdk_goog3_x86_64-trunk_staging-userdebug

Change-Id: I884df8b07afbbcdc1e07930163108f0baa503014
2024-05-16 20:45:39 +00:00
Liana Kazanova
bc78428d42 Merge "Revert "Remove libmdnssd"" into main 2024-05-16 19:57:25 +00:00
Priyanka Advani
7a31b44227 Revert "Remove libmdnssd"
This reverts commit 1cbd8211e7.

Reason for revert: Droidmonitor triggered revert due to breakage in b/341118115

Change-Id: I0fed4225bd1d4d8888334fdc2a9fac353b748edd
2024-05-16 19:55:11 +00:00
Treehugger Robot
e2c0992ad2 Merge "Move all GKI targets away from non-AB" into main 2024-05-16 19:53:15 +00:00
Daniel Zheng
7a61f499be Merge changes Ibbed6cf9,I31b36b42 into main
* changes:
  ota_from_target_files: allow cow version override
  Add build configs for wearable tunables
2024-05-16 19:34:11 +00:00
Treehugger Robot
66236c471c Merge "Remove libmdnssd" into main 2024-05-16 18:19:54 +00:00
Kelvin Zhang
d17ef4a30b Move all GKI targets away from non-AB
Test: th
Bug: 324360816
Change-Id: Iea1808548dbee972b5b1c3e252e4b7e2e47db54c
2024-05-16 10:11:59 -07:00
Daniel Zheng
427fea8b49 Add build configs for wearable tunables
Low memory devices place special emphasis on memory constraints and cpu
utilization. We want to expose a set of build configurations that allow
these devices to fine tune resource usage during OTA installation.

Our strategy will be the following.
1. For any tunable needed in first stage init, read the .ro prop during
   ota installation, propogate the configuration to SnapshotUpdateStatus
   proto, then read the property from /metadata upon first reboot (since
   .ro properties are not available here)
   2. For tunables which aren't needed until second stage init, read the
   .ro prop directly.

This first CL will just add the build configurations to the build
system. Subsequent CL's will forward the configs to protobufs and
snapuserd daemon

Bug: 332255580
Test: th
Change-Id: I31b36b42f8fba997c772fe1a4ba99b17128b3eca
2024-05-15 16:00:15 -07:00
Jiyong Park
1cbd8211e7 Remove libmdnssd
The lib is a part of the adbd apex and isn't used from outside of the
apex. Remove the lib from /system/lib[64].

Bug: N/A
Test: watch TH
Change-Id: I2c95fa72befa5a660a4f97d9f26459066b40c1e2
2024-05-13 18:24:29 +09:00
Jooyung Han
925f41a9f3 Add vintf for EDI collectors
EDI collectors like VintfDeviceInfo and VendorApexDeviceInfo need to
access to VINTF information. Instead of directly accessing related
files, we expose processed VINTF via /system/bin/vintf.

Bug: 336577802
Test: /system/bin/vintf
Change-Id: Id2b2e9b905bcb168638c60c2dc92ca550ed1558f
2024-05-10 16:07:43 +09:00
Spandan Das
e4a3e9ee5a Update BRANCH_DEFAULT_MODULE_BUILD_FROM_SOURCE documentation
With trunk stable, we no longer have multiple development branches, and
this flag is no longer in use.

Test: N/A (documentation change)
Bug: 308188056
Change-Id: Icdaddde9d107de9a453106cae35645b7e6cc21e9
2024-05-07 22:56:45 +00:00
Steven Moreland
43b6834425 Merge "16k: Enable 16k ELF alignment on all mainline modules" into main 2024-05-07 21:17:27 +00:00
Christopher Ferris
8e46fa38f1 Merge "Add MALLOC_LOW_MEMORY as synonym for MALLOC_SVELTE." into main 2024-05-06 19:45:06 +00:00
Vilas Bhat
02f0984a65 16k: Enable 16k ELF alignment on all mainline modules
Test: banchan <target>
      get_build_var TARGET_MAX_PAGE_SIZE_SUPPORTED
Bug: 321754477
Change-Id: Ia356d6edbf2f451b17f1780d11607ceb9a4adff4
2024-05-06 17:34:53 +00:00
Treehugger Robot
b9ffad8376 Merge "Enable perfetto persistent tracing" into main 2024-05-02 19:29:08 +00:00
Spandan Das
68dce16b3f Add a release config map override for go devices
One use case for this is to select go prebuilt apexes when building go
devices.

Bug: 338002385
Test: presubmits
Test: verified that this map shows up in `get_build_var
PRODUCT_RELEASE_CONFIG_MAPS` of a go device

Change-Id: I5505c581597bbd5a4e5f8fc6cd69987f67f0adb6
2024-05-01 22:04:36 +00:00
Kelvin Zhang
892b51ab7d Move aosp_x86_64 away from non-AB
non-AB is deprecated, move GSI targets to AB updates

Test: th
Bug: 334489639
Change-Id: I96e398c43f594cdc4ac6e20cf9444cb67a80eee3
2024-04-30 09:34:58 -07:00
Kean Mariotti
ee081de947 Enable perfetto persistent tracing
Enable go/perfetto-persistent-tracing for eng builds.

Bug: 325622427
Test: adb shell perfetto --query \
    and check the tracing session 'sysui_persistent' started
Change-Id: Ic655eea67c96faf4fbc67bb1da3c359d50a73ccc
2024-04-30 14:05:04 +00:00
Inseob Kim
ad77da348c Merge "Build audio_effects.xml with Soong" into main 2024-04-26 01:08:25 +00:00
Christopher Ferris
9ff5fbb023 Add MALLOC_LOW_MEMORY as synonym for MALLOC_SVELTE.
The MALLOC_SVELTE variable name is confusing, so add a new variable
name called MALLOC_LOW_MEMORY. Still support MALLOC_SVELTE.
Also, support the change of Malloc_not_svelte to Malloc_low_memory.

Test: Verified scudo config is used by default.
Test: Verfified Android GO config uses the jemalloc low memory config.
Change-Id: I2606205da746d8ab20e29884c7dcb5a77add51e4
2024-04-25 16:46:35 -07:00
Anna Bauza
27abc3abc3 Merge "Adding avatar picker to install on all platform phones and tablets" into main 2024-04-24 08:03:32 +00:00
Spandan Das
e10c4f22b4 Merge "Remove conditional for artifact list" into main 2024-04-23 21:05:20 +00:00
Spandan Das
b1654b9b56 Remove conditional for artifact list
The expanded list seems to be no longer required when using prebuilts.

Test: downloaded this CL in v-aml-prebuilt-dev
Test: lunch gsi_partner_arm-ap31-userdebug && m # no ninja analysis
error

Change-Id: I818191f36449032aee98879506c1e564fd0bc1b1
2024-04-23 19:56:54 +00:00
Inseob Kim
f6ad0ce1c5 Build audio_effects.xml with Soong
Ignore-AOSP-First: need to submit along with internal projects

Bug: 335369205
Test: build
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:284a84b355a49098401b5c97fc233966720c0996)
Merged-In: Ia87b8dbc610a2c662523923a6a3570fa181204c6
Change-Id: Ia87b8dbc610a2c662523923a6a3570fa181204c6
2024-04-23 02:14:00 +00:00
Anna Bauza
65d5e13e11 Adding avatar picker to install on all platform phones and tablets
Bug: b/306336441
Test: manual
Merged-In: Idb550019b13d47e7f0dc389030d508db7d1057f3
Change-Id: Idb550019b13d47e7f0dc389030d508db7d1057f3
2024-04-22 13:20:09 +00:00
Treehugger Robot
f8e79f113b Merge "Remove android.hardware.wifi from generic_system.mk" into main 2024-04-19 06:40:57 +00:00
Jihoon Kang
9328219ae3 Merge "Remove non existent snapuserd.recovery package" into main 2024-04-19 06:33:36 +00:00
Jihoon Kang
93e9197a66 Merge "Remove WallpaperPicker from aosp_product.mk" into main 2024-04-19 05:15:45 +00:00
Inseob Kim
77d1b94b9f Merge "Build etc/hosts with Soong" into main 2024-04-19 01:29:38 +00:00
Daniel Zheng
b24b46d43f Merge "add build property for compression_factor" into main 2024-04-18 20:59:40 +00:00
Daniel Zheng
270130a025 add build property for compression_factor
Compression factor, as discussed, should be a configurable build
property. This flag here will control that. From initial analysis, it
looks like 64k is a good default. go/variable-block-vabc-perf

Bug: 313962438
Test: th
Change-Id: I2bddede22655e36446e734ac1917be560b1a3a1b
2024-04-18 11:22:26 -07:00
Daniel Zheng
78986f598f Merge "Revert^2 "Turn on V3 cow"" into main 2024-04-18 16:54:15 +00:00
Inseob Kim
112961652b Build etc/hosts with Soong
Bug: 335369205
Test: build
Change-Id: I4c56b343cd6624ba3d6bdfb5f70e9c9520dcfe2f
2024-04-18 10:45:23 +09:00
Inseob Kim
45c6fd0c17 Merge "Build dirty-image-objects in Soong" into main 2024-04-18 01:43:00 +00:00
Vilas Bhat
185a3fc892 Merge "16k: build: Enable TARGET_NO_BIONIC_PAGE_SIZE_MACRO by default on Android V targets" into main 2024-04-17 20:27:37 +00:00
Inseob Kim
c3531ebb4b Build dirty-image-objects in Soong
Also dirty-image-objects-phone is removed as it's really never been
used.

Bug: 335369205
Test: build
Change-Id: Ib3eab3dc4c30aaa99b90310903bcc8a86a0f3480
2024-04-17 16:26:04 +09:00
Hsin-Yi Chen
c851627d33 Fix check-abi-dump-list
- Fix the timestamp variable name.
- Convert the intermediate file name extensions to those in the
  prebuilt directory.
- Disable check-abi-dump-list for sanitizer and coverage builds.
- Add an exception for libRS, RISC-V.

Test: m check-abi-dump-list
Bug: 333532038
Change-Id: I35b644feed1bef1e6c74731e8f69074bdc5b0352
2024-04-17 13:05:02 +08:00
Hsin-Yi Chen
f46bc5add9 Define a make target for all APEX dumps
The SDK finalization process will create APEX ABI dumps from this
target.

Test: make findlsdumps_APEX
Bug: 333532038
Change-Id: Iaec03bd39923678141b12436e5a6b8576e63a999
2024-04-17 13:04:50 +08:00
Daniel Zheng
4023fdfc04 Revert^2 "Turn on V3 cow"
This reverts commit fa5bfb9d79.

Reason for revert: we were running into OTA failures b/333966507. The reason was that OTA compatibility tools on go/absign weren't updated with our v3 compatibility tools (which turns of v3 full OTA for devices launching prior to Android 15). Once we know that go/absign is updated, we can check in this change again

Change-Id: I789c24b57754d6ede794d7f9451ee0ca469c2fb4
2024-04-16 15:46:11 +00:00
Mina Granic
65e34c1138 Merge "Revert "Define a make target for all APEX dumps"" into main 2024-04-16 10:24:27 +00:00
Hsin-Yi Chen
1a9023376c Revert "Define a make target for all APEX dumps"
This reverts commit ea9f51d6f5.

Reason for revert: aosp_cf_arm64_only_phone_hwasan-trunk_staging-userdebug fails

Fixes: 335131824
Bug: 333532038
Change-Id: I4d4bd31ebd8af18bcc44eb9ee45c167cbde026b0
2024-04-16 10:23:18 +00:00
Hsin-Yi Chen
eb74e25ccb Merge "Define a make target for all APEX dumps" into main 2024-04-16 08:51:18 +00:00
Hsin-Yi Chen
ea9f51d6f5 Define a make target for all APEX dumps
The SDK finalization process will create APEX ABI dumps from this
target.

Test: make findlsdumps_APEX check-abi-dump-list
Bug: 333532038
Change-Id: I68d83616ef58aac2618e405a87b1909167b08d43
2024-04-16 15:23:40 +08:00