platform_build/tools
Dennis Shen 702408ecbb aconfig: update storage file to store flag index instead of file byte offset
Previously, in package.map, we store the byte offset of the first flag
in a flag package in a flag value file. In flag.map, we store the within
package flag byte offset. Once we know the total offset, we can locate
the flag in the flag value file. However, this offset may not work for
flag info file. Currently we only have boolean flags. Each boolean flag
value and info takes up 1 byte in flag value and flag info file. So the
byte offsets are the same. But in the future, when we add a new flag
value type, or add more contents to flag info file. Then the byte offset
for flag value file and flag info file may not be same.

Instead, we should store index rather than offset. The package map
should store the index of the first flag in this package. The flag map
stores the within package index. Then flag value read api and flag info
read api can then infer the byte offset independently.

Bug: b/321077378
Test: atest -c
Change-Id: Iad89776d5369715ba2d8faaea18261ac3271f13b
2024-04-10 16:36:46 +00:00
..
aconfig aconfig: update storage file to store flag index instead of file byte offset 2024-04-10 16:36:46 +00:00
acp
apicheck
atree Fix uninitialized value warnings. 2022-12-20 16:51:53 -08:00
canoninja
compliance Update go.mod to 1.21 2023-12-14 15:37:35 +00:00
docker
droiddoc
finalization Finalization: update OWNERS 2024-04-03 17:20:42 +02:00
fs_config fs_config: remove -S option. 2024-03-04 21:20:52 +00:00
ide_query Write ide_qeury results to stdout 2024-03-20 11:06:17 +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 Add some comments to the field "third_party.identifier.type" in METADATA files. 2024-04-01 17:19:40 -07:00
rbcrun Raise go.mod version of build/make/tools/rbcrun 2023-12-14 12:05:03 -08:00
releasetools Remove dependency on non-AB modules 2024-04-08 11:08:14 -07:00
sbom Add a package in the SBOM of framework_res.jar. 2024-01-08 09:34:42 -08:00
signapk Remove SignApk output limitation of 2GiB 2024-03-14 14:57:04 -07:00
signtos
warn Make DeprecatedOrUnsafeBufferHandling not high severity 2023-01-09 14:19:11 -08:00
zipalign [zip] Set all entry times before 1980 to 1980-01-01 2023-09-06 21:44:40 +00:00
ziptime zipalign/ziptime: use ftello()/fseeko(). 2023-01-13 00:41:38 +00:00
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
characteristics_rro_generator.py Fix characteristic rro for overridden packages 2024-02-14 16:57:34 +09:00
check_elf_file.py Fix crash in check_elf_file.py 2022-11-09 12:50:35 -08:00
check_identical_lib.sh
check_radio_versions.py Convert check_radio_versions to python3 2022-10-24 21:02:00 +00:00
compare_builds.py
event_log_tags.py
exercise_compare_builds
extract_kernel.py
fat16copy.py
fileslist_util.py Convert fileslist_util.py to python 3 2022-10-24 18:46:03 -07:00
find_static_candidates.py find_static_candidates.py: protect against missing keys in module 2024-01-24 19:28:21 +00:00
findleaves.py Convert findleaves.py to python 3 2022-10-24 17:57:39 -07:00
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 Remove extra semicolons from event log tag generated files 2022-10-13 17:47:42 -07:00
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 Update normalize_path.py to Python 3. 2022-10-20 08:11:18 +00:00
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 Convert soong_to_convert.py to python 3 2022-11-04 17:36:13 -07:00
stub_diff_analyzer.py Create custom diff tool to compare stub contents 2022-10-28 22:45:08 +00:00
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 The --why parameter in whichgit should be optional 2022-10-24 08:03:20 -07:00