Merge "Bump tethering target sdk version to 31"

This commit is contained in:
Treehugger Robot
2022-01-13 05:00:02 +00:00
committed by Gerrit Code Review
5 changed files with 9 additions and 6 deletions

View File

@@ -21,6 +21,7 @@ package {
java_defaults {
name: "TetheringApiLevel",
sdk_version: "module_current",
target_sdk_version: "31",
min_sdk_version: "30",
}

View File

@@ -19,14 +19,16 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.android.networkstack.tethering"
android:sharedUserId="android.uid.networkstack">
<uses-sdk android:minSdkVersion="29" android:targetSdkVersion="29" />
<!-- Permissions must be defined here, and not in the base manifest, as the tethering
running in the system server process does not need any permission, and having
privileged permissions added would cause crashes on startup unless they are also
added to the privileged permissions allowlist for that package. -->
added to the privileged permissions allowlist for that package. EntitlementManager
would set exact alarm but declare SCHEDULE_EXACT_ALARM is not necessary here because
privilege application would be in the allowlist. -->
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.BLUETOOTH_CONNECT" />
<uses-permission android:name="android.permission.BLUETOOTH_PRIVILEGED" />
<uses-permission android:name="android.permission.BROADCAST_STICKY" />
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />

View File

@@ -48,7 +48,7 @@ java_defaults {
// Use with NetworkStackJarJarRules.
android_library {
name: "TetheringIntegrationTestsLatestSdkLib",
target_sdk_version: "30",
target_sdk_version: "31",
platform_apis: true,
defaults: ["TetheringIntegrationTestsDefaults"],
visibility: [
@@ -128,7 +128,7 @@ android_test {
name: "TetheringCoverageTests",
platform_apis: true,
min_sdk_version: "30",
target_sdk_version: "30",
target_sdk_version: "31",
test_suites: ["device-tests", "mts-tethering"],
test_config: "AndroidTest_Coverage.xml",
defaults: ["libnetworkstackutilsjni_deps"],

View File

@@ -22,7 +22,7 @@ android_test {
name: "MtsTetheringTestLatestSdk",
min_sdk_version: "30",
target_sdk_version: "30",
target_sdk_version: "31",
libs: [
"android.test.base",

View File

@@ -87,7 +87,7 @@ android_library {
static_libs: [
"TetheringApiStableLib",
],
target_sdk_version: "30",
target_sdk_version: "31",
visibility: [
"//packages/modules/Connectivity/tests:__subpackages__",
"//packages/modules/Connectivity/Tethering/tests:__subpackages__",