summaryrefslogtreecommitdiff
path: root/services/net
diff options
context:
space:
mode:
authorLorenzo Colitti <lorenzo@google.com>2020-04-11 00:54:45 +0900
committerLorenzo Colitti <lorenzo@google.com>2020-05-04 04:48:01 +0000
commita1c5d9312357b48fed4526b36649084cbc9371b8 (patch)
tree46d53261a081bfd2154319a8e88fa260dc31dd16 /services/net
parentc65d2c3e06770ab2ccdb0728e0003baea542cc81 (diff)
Only depend on the latest stable netd AIDL.
Currently, various components in the system server depend directly on numbered versions of the netd and dnsresolver AIDL interfaces. Introduce a new build target that only includes the latest stable version, and depend on that instead. This ensures that all components in the system server use the same version of the generated classes. Depending on multiple versions of the generated classes in the same (classloader) has in the past resulted in code compiled using a newer version using a generated class from an older version, and crashing with NoSuchMethodError when it calls a method that didn't exist. Also remove the dependency from wifi code to DNS resolver AIDL interfaces. Wifi does not (and should not) call the DNS resolver directly. Test: m Bug: 143732914 Bug: 153596226 Change-Id: I2c45853171df8d2c9726f4f12204a48862b30bb6
Diffstat (limited to 'services/net')
-rw-r--r--services/net/Android.bp6
1 files changed, 3 insertions, 3 deletions
diff --git a/services/net/Android.bp b/services/net/Android.bp
index bb5409b3e032..8b444b0fed41 100644
--- a/services/net/Android.bp
+++ b/services/net/Android.bp
@@ -12,8 +12,7 @@ java_library_static {
":services.net-sources",
],
static_libs: [
- "dnsresolver_aidl_interface-V4-java",
- "netd_aidl_interface-V3-java",
+ "netd_aidl_interfaces-platform-java",
"netlink-client",
"networkstack-client",
"net-utils-services-common",
@@ -44,7 +43,8 @@ java_library {
"framework-wifi-util-lib",
],
static_libs: [
- "dnsresolver_aidl_interface-V2-java",
+ // All the classes in netd_aidl_interface must be jarjar so they do not conflict with the
+ // classes generated by netd_aidl_interfaces-platform-java above.
"netd_aidl_interface-V3-java",
"netlink-client",
"networkstack-client",