From 75dbcfff9829360b538ac0c0d01f9dd65b925fab Mon Sep 17 00:00:00 2001 From: Roshan Pius Date: Mon, 2 Mar 2020 13:04:17 -0800 Subject: [PATCH] Shell: Allow retrieval of wifi network credentials This permission is needed for some wifi CTS tests. Is the minimally scoped permission that needs to be added? - Yes, this only allows the retireval of the saved wifi network credentials on the device. What options did you explore that did not need this permission? - Possibly creating a UI to ask for manual entry of network credentials. But, that would not let us do automated CTS tests (will need to become CTS verifier tests then). Bug: 150236894 Test: atest android.net.wifi.cts.WifiNetworkSpecifierTest Change-Id: I6881003510191f667950be1ab27a5399fe3914b4 --- 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 73d9cc06a7488..76f8fdb694526 100644 --- a/data/etc/privapp-permissions-platform.xml +++ b/data/etc/privapp-permissions-platform.xml @@ -330,6 +330,7 @@ applications that come with the platform + diff --git a/packages/Shell/AndroidManifest.xml b/packages/Shell/AndroidManifest.xml index 56d5de473bfc9..ef7f167652f28 100644 --- a/packages/Shell/AndroidManifest.xml +++ b/packages/Shell/AndroidManifest.xml @@ -269,6 +269,9 @@ + + +