summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorJiyong Park <jiyong@google.com>2020-01-06 13:34:00 +0900
committerJiyong Park <jiyong@google.com>2020-01-07 16:21:41 +0900
commit7ee4eef9bdb197ad5e306d790068e46be805b1e4 (patch)
treed9d773a830838d91f1213619ec7a8cbdca5c4cd7 /service
parent4548c0449eec149d52a00aaf048e118b6af20739 (diff)
Platform shouldn't directly link to jars in APEXes
The non-updatable part of the platform shouldn't directly link to the boot jars in APEXes. Ensure this by 1) setting the visibility property for the boot jars so that they are not visible to non-APEX modules and 2) setting the apex_available property so that the boot jars are only built for the corresponding APEXes, but not for others. Bug: None Test: m Change-Id: I6130b64790b9892a60bc0704a5b60a0fffa89f34
Diffstat (limited to 'service')
-rw-r--r--service/Android.bp9
1 files changed, 9 insertions, 0 deletions
diff --git a/service/Android.bp b/service/Android.bp
index 084b45c27..5d23aa532 100644
--- a/service/Android.bp
+++ b/service/Android.bp
@@ -155,6 +155,15 @@ java_library {
init_rc: ["wifi.rc"],
plugins: ["java_api_finder"],
+
+ visibility: [
+ "//frameworks/opt/net/wifi/service/apex",
+ "//frameworks/opt/net/wifi/tests/wifitests/apex",
+ ],
+ apex_available: [
+ "com.android.wifi",
+ "test_com.android.wifi",
+ ],
}
// Westworld auto-generated code