[Gs101] 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: I56924aa3e0250c94bc4fefe5d9b901b4e23d0c2b
This commit is contained in:
Chris.CC Lee 2022-04-29 15:52:49 +08:00 committed by Chris Lee
parent 3d0ce54976
commit 908fbc0a20

View file

@ -80,7 +80,9 @@
<permission name="android.permission.READ_CALL_LOG" fixed="false"/> <permission name="android.permission.READ_CALL_LOG" fixed="false"/>
<permission name="android.permission.WRITE_CALL_LOG" fixed="false"/> <permission name="android.permission.WRITE_CALL_LOG" fixed="false"/>
<!-- Used to set up a Wi-Fi P2P network --> <!-- 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.ACCESS_FINE_LOCATION" fixed="false"/>
<permission name="android.permission.NEARBY_WIFI_DEVICES" fixed="false"/>
<!-- Notifications --> <!-- Notifications -->
<permission name="android.permission.POST_NOTIFICATIONS" fixed="false"/> <permission name="android.permission.POST_NOTIFICATIONS" fixed="false"/>
</exception> </exception>