platform_build/tools
Dennis Shen 190304985c aconfig: create aconfig_storage_file binary to print the storage files
To help debug storage files. We need a binary to parse the storage
binary files and print out the flag values like device_config list
command. In addition, aconfig_storage_file needs to provide a public api
to allow flag cli to call to get the flag values. Therefore creating
this change.

This change includes the following changes:

1, Implement debug print trait for package table, flag table, and flag
value struct. So the debug dump is more readable.

2, Add a list flag api to create a vector of flag name and value tuples
given the storage file names. This api will be used by
aconfig_storage_file binary as well as aconfig flag cli.

3, Add a main.rs to create aconfig_storage_file binary to debug print
storage files or list all the flags in storage files. It has two
subcommands.

3.1 print command:
aconfig_storage_file print --file <storage file> --type
<package_map|flag_map|flag_val>

This command produce a debug print of a single the storage file content

3.2 list command:
aconfig_storage_file list --package_map <package map file> --flag_map
<flag map file> --flag_val <flag value file>

This command parses all storage files to print out list of flag values
in the following form:

<package>/<flag>, <value>
...
<package>/<flag>, <value>

Bug: b/321077378
Test: manual test of the binary command
Change-Id: I000e216d13854f853cbd9b63cabb6db3a47dbece
2024-03-06 17:46:18 +00:00
..
aconfig aconfig: create aconfig_storage_file binary to print the storage files 2024-03-06 17:46:18 +00:00
acp
apicheck
atree
canoninja
compliance Update go.mod to 1.21 2023-12-14 15:37:35 +00:00
docker
droiddoc
finalization Add the next release to Class2NonSdkList. 2023-12-04 23:15:43 +00:00
fs_config fs_config: remove -S option. 2024-03-04 21:20:52 +00:00
fs_get_stats
ide_query Add CC analysis support to ide_query 2024-02-28 07:14:15 +00:00
libhost
metadata Metadata tool correction: Output empty proto in case of no input 2024-01-11 11:15:23 +00:00
perf Fix the changing public api CUJ failure. 2024-02-13 23:46:06 +00:00
product_config
protos Support third_party.identifier in METADATA files of external packages. 2023-10-18 16:45:31 -07:00
rbcrun Raise go.mod version of build/make/tools/rbcrun 2023-12-14 12:05:03 -08:00
releasetools Merge "Resign microdroid_vendor.img with avb_vendor_key" into main 2024-03-05 10:55:45 +00:00
sbom Add a package in the SBOM of framework_res.jar. 2024-01-08 09:34:42 -08:00
signapk 16k: Sign the APKs to support 4k/16k page sizes 2023-10-20 03:13:39 +00:00
signtos
warn
zipalign [zip] Set all entry times before 1980 to 1980-01-01 2023-09-06 21:44:40 +00:00
ziptime
Android.bp Determine GC type based on BUILT_KERNEL_VERSION_FILE. 2024-02-01 22:10:33 +08:00
auto_gen_test_config.py Move auto_gen_test_config.py to argparse. 2023-09-19 06:36:19 +00:00
auto_gen_test_config_test.py Remove EXTRA_TEST_RUNNER_CONFIGS option in template for autogen instrumentation test 2023-10-31 15:44:16 -07:00
brillo-clang-format
build-runfiles.cc
BUILD.bazel Make auto_gen_test_config available to Bazel. 2023-09-18 12:34:29 +00:00
buildinfo.sh Make common signature system property definitions optional 2023-07-11 22:40:19 +00:00
characteristics_rro_generator.py Fix characteristic rro for overridden packages 2024-02-14 16:57:34 +09:00
check_elf_file.py
check_identical_lib.sh
check_radio_versions.py
compare_builds.py
event_log_tags.py
exercise_compare_builds
extract_kernel.py
fat16copy.py
fileslist_util.py
find_static_candidates.py find_static_candidates.py: protect against missing keys in module 2024-01-24 19:28:21 +00:00
findleaves.py
fixlinebreaks.sh
generate-enforce-rro-android-manifest.py
generate-notice-files.py
generate-self-extracting-archive.py
generate_gts_shared_report.py Remove GTS-Verifier license check 2023-05-19 10:38:55 +00:00
java-event-log-tags.py
list_files.py Add --classes optional flag in list_files 2023-06-27 04:46:50 +00:00
merge-event-log-tags.py
mk2bp_catalog.py
mk2bp_partition.py
normalize_path.py
overrideflags.sh change path to shell_utils.sh 2023-10-23 13:41:07 +00:00
post_process_props.py Determine GC type based on BUILT_KERNEL_VERSION_FILE. 2024-02-01 22:10:33 +08:00
post_process_props_unittest.xml
print_module_licenses.sh
soong_to_convert.py
stub_diff_analyzer.py
test_extract_kernel.py
test_post_process_props.py Define BOARD_API_LEVEL and BOARD_API_LEVEL_FROZEN 2023-11-10 16:31:04 +09:00
warn.py
whichgit