summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris.CC Lee <chriscclee@google.com>2022-05-04 20:13:37 +0800
committerChris.CC Lee <chriscclee@google.com>2022-05-10 00:36:42 +0800
commit4e547e304ebc8bc44e0cbda491c3acd19290d316 (patch)
tree303946353043bab152ad59831ce6ba85aa46a2ae
parent2041822503bf202cc0684db32855ebabff036b3f (diff)
downloadsunfish-4e547e304ebc8bc44e0cbda491c3acd19290d316.tar.gz
[Sunfish] Add NEARBY_WIFI_DEVICES for Restore
We used ACCESS_FINE_LOCATION to start a WiFi P2P connection. From Android T, the required permission is changed to NEARBY_WIFI_DERVICES instead. Bug: 219855567 Test: Manual tested on Oriole. Used a local built Restore APK which declares the use of the permission. Push that APK to the test Oriole and validate the permission is granted by default. Change-Id: Ia883b34a0cfe2939454743836e7e22d21a9cd574
-rw-r--r--default-permissions.xml2
1 files changed, 2 insertions, 0 deletions
diff --git a/default-permissions.xml b/default-permissions.xml
index 8fef729d..dfb07d91 100644
--- a/default-permissions.xml
+++ b/default-permissions.xml
@@ -60,7 +60,9 @@
<permission name="android.permission.READ_CALL_LOG" fixed="false"/>
<permission name="android.permission.WRITE_CALL_LOG" fixed="false"/>
<!-- Used to set up a Wi-Fi P2P network -->
+ <!-- TODO(b/231966826): Remove the location permission after Restore targets to T. -->
<permission name="android.permission.ACCESS_FINE_LOCATION" fixed="false"/>
+ <permission name="android.permission.NEARBY_WIFI_DEVICES" fixed="false"/>
<!-- Notifications -->
<permission name="android.permission.POST_NOTIFICATIONS" fixed="false"/>
</exception>