platform_build/tools
Mårten Kongstad 9238a3ab76 check-flagged-apis: create list of @FlaggedApi errors
Teach check-flagged-apis to cross-check the data from its three input
sources. This allows the tool to detect

  - @FlaggedApi references to non-existent flags
  - @FlaggedApi APIs present in the build artifacts even though the flag
    is disabled
  - @FlaggedApi APIs not present in the build artifacts even though the
    flag is enabled

By passing in different sources, the tool can detect these errors for
any of the API surfaces (public, @SystemApi(MODULE_LIBRARIES), etc).

Note: the tool assumes that a disabled flag means that the @FlaggedApi
should not be present in the build output. This is currently true, but
won't be once metalava starts reverting @FlaggedApis to their previous
SDK snapshot.

Bug: 334870672
Test: atest --host check-flagged-apis-test
Test: check-flagged-apis --api-signature out/target/product/mainline_x86/obj/ETC/frameworks-base-api-current.txt_intermediates/frameworks-base-api-current.txt --flag-values out/soong/.intermediates/all_aconfig_declarations.pb --api-versions out/dist/data/api-versions.xml
Change-Id: I790234865f831af7d45895def14d1d6740365622
2024-04-17 16:40:03 +02:00
..
aconfig Merge "aconfig: switch read api lib to cc_library" into main 2024-04-15 17:22:00 +00:00
acp
apicheck
atree
canoninja
check-flagged-apis check-flagged-apis: create list of @FlaggedApi errors 2024-04-17 16:40:03 +02:00
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 Merge "ota_from_target_files: read correct api level" into main 2024-04-16 19:32:37 +00: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
zipalign
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
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
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
java-event-log-tags.py
list_files.py
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