summaryrefslogtreecommitdiff
path: root/apex
diff options
context:
space:
mode:
author Paul Duffin <paulduffin@google.com> 2022-04-01 15:26:56 +0000
committer Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> 2022-04-01 15:26:56 +0000
commit309228c182893d6244e541b9d3899094ce9d7b35 (patch)
tree1681c08d7a94dc029af8f32185ad821fd3c9bc03 /apex
parent2b3582a2538dc7bb1dd3bd550d0cad02e1de1ac9 (diff)
parent6c30056ac87aaca0c020ddbc4da664be441f8d07 (diff)
Remove implementation details from wifi hidden api flags am: 66cccbfe8d am: 6c30056ac8
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Wifi/+/2051301 Change-Id: I97114a60b6f7880f7977ab0ff17d7358f0d0df6a Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
Diffstat (limited to 'apex')
-rw-r--r--apex/Android.bp25
1 files changed, 25 insertions, 0 deletions
diff --git a/apex/Android.bp b/apex/Android.bp
index 6f202d4f6a..6dbb5b357d 100644
--- a/apex/Android.bp
+++ b/apex/Android.bp
@@ -96,6 +96,31 @@ bootclasspath_fragment {
max_target_o_low_priority: ["hiddenapi/hiddenapi-max-target-o-low-priority.txt"],
max_target_r_low_priority: ["hiddenapi/hiddenapi-max-target-r-low-priority.txt"],
unsupported: ["hiddenapi/hiddenapi-unsupported.txt"],
+
+ // 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.net.wifi",
+ ],
+
+ // 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.net.wifi.aware",
+ "android.net.wifi.hotspot2",
+ "android.net.wifi.p2p",
+ "android.net.wifi.rtt",
+ "android.net.wifi.util",
+ "com.android.wifi",
+ ],
},
}