commit | 0d2fcd50d74dd56c9cba86c01c83424a3d4a0cc0 | [log] [tgz] |
---|---|---|
author | Tianjie <xunchang@google.com> | Wed May 06 21:54:21 2020 -0700 |
committer | Tianjie <xunchang@google.com> | Thu May 07 23:52:07 2020 -0700 |
tree | 99a1fa9c3ae54f35cb7e39b76364b0f40c7d7ebe | |
parent | fd3883f1597c399b00d81964b69928aa62eebfc6 [diff] |
Calculate the runtime fingerprint prefixes from build prop In practice, some partners use the 'import' statement to override the device fingerprint at runtime. The runtime fingerprint will later add to the metadata of OTA package, so that the OTA server can deliver the package to corresponding devices correctly. This CL supports parsing a subset of import statement that the init process recognizes. And we loose the restriction based on how the dynamic fingerprint is used in practice. Right now, we only searches for the override of brand, name and device. And the placeholder format should be ${placeholder}, with its value supplied by the script caller. As part of the implementation, we generate all the possible combinations of the input boot variables. And recalculate the fingerprint for each of the combination. Though we load the build.prop multiple times, the logic is easier to follow. Also, it's more convenient to enhance the logic if we only want to allow some of the boot variables combination later. Bug: 152167826 Test: unittests pass Change-Id: Iac093a40dc6f873c5e1858efa44cb2bd6082508a
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.