diff --git a/Tethering/Android.bp b/Tethering/Android.bp index cbc5e14139ac674318077ab13311fdefb9c34146..735dd17933c6bbe63dba55a27cf21977e065670b 100644 --- a/Tethering/Android.bp +++ b/Tethering/Android.bp @@ -51,6 +51,11 @@ android_library { cc_library { name: "libtetherutilsjni", sdk_version: "current", + apex_available: [ + "//apex_available:platform", // Used by InProcessTethering + "com.android.tethering", + ], + min_sdk_version: "current", srcs: [ "jni/android_net_util_TetheringUtils.cpp", ], @@ -123,4 +128,5 @@ android_app { // The permission configuration *must* be included to ensure security of the device required: ["NetworkPermissionConfig"], apex_available: ["com.android.tethering"], + min_sdk_version: "current", } diff --git a/Tethering/apex/Android.bp b/Tethering/apex/Android.bp index 20ccd2ad6453199028a04484088b5bc24a3c7e9c..67097a79e5c05ef1fc67129b4cb27042c16fc948 100644 --- a/Tethering/apex/Android.bp +++ b/Tethering/apex/Android.bp @@ -17,7 +17,7 @@ apex { name: "com.android.tethering", updatable: true, - min_sdk_version: "R", + min_sdk_version: "current", java_libs: ["framework-tethering"], apps: ["Tethering"], manifest: "manifest.json", diff --git a/Tethering/common/TetheringLib/Android.bp b/Tethering/common/TetheringLib/Android.bp index d029d2bded791a1205cd121255c9ae6f40c71320..d03115a158061b639629b3f53fc2f5142cceff31 100644 --- a/Tethering/common/TetheringLib/Android.bp +++ b/Tethering/common/TetheringLib/Android.bp @@ -37,6 +37,12 @@ aidl_interface { cpp: { enabled: false, }, + java: { + apex_available: [ + "//apex_available:platform", + "com.android.tethering", + ], + }, }, }