From 1fe1e539e1d718ddc0a9a62b9a3d01ad22e7e699 Mon Sep 17 00:00:00 2001 From: Nikita Ioffe Date: Sat, 31 Oct 2020 22:41:41 +0000 Subject: [PATCH] com.android.tethering: set min_sdk_version 30 Tethering is updatable apex module that was launched in R, hence it and all it dependencies should specify min_sdk_version <= 30. Test: m Bug: 171668006 Bug: 171330443 Change-Id: Ic91cf96dda6419d1038b0329b920f9cd24482aef Merged-In: Ic91cf96dda6419d1038b0329b920f9cd24482aef (cherry picked from commit bee20e84f87514b90c4b701b31582a7931c6e2ca) --- Tethering/Android.bp | 7 ++++--- Tethering/apex/Android.bp | 2 +- Tethering/common/TetheringLib/Android.bp | 1 + 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Tethering/Android.bp b/Tethering/Android.bp index 9b8bac6168..83a4ebc72b 100644 --- a/Tethering/Android.bp +++ b/Tethering/Android.bp @@ -17,6 +17,7 @@ java_defaults { name: "TetheringAndroidLibraryDefaults", sdk_version: "module_current", + min_sdk_version: "30", srcs: [ "src/**/*.java", ":framework-tethering-shared-srcs", @@ -57,7 +58,7 @@ cc_library { "//apex_available:platform", // Used by InProcessTethering "com.android.tethering", ], - min_sdk_version: "current", + min_sdk_version: "30", srcs: [ "jni/android_net_util_TetheringUtils.cpp", ], @@ -118,7 +119,7 @@ android_app { // InProcessTethering is a replacement for Tethering overrides: ["Tethering"], apex_available: ["com.android.tethering"], - min_sdk_version: "current", + min_sdk_version: "30", } // Updatable tethering packaged as an application @@ -132,5 +133,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", + min_sdk_version: "30", } diff --git a/Tethering/apex/Android.bp b/Tethering/apex/Android.bp index 67097a79e5..a6ea99e9cc 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: "current", + min_sdk_version: "30", java_libs: ["framework-tethering"], apps: ["Tethering"], manifest: "manifest.json", diff --git a/Tethering/common/TetheringLib/Android.bp b/Tethering/common/TetheringLib/Android.bp index 02dfdfec77..27b17c3667 100644 --- a/Tethering/common/TetheringLib/Android.bp +++ b/Tethering/common/TetheringLib/Android.bp @@ -28,6 +28,7 @@ java_sdk_library { hostdex: true, // for hiddenapi check apex_available: ["com.android.tethering"], permitted_packages: ["android.net"], + min_sdk_version: "30", } filegroup {