platform_build/tools
Mårten Kongstad a2e5ab82c7 aconfig: make proto fields optional
Change all required proto fields to optional. While the proto file is
supposed to be a backwards compatible API, and fields are not supposed
to be deprecated, this commit will allow for that option if needed.

Implementation wise this change doesn't matter much: any parsed data
needs additional verification outside what the protobuf crate's parser
provides anyway, so adding checks to verify that all required fields,
even though marked optional in the proto file, were found is a minor
increase in code complexity.

If in the future a proto field should no longer be used:

  - keep the field in the proto, still marked optional and clearly
    document that it is no longer in use
  - change protos.rs from checking struct.has_field() to explicitly
    dropping any value via struct.clear_field()

Bug: 286337317
Test: atest aconfig.test
Change-Id: Iad1ccfe50ecac286ff7a796aec909bec70b9520d
2023-06-19 16:53:22 +02:00
..
aconfig aconfig: make proto fields optional 2023-06-19 16:53:22 +02:00
acp Fix licenses and license texts. 2022-01-24 16:19:41 -08:00
apicheck [LSC] Add LOCAL_LICENSE_KINDS to build/make 2021-02-14 10:37:20 -08:00
atree Fix uninitialized value warnings. 2022-12-20 16:51:53 -08:00
canoninja Fix go.mod for tools/canoninja 2022-08-01 14:45:28 -07:00
compliance Resolve test crash in build/make/tools/compliance. 2023-06-07 13:06:13 +00:00
docker
droiddoc Fix licenses and license texts. 2022-01-24 16:19:41 -08:00
finalization Use patch instead of git apply. 2023-06-16 20:23:36 +00:00
fs_config Convert fs_config_generator.py to python 3 2022-10-21 11:16:18 -07:00
fs_get_stats Fix licenses and license texts. 2022-01-24 16:19:41 -08:00
libhost Fix licenses and license texts. 2022-01-24 16:19:41 -08:00
product_config ALLOW_RULES_IN_PRODUCT_CONFIG 2021-02-23 22:40:39 -08:00
protos Generate SBOM of the target product in file sbom.spdx.json in product out directory. 2023-03-14 15:14:06 -07:00
rbcrun Define release flags in starlark instead of make 2023-06-09 13:10:05 -07:00
releasetools Merge "Handle zip64 extra fields better" 2023-06-17 22:12:26 +00:00
sbom Merge "Some changes to support SBOM generation for b build unbundled APEXs." 2023-05-17 19:19:47 +00:00
signapk Pin signapk to Java 11 2023-02-03 18:06:46 +00:00
signtos [LSC] Add LOCAL_LICENSE_KINDS to build/make 2021-02-14 10:37:20 -08:00
warn Make DeprecatedOrUnsafeBufferHandling not high severity 2023-01-09 14:19:11 -08:00
zipalign zipalign/ziptime: use ftello()/fseeko(). 2023-01-13 00:41:38 +00:00
ziptime zipalign/ziptime: use ftello()/fseeko(). 2023-01-13 00:41:38 +00:00
Android.bp Create separate python libraries for the following logic and refactor SBOM generation script accordingly. 2023-04-13 13:34:57 -07:00
auto_gen_test_config.py Convert auto_gen_test_config.py to python 3 2023-01-26 17:29:13 -08:00
auto_gen_test_config_test.py
brillo-clang-format
build-runfiles.cc make: fix memory leak 2022-06-28 11:23:21 -07:00
BUILD.bazel Add check_elf_file to BUILD.bazel 2022-09-07 22:24:33 +00:00
buildinfo.sh Remove deprecated BOARD_BUILD_SYSTEM_ROOT_IMAGE 2022-10-13 16:08:53 +08: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
checkowners.py Update checkowners.py to support python3 2022-04-04 13:22:38 +01:00
compare_builds.py
event_log_tags.py Migrate java-event-logs-tags.py to python3. 2022-01-17 13:02:53 +00:00
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 Add new script to analyze static/shared library usage 2023-06-05 20:23:36 +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 Make the script python3. 2021-09-13 14:54:58 -07:00
generate-self-extracting-archive.py Convert generate-self-extracting-archive.py to python 3 2021-12-29 13:58:28 -08:00
generate_gts_shared_report.py Tool for generating GTS open-sourced report 2023-02-16 21:54:23 +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 Create a python script to list files given a directory as an input 2023-04-03 17:52:41 +00:00
merge-event-log-tags.py Migrate java-event-logs-tags.py to python3. 2022-01-17 13:02:53 +00:00
mk2bp_catalog.py Make file list by partitions for all lunch targets 2022-04-07 11:01:19 -07:00
mk2bp_partition.py Make file list by partitions for all lunch targets 2022-04-07 11:01:19 -07:00
normalize_path.py Update normalize_path.py to Python 3. 2022-10-20 08:11:18 +00:00
OWNERS
post_process_props.py Allow setting future api level before REL 2023-04-10 15:37:19 +09: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 Allow setting future api level before REL 2023-04-10 15:37:19 +09:00
warn.py Fix/suppress most pylint and gpylint warnings 2021-04-28 14:57:56 -07:00
whichgit The --why parameter in whichgit should be optional 2022-10-24 08:03:20 -07:00