3 ms·
> For the application to work, you must give the Android application permissions that let it obtain location information otherwise it won’t work: For Bluetooth
by Ajedi32 3y ago
> For the application to work, you must give the Android application permissions that let it obtain location information otherwise it won’t work: For Bluetooth scanning, Android requires this permission
This is not entirely true anymore as of Android 12 (API level 32). See https://developers.google.com/nearby/connections/android/get-started https://developers.google.com/nearby/connections/android/get..., which suggests declaring maxSdkVersion="31" for the ACCESS_FINE_LOCATION permission, since it isn't required for Nearby Connections in Android versions newer than that.
The hard part about locking down permissions after the fact like this is that it requires app developers to play ball. Forcibly blocking location access to apps that currently rely on those APIs to scan for Bluetooth connections would break a lot of apps, and not forcibly blocking it makes it easy for app developers to just continue requesting those permissions even though they no longer need them. Furthermore, users are already conditioned to expect location access permissions for apps that need Bluetooth so it doesn't even look suspicious, and there's a lot of outdated documentation out there telling developers to request that permission in that situation even though they no longer need it.