platform_build_soong/scripts
Paul Duffin 1e18e98b14 Allow implementation details to be excluded from signature patterns file
Previously, the signature-patterns.csv file (which was output in an sdk
snapshot) included implementation details, e.g. the names of classes
that are not part of any API, including the hidden API. This change
allows a bootclasspath_fragment module owner to customize the generated
signature patterns file to remove as many implementation details as
possible from the sdk snapshot. That means that implementation only
changes would not require that sdk snapshots be updated in sync with
the corresponding APEX.

Module owners can remove implementation in the following ways:
1) Limit the number of packages that are treated as split packages by
   explicitly specifying the split packages in the split_packages
   property. A split package is one whose classes are provided by
   separate bootclasspath_fragment modules and so the signature
   patterns has to include every class in that package provided by a
   specific bootclasspath_fragment module, including implementation
   classes, instead of just listing the package.

   The default is to treat all packages as being split, so if no
   split_packages is specified then it defaults to ["*"] which matches
   all packages. Assuming that no package was split unless specifically
   stated would require that all the modules that had split packages
   explicitly list them before this change could be submitted as
   without them this change would break the build.

   Once all existing modules with split packages have been updated to
   include them then the default may be changed.

2) Adding package prefixes for any hierarchy of packages that are
   owned solely by that bootclasspath_fragment. This removes the need
   to list the packages in that hierarchy, including implementation
   specific packages.

Bug: 194063708
Test: atest --host verify_overlaps_test signature_patterns_test
      m out/soong/hiddenapi/hiddenapi-flags.csv
      - manually change files to cause difference in flags to check
        that it detects the differences.
Change-Id: If2f90cfc41b6fff9fa4ac8b9d4973110938b9392
2021-10-05 15:47:05 +01:00
..
check_boot_jars OpenJDK 11: Adding jdk.internal.reflect to allowed package list 2021-09-27 15:39:06 +00:00
hiddenapi Allow implementation details to be excluded from signature patterns file 2021-10-05 15:47:05 +01:00
Android.bp [scripts] Add script to print clang prebuilts version 2021-06-25 11:57:16 -07:00
archive_repack.sh Repack libgcc.a to only include required objects 2019-10-24 16:34:54 -07:00
build-aml-prebuilts.sh Remove use of fake soong.variables. 2021-06-08 11:36:53 +01:00
build-mainline-modules.sh Clean up statsd-module-sdk-for-art. 2021-06-14 19:50:58 +01:00
build-ndk-prebuilts.sh Remove draft API support. 2021-04-13 15:55:47 -07:00
build-rustdocs.sh rust: doc: Zip up docs when done 2021-08-20 13:08:16 -07:00
build_broken_logs.go Update build_broken_logs script 2020-01-29 10:50:41 -08:00
check_do_not_merge.sh Disallow using error-prone merge strategies 2021-02-19 13:05:54 +00:00
construct_context.py Apply pylint to scripts/construct_context*.py 2021-08-26 01:06:48 +00:00
construct_context_test.py Apply pylint to scripts/construct_context*.py 2021-08-26 01:06:48 +00:00
conv_linker_config.py Apply pylint to conv_linker_config.py 2021-08-26 16:48:59 +00:00
diff_build_graphs.sh Have diff_build_graphs.sh print the number of lines in the diff 2017-11-29 12:54:43 -08:00
freeze-sysprop-api-files.sh Implement sysprop_library API stability check 2019-08-23 06:28:34 +00:00
gen-java-current-api-files.sh java_sdk_library: Allow api dir to be specified 2020-01-02 15:38:42 +00:00
gen-kotlin-build-file.py Move gen-kotlin-build-file.sh to python 2020-06-26 22:41:34 -07:00
gen-sysprop-api-files.sh Implement sysprop_library API stability check 2019-08-23 06:28:34 +00:00
gen_ndk_backedby_apex.sh Pass list of module libraries to gen_ndk_backed_by_apex.sh 2021-02-08 16:52:07 -08:00
gen_ndk_usedby_apex.sh NDK API coverage 2021-03-25 22:12:04 +00:00
generate-notice-files.py Make the script python3. 2021-09-13 14:54:01 -07:00
get_clang_version.py Merge "Read LLVM version from $LLVM_PREBUILTS_VERSION if set." 2021-09-09 18:17:11 +00:00
get_clang_version_test.py [scripts] Add script to print clang prebuilts version 2021-06-25 11:57:16 -07:00
jar-args.sh Add license headers to all go and shell files 2017-11-17 23:05:26 +00:00
jar-wrapper.sh Allow jar wrapper to take quoted arguments 2019-07-16 11:12:04 -07:00
jars-to-module-info-java.sh Add license headers to all go and shell files 2017-11-17 23:05:26 +00:00
jsonmodify.py Output json without trailing whitespaces but with trailing newlines. 2020-02-24 22:20:49 +00:00
lint_project_xml.py Fix minor issues in updatability lint CLs. 2021-04-22 13:40:41 -07:00
lint_project_xml_test.py Add lint_project_xml_test.py 2021-04-20 11:04:51 -07:00
manifest.py Optionally overwrite package value in test config. 2019-12-05 11:17:09 -08:00
manifest_check.py Fix statusfile used in dexpreopt 2021-09-20 18:24:56 +00:00
manifest_check_test.py Apply pylint to scripts/manifest_check*.py 2021-09-08 03:59:40 +00:00
manifest_fixer.py manifest_fixer: Set targetSdkVersion to '16' for libraries 2021-01-14 14:11:39 -06:00
manifest_fixer_test.py manifest_fixer: Set targetSdkVersion to '16' for libraries 2021-01-14 14:11:39 -06:00
mergenotice.py Make a soong-only copy of generate-notice-files.py 2020-03-03 13:50:53 -08:00
microfactory.bash Upgrade to golang protobuf api v2 2021-07-23 11:12:05 -07:00
ninja_rsp.py Move gen-kotlin-build-file.sh to python 2020-06-26 22:41:34 -07:00
OWNERS Update dex_preopt related OWNERS 2021-06-17 17:05:39 +01:00
package-check.sh Fix script for package check to work on macOS 2021-10-04 15:29:06 +00:00
rbc-run Make rbc-run accept a makefile instead of a product 2021-10-04 11:16:55 -07:00
reverse-deps.sh Scripts to evaluate dependency transitive closures. 2020-03-10 21:53:39 +00:00
rustfmt.toml Add standard rustfmt.toml 2020-06-22 13:34:59 +02:00
setup-android-build.sh Script to set up android build directory 2020-01-30 19:18:54 -08:00
setup_go_workspace_for_soong.sh Upgrade to golang protobuf api v2 2021-07-23 11:12:05 -07:00
strip.sh Use create_minidebuginfo tool instead of bash script. 2021-05-01 00:06:07 +01:00
system-clang-format system-clang-format: Add Standard: Cpp11 2019-07-10 15:04:04 -07:00
system-clang-format-2 system-clang-format: Add Standard: Cpp11 2019-07-10 15:04:04 -07:00
test_config_fixer.py Overwrite test-file-name in test config. 2020-01-17 06:08:12 -08:00
test_config_fixer_test.py Overwrite test-file-name in test config. 2020-01-17 06:08:12 -08:00
toc.sh Fix toc.sh, llvm-nm does not recognise '-f P' option 2021-04-03 03:21:24 +08:00
transitive-deps.sh Minor tweaks to usage message. 2020-06-24 08:18:15 -07:00
unpack-prebuilt-apex.sh Export dex implementation jars from prebuilt_apex 2021-01-15 18:14:10 +00:00