From cd813a30edac3785d5c36de54ff4ed739ab39f97 Mon Sep 17 00:00:00 2001 From: markchien Date: Thu, 11 Nov 2021 00:42:55 +0800 Subject: [PATCH] Compile android-non-updatable with framework-tethering module-lib stub To resolve framework-tethering's module-lib for android-non-updatable API, compile android-non-updatable with sdk_module-lib_current_framework-tethering. Bug: 205658040 Test: make update-api && make Change-Id: Ib4bd0312f6c621ba19552a2608e47f9158b0fe25 --- Android.bp | 1 + StubLibraries.bp | 1 + 2 files changed, 2 insertions(+) diff --git a/Android.bp b/Android.bp index 00b419897f348..8e851db53979b 100644 --- a/Android.bp +++ b/Android.bp @@ -566,6 +566,7 @@ stubs_defaults { "android.hardware.vibrator-V1.3-java", "framework-protos", "art.module.public.api", + "sdk_module-lib_current_framework-tethering", // There are a few classes from modules used by the core that // need to be resolved by metalava. We use a prebuilt stub of the // full sdk to ensure we can resolve them. If a new class gets added, diff --git a/StubLibraries.bp b/StubLibraries.bp index 44c55c26153d4..d090296523edd 100644 --- a/StubLibraries.bp +++ b/StubLibraries.bp @@ -318,6 +318,7 @@ java_library { defaults: ["android-non-updatable_defaults_stubs_current"], srcs: [":module-lib-api-stubs-docs-non-updatable"], libs: [ + "sdk_module-lib_current_framework-tethering", "sdk_system_current_android", // NOTE: The below can be removed once the prebuilt stub contains IKE. "sdk_system_current_android.net.ipsec.ike",