#3387 use ACCESS_FINE_LOCATION per Google feedback

https://issuetracker.google.com/issues/140696830
This commit is contained in:
orionlee 2019-09-13 12:53:59 -07:00
parent c8dda3c0c0
commit d559a8b906
2 changed files with 3 additions and 3 deletions

View File

@ -198,7 +198,7 @@ public class AutoDownloadPreferencesFragment extends PreferenceFragmentCompat {
}
private class PermissionHelper {
private static final String requestedPermission = Manifest.permission.ACCESS_COARSE_LOCATION;
private static final String requestedPermission = Manifest.permission.ACCESS_FINE_LOCATION;
private static final int permissionRequestCode = 1;
private static final String PREF_KEY_PERMISSION_REQUEST_PROMPT = "prefAutoDownloadWifiFilterAndroid10PermissionPrompt";

View File

@ -9,11 +9,11 @@
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.VIBRATE" />
<!-- ACCESS_COARSE_LOCATION is needed only on Android 10+,
<!-- ACCESS_FINE_LOCATION is needed only on Android 10+,
for Automatic Download Wifi filter's UI, which uses
WifiManager.WifiManager.getConfiguredNetworks()
-->
<uses-permission-sdk-23 android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission-sdk-23 android:name="android.permission.ACCESS_FINE_LOCATION" />
<application
android:allowBackup="true"