SimpleSmsRemote icon indicating copy to clipboard operation
SimpleSmsRemote copied to clipboard

ACCESS_COARSE_LOCATION permission

Open ghost opened this issue 6 years ago • 3 comments

Hi. Could you add the permission "ACCESS_COARSE_LOCATION" (not only the GPS, even the network)?

ghost avatar Jun 07 '19 13:06 ghost

As i know, with ACCESS_FINE_LOCATION you are able to access GPS as well as the network. In other words, ACCESS_FINE_LOCATION automatically implies ACCESS_COARSE_LOCATION.

From the android documentation:

You only need to request one of the Android location permissions, depending on the level of accuracy you need: ...

tranquvis avatar Jul 08 '19 16:07 tranquvis

I don't know, but I tried to get my position using Simple sms remote and Sophos Mobile Security in two ways:

  1. away from home
  2. inside the house

In the first case, both apps returned my position, while in the second case, only Sophos did.

I checked, and Sophos has both permissions and hence the request for your app ..

ghost avatar Jul 09 '19 15:07 ghost

I just did some more research, which confirmed my initial description. ACCESS_COARSE_LOCATION should not have an effect. Maybe other apps request ACCESS_COARSE_LOCATION if you don't grant ACCESS_FINE_LOCATION.

But it could be that my location request algorithm is improvable. Maybe we should change the Criteria in LocationUtils.RequestNewLocation. This needs some tests.

tranquvis avatar Jul 09 '19 17:07 tranquvis