846beb7f54
Previously, the bootclasspath_fragment's hidden_api.split_packages and hidden_api.package_prefixes properties did not specify an exhaustive set of packages that were provided by the fragment. They excluded packages which were either not split or which could not be used as a package prefix because it would match sub-packages provided by other bootclasspath modules. This change adds the hidden_api.single_packages list to specify those additional packages and then uses that information to verify that any bootclasspath_fragment that specifies at least one of split_packages, single_packages or package_prefixes properties only contains classes from a package that matches one of those properties. That will prevent a module from accidentally including unexpected classes, such as might happen when statically including a common utility library. It also adds coverage specific versions of the properties as additional packages are added to the art-bootclasspath-fragment when building coverage builds. Bug: 194063708 Test: atest signature_patterns_test m out/soong/hiddenapi/hiddenapi-flags.csv m EMMA_INSTRUMENT=true EMMA_INSTRUMENT_FRAMEWORK=true out/soong/hiddenapi/hiddenapi-flags.csv # Breaks without corresponding change to add android.system to # the art-bootclasspath-fragment. /usr/bin/pylint --rcfile $ANDROID_BUILD_TOP/tools/repohooks/tools/pylintrc scripts/hiddenapi/signature_patterns*.py pyformat -s 4 --force_quote_type single -i scripts/hiddenapi/signature_patterns*.py Change-Id: Iddf6c59cd4dc8c36dde7943a9840ccef5794b320 |
||
---|---|---|
.. | ||
check_boot_jars | ||
hiddenapi | ||
Android.bp | ||
archive_repack.sh | ||
build-aml-prebuilts.sh | ||
build-ndk-prebuilts.sh | ||
build-rustdocs.sh | ||
build_broken_logs.go | ||
check_do_not_merge.sh | ||
construct_context.py | ||
construct_context_test.py | ||
conv_linker_config.py | ||
diff_build_graphs.sh | ||
freeze-sysprop-api-files.sh | ||
gen-java-current-api-files.sh | ||
gen-kotlin-build-file.py | ||
gen-sysprop-api-files.sh | ||
gen_java_usedby_apex.sh | ||
gen_ndk_backedby_apex.sh | ||
gen_ndk_usedby_apex.sh | ||
generate-notice-files.py | ||
get_clang_version.py | ||
get_clang_version_test.py | ||
jar-args.sh | ||
jar-wrapper.sh | ||
jars-to-module-info-java.sh | ||
jsonmodify.py | ||
lint_project_xml.py | ||
lint_project_xml_test.py | ||
manifest.py | ||
manifest_check.py | ||
manifest_check_test.py | ||
manifest_fixer.py | ||
manifest_fixer_test.py | ||
mergenotice.py | ||
microfactory.bash | ||
ninja_rsp.py | ||
OWNERS | ||
package-check.sh | ||
rbc-run | ||
reverse-deps.sh | ||
rustfmt.toml | ||
setup-android-build.sh | ||
setup_go_workspace_for_soong.sh | ||
strip.sh | ||
system-clang-format | ||
system-clang-format-2 | ||
test_config_fixer.py | ||
test_config_fixer_test.py | ||
toc.sh | ||
transitive-deps.sh | ||
unpack-prebuilt-apex.sh | ||
update_out |