From 74b274424a5f6a9fb70ee2570425868918ca573b Mon Sep 17 00:00:00 2001 From: Remi NGUYEN VAN Date: Fri, 15 Jan 2021 20:26:28 +0900 Subject: [PATCH] Add dependency on system API in connectivity The system API are moved to the connectivity module: add dependency on the stubs from framework-tethering. This only allows tethering to depend on system API defined by the connectivity classes, not on any private code, even if they are eventually bundled in the same APEX. Bug: 171540887 Test: m Merged-In: Iebfb3e01c5d2480e84edcfc76cf489520bd60237 Merged-In: Ic2491f04880ff66abc3b2d3aaee6168e18f6d68a (clean cherry-pick from internal branch) Change-Id: Iebfb3e01c5d2480e84edcfc76cf489520bd60237 --- Tethering/Android.bp | 1 + Tethering/common/TetheringLib/Android.bp | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/Tethering/Android.bp b/Tethering/Android.bp index 742fd02bb0..320ba8f845 100644 --- a/Tethering/Android.bp +++ b/Tethering/Android.bp @@ -41,6 +41,7 @@ java_defaults { "netd-client", ], libs: [ + "framework-connectivity", "framework-statsd.stubs.module_lib", "framework-tethering.impl", "framework-wifi", diff --git a/Tethering/common/TetheringLib/Android.bp b/Tethering/common/TetheringLib/Android.bp index 2631d08774..b141eaea8c 100644 --- a/Tethering/common/TetheringLib/Android.bp +++ b/Tethering/common/TetheringLib/Android.bp @@ -26,6 +26,13 @@ java_sdk_library { ], srcs: [":framework-tethering-srcs"], + libs: ["framework-connectivity"], + stub_only_libs: ["framework-connectivity"], + aidl: { + include_dirs: [ + "frameworks/base/packages/Connectivity/framework/aidl-export", + ], + }, jarjar_rules: "jarjar-rules.txt", installable: true,