From 5ba2950bfbe0e8e3d5ef29b4487073f90685e3e7 Mon Sep 17 00:00:00 2001 From: satayev Date: Wed, 12 May 2021 13:28:58 +0100 Subject: [PATCH] Add bootclasspath_fragment. Note that the contents of the bootclasspath_fragment are added as dependencies to an apex, so there is no need to duplicate them in java_libs. Bug: 180105615 Test: atest CtsClasspathsTestCases Change-Id: Ia19ed0d5e13676882239dd5a1456c97549119994 Merged-In: Ia19ed0d5e13676882239dd5a1456c97549119994 --- Tethering/apex/Android.bp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Tethering/apex/Android.bp b/Tethering/apex/Android.bp index 164bda41db..917bf2116e 100644 --- a/Tethering/apex/Android.bp +++ b/Tethering/apex/Android.bp @@ -24,8 +24,10 @@ apex { // cannot build as updatable unless service-connectivity builds against stable API). updatable: false, // min_sdk_version: "30", + bootclasspath_fragments: [ + "com.android.tethering-bootclasspath-fragment", + ], java_libs: [ - "framework-tethering", "service-connectivity", ], jni_libs: [ @@ -56,6 +58,13 @@ android_app_certificate { certificate: "com.android.tethering", } +// Encapsulate the contributions made by the com.android.tethering to the bootclasspath. +bootclasspath_fragment { + name: "com.android.tethering-bootclasspath-fragment", + contents: ["framework-tethering"], + apex_available: ["com.android.tethering"], +} + override_apex { name: "com.android.tethering.inprocess", base: "com.android.tethering",