From 6d575cace8c8a504f238719a0485fdbfcc167a6b Mon Sep 17 00:00:00 2001 From: Remi NGUYEN VAN Date: Wed, 13 Jan 2021 15:44:38 +0900 Subject: [PATCH] Add framework-connectivity to the Tethering APEX Add framework-connectivity and its jni library dependency to the APEX. Bug: 171540887 Test: device boots, has connectivity Ignore-AOSP-First: Merge conflicts, will cherry-pick Change-Id: I72fc7fee7bfcd909cbc79b4c34e8b3f29055d378 --- Tethering/apex/Android.bp | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/Tethering/apex/Android.bp b/Tethering/apex/Android.bp index 164bda41db..5be393373e 100644 --- a/Tethering/apex/Android.bp +++ b/Tethering/apex/Android.bp @@ -20,17 +20,22 @@ package { apex { name: "com.android.tethering", - // TODO: make updatable again once this contains only updatable artifacts (in particular, this - // cannot build as updatable unless service-connectivity builds against stable API). - updatable: false, - // min_sdk_version: "30", + compile_multilib: "both", + updatable: true, + min_sdk_version: "30", java_libs: [ + "framework-connectivity", "framework-tethering", "service-connectivity", ], - jni_libs: [ - "libservice-connectivity", - ], + multilib: { + first: { + jni_libs: ["libservice-connectivity"] + }, + both: { + jni_libs: ["libframework-connectivity-jni"], + } + }, bpfs: [ "offload.o", "test.o",