From cacc7f1062391beab51faf52bf273b4b68849e64 Mon Sep 17 00:00:00 2001 From: Etan Cohen Date: Thu, 21 Jan 2021 16:42:56 -0800 Subject: [PATCH 1/2] [WIFI] New permission to control restart of the WiFi subsystem Bug: 175084231 Bug: 178125790 Test: atest android.net.wifi.cts.WifiManagerTest#testRestartWifiSubsystem Change-Id: Iec9b579da912a105c46b2cb129bc625655124f52 --- core/api/system-current.txt | 1 + core/res/AndroidManifest.xml | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/core/api/system-current.txt b/core/api/system-current.txt index 21d820308230b..34e950defb6a8 100644 --- a/core/api/system-current.txt +++ b/core/api/system-current.txt @@ -200,6 +200,7 @@ package android { field public static final String REQUEST_NETWORK_SCORES = "android.permission.REQUEST_NETWORK_SCORES"; field public static final String REQUEST_NOTIFICATION_ASSISTANT_SERVICE = "android.permission.REQUEST_NOTIFICATION_ASSISTANT_SERVICE"; field public static final String RESET_PASSWORD = "android.permission.RESET_PASSWORD"; + field public static final String RESTART_WIFI_SUBSYSTEM = "android.permission.RESTART_WIFI_SUBSYSTEM"; field public static final String RESTORE_RUNTIME_PERMISSIONS = "android.permission.RESTORE_RUNTIME_PERMISSIONS"; field public static final String RESTRICTED_VR_ACCESS = "android.permission.RESTRICTED_VR_ACCESS"; field public static final String RETRIEVE_WINDOW_CONTENT = "android.permission.RETRIEVE_WINDOW_CONTENT"; diff --git a/core/res/AndroidManifest.xml b/core/res/AndroidManifest.xml index 2756bd95cb01c..35e583f7d5d45 100644 --- a/core/res/AndroidManifest.xml +++ b/core/res/AndroidManifest.xml @@ -1666,6 +1666,12 @@ + + + From d8d9e9c0419da00c3c73020e2bd6b18f6ef3db6e Mon Sep 17 00:00:00 2001 From: Etan Cohen Date: Thu, 21 Jan 2021 16:45:46 -0800 Subject: [PATCH 2/2] Grant shell permissions for restart WiFi subsystem to Shell to support CTS New permission is needed to allow CTS to trigger the new WiFi subsystem restart API. Bug: 175084231 Bug: 178125790 Test: atest android.net.wifi.cts.WifiManagerTest#testRestartWifiSubsystem Change-Id: I0eb0362e6421480c10ba64f923a9069d1258d4ca --- data/etc/privapp-permissions-platform.xml | 1 + packages/Shell/AndroidManifest.xml | 3 +++ 2 files changed, 4 insertions(+) diff --git a/data/etc/privapp-permissions-platform.xml b/data/etc/privapp-permissions-platform.xml index a185da19e71bf..30501fb536782 100644 --- a/data/etc/privapp-permissions-platform.xml +++ b/data/etc/privapp-permissions-platform.xml @@ -344,6 +344,7 @@ applications that come with the platform + diff --git a/packages/Shell/AndroidManifest.xml b/packages/Shell/AndroidManifest.xml index 4b6862c6d1862..dcbad3082bdbd 100644 --- a/packages/Shell/AndroidManifest.xml +++ b/packages/Shell/AndroidManifest.xml @@ -292,6 +292,9 @@ + + +