summaryrefslogtreecommitdiff
path: root/Android.bp
diff options
context:
space:
mode:
authorPaul Duffin <paulduffin@google.com>2022-03-21 17:13:34 +0000
committerPaul Duffin <paulduffin@google.com>2022-03-23 10:12:19 +0000
commit90a07d4036defa12aa7734d98bd7ac966587b3b1 (patch)
treebc146c854c6b7222a4d74b24c87a80aad62265c9 /Android.bp
parentb38088bcec08b3a633fb35b7ebada32d24784217 (diff)
downloadPermission-90a07d4036defa12aa7734d98bd7ac966587b3b1.tar.gz
Remove implementation details from permission hidden api flags
Ran the following to compute the set of split_packages and package_prefixes properties. m analyze_bcpf && analyze_bcpf --bcpf com.android.permission-bootclasspath-fragment Bug: 194063708 Test: m out/soong/hiddenapi/hiddenapi-flags.csv Change-Id: I148891630da53d81ccdc6d3246a0b81e1e0fadc9 Merged-In: I148891630da53d81ccdc6d3246a0b81e1e0fadc9
Diffstat (limited to 'Android.bp')
-rw-r--r--Android.bp23
1 files changed, 23 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
index 03c8ccf2c..3856a57b0 100644
--- a/Android.bp
+++ b/Android.bp
@@ -80,6 +80,29 @@ bootclasspath_fragment {
additional_stubs: [
"android-non-updatable",
],
+
+ hidden_api: {
+ // The following packages contain classes from other modules on the
+ // bootclasspath. That means that the hidden API flags for this module
+ // has to explicitly list every single class this module provides in
+ // that package to differentiate them from the classes provided by other
+ // modules. That can include private classes that are not part of the
+ // API.
+ split_packages: [
+ "android.permission",
+ ],
+
+ // The following packages and all their subpackages currently only
+ // contain classes from this bootclasspath_fragment. Listing a package
+ // here won't prevent other bootclasspath modules from adding classes in
+ // any of those packages but it will prevent them from adding those
+ // classes into an API surface, e.g. public, system, etc.. Doing so will
+ // result in a build failure due to inconsistent flags.
+ package_prefixes: [
+ "android.app.role",
+ "com.android.permission",
+ ],
+ },
}
// Encapsulate the contributions made by the com.android.permission to the systemserverclasspath.