190304985c
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 |
||
---|---|---|
.. | ||
aconfig | ||
acp | ||
apicheck | ||
atree | ||
canoninja | ||
compliance | ||
docker | ||
droiddoc | ||
finalization | ||
fs_config | ||
fs_get_stats | ||
ide_query | ||
libhost | ||
metadata | ||
perf | ||
product_config | ||
protos | ||
rbcrun | ||
releasetools | ||
sbom | ||
signapk | ||
signtos | ||
warn | ||
zipalign | ||
ziptime | ||
Android.bp | ||
auto_gen_test_config.py | ||
auto_gen_test_config_test.py | ||
brillo-clang-format | ||
build-runfiles.cc | ||
BUILD.bazel | ||
buildinfo.sh | ||
characteristics_rro_generator.py | ||
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 | ||
findleaves.py | ||
fixlinebreaks.sh | ||
generate-enforce-rro-android-manifest.py | ||
generate-notice-files.py | ||
generate-self-extracting-archive.py | ||
generate_gts_shared_report.py | ||
java-event-log-tags.py | ||
list_files.py | ||
merge-event-log-tags.py | ||
mk2bp_catalog.py | ||
mk2bp_partition.py | ||
normalize_path.py | ||
overrideflags.sh | ||
post_process_props.py | ||
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 | ||
warn.py | ||
whichgit |