commit | f6a22b6ff74f2971f2deb770c7fea4ad18fc96c2 | [log] [tgz] |
---|---|---|
author | Nikita Putikhin <nputikhin@google.com> | Thu Jun 27 16:15:32 2024 +0200 |
committer | Nikita Putikhin <nputikhin@google.com> | Thu Jun 27 16:43:38 2024 +0200 |
tree | ac25a7ea0754cd684e194a19d4b8408c434be0bd | |
parent | 56f730409ee2d9f1157e735ac1ad1c35ef8e2d10 [diff] |
Use test install base template instead of a hardcoded path Make the template more consistent with the native (aka cc) test temlate. The important change is that vendor tests will be pushed into /data/local/tests/vendor. In fact, rust module in soong already expects this (aosp/1832614). Having the test binary in the vendor test folder makes the linker treat it as a vendor binary and prefer vendor libraries. Previously, the test binary was always a system binary (due to being in /data/local/tmp) and used system libraries first potentially leading to bugs (e.g. the one attached). This change also makes vendor tests that use vendor libraries require root due to an existing SELinux policy issue with atest. Bug: 347370677 Test: checked with: - libsecretkeeper_core_test - libauthgraph_boringssl_test (with the chained change) - libdice_policy.test Test steps: atest -d <test>.vendor # runs vendor variant, passes adb root adb shell find / -iname <test> 2>/dev/null # before change: /data/local/tmp/<test> # after change: /data/local/tests/vendor/<test> Change-Id: I6d8c58cbce5b636480803e74cb710f0b05b74e10
This is the Makefile-based portion of the Android Build System.
For documentation on how to run a build, see Usage.txt
For a list of behavioral changes useful for Android.mk writers see Changes.md
For an outdated reference on Android.mk files, see build-system.html. Our Android.mk files look similar, but are entirely different from the Android.mk files used by the NDK build system. When searching for documentation elsewhere, ensure that it is for the platform build system -- most are not.
This Makefile-based system is in the process of being replaced with Soong, a new build system written in Go. During the transition, all of these makefiles are read by Kati, and generate a ninja file instead of being executed directly. That's combined with a ninja file read by Soong so that the build graph of the two systems can be combined and run as one.