platform_build/tools
Tianjie Xu 9afb221c9e Reland "Calculate the runtime fingerprint prefixes from build prop"
This reverts commit b21e48b499.

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
Change-Id: I4a9fa35c7ac037ff1cf4f9a4bdff602beac3894b
Test: unittests pass
2020-05-10 21:49:53 +00:00
..
acp
apicheck Convert apicheck tool build to Soong. 2018-05-15 11:38:44 +09:00
atree Fix implicit-fallthrough warning. 2018-10-16 11:50:18 -07:00
docker docker: update sha256sum for repo version 1.25 2019-04-11 13:38:05 -07:00
droiddoc Merge "Remove more Android.mk files from build/make" am: ebe0b7a1c9 2019-01-07 09:54:57 -08:00
fs_config Include private/fs_config.h directly when needed 2020-03-05 10:55:45 -08:00
fs_get_stats Include private/fs_config.h directly when needed 2020-03-05 10:55:45 -08:00
libhost
releasetools Reland "Calculate the runtime fingerprint prefixes from build prop" 2020-05-10 21:49:53 +00:00
signapk Add signing certificate lineage file support. 2020-04-06 13:42:23 -07:00
signtos Make host targets use non-repackaged targets 2018-07-23 13:00:32 +01:00
warn Separate html/csv output functions into html_writer.py 2020-02-27 15:39:18 -08:00
zipalign Change the parameter type of offset in read 2020-04-02 06:16:43 +00:00
ziptime
Android.bp Add "with-license" rule to generate public AOSP phone image. 2019-11-09 14:21:45 -08:00
auto_gen_test_config.py Default test to AndroidJUnitTest for auto-generated test config. 2018-02-21 11:31:06 -08:00
auto_gen_test_config_test.py Migrate build/make to androidx.test 2018-12-13 19:06:34 -08:00
brillo-clang-format
buildinfo.sh Write ro.build.ab_update to /vendor/build.prop. 2019-04-22 21:08:25 -07:00
buildinfo_common.sh Rename DEVICE arg in common buildprops script 2019-03-12 18:03:23 +00:00
check_elf_file.py Update check_elf_file.py for clang-r353983 2019-03-20 15:24:00 +08:00
check_identical_lib.sh Always check VNDK variant identicalness 2020-01-14 20:05:49 -08:00
check_radio_versions.py
checkowners.py Accept the "file:(project:)?filePath" directive. 2019-03-12 11:56:33 -07:00
compare_fileslist.py
event_log_tags.py logtags: Support # line comments. 2019-11-29 15:28:48 +00:00
extract_kernel.py extract-kernel: Fix indexing 2019-09-16 16:30:35 -07:00
fat16copy.py
fileslist_util.py
filter-product-graph.py
findleaves.py findleaves: Fix typo for --dir argument 2018-08-16 02:30:45 +02:00
fixlinebreaks.sh
generate-enforce-rro-android-manifest.py Put DEVICE/PRODUCT overlays in different partitions 2019-03-22 13:25:20 +00:00
generate-notice-files.py Include /product_services software in NOTICE. 2018-08-28 18:06:39 +01:00
generate-self-extracting-archive.py Fix comment to reflect that the value passed to head is actually the size 2019-12-06 19:13:21 -08:00
java-event-log-tags.py
java-layers.py
merge-event-log-tags.py
normalize_path.py
OWNERS Use multiple globs/emails in per-file syntax 2018-08-20 14:16:04 -07:00
parsedeps.py
post_process_props.py
print_module_licenses.sh
product_debug.py
soong_to_convert.py
test_extract_kernel.py Add kernel info to compatibility.zip 2019-01-30 13:28:03 -08:00
warn.py Split warn.py into multiple files 2019-12-17 15:12:31 -08:00