DiaKEM / dexcom-g7-apk-patcher

Dexcom G7 .apk patcher | ✅ AAPS Broadcasting ✅ Disable compatibility checks ✅ Enable Screenshots ✅ Decrease required android version
87 stars 30 forks source link

Exclude Location/GPS permissions to reduce battery consumption #32

Closed khskekec closed 1 year ago

khskekec commented 1 year ago

Hi,

@blaqone already tested the exclusion of GPS-Permissions to decrease the battery consumption of the G7 App.

Actually we know that receiving sensor readings without this permission works as expected.

The only case we have to test is to check if sensor activation/deactivation/calibration is also possible.

blaqone commented 1 year ago

Installing the app with disabled phone-wide GPS permissions does not work. I had to enable it, but was able to disable it after the gps location prompt

blaqone commented 1 year ago

Activating and connecting to a sensor only works with enabled GPS permissions.

blaqone commented 1 year ago

Calibrations do work with disabled GPS permissions.

khskekec commented 1 year ago

In this case best would be to grant the permission but extract the code which makes unnecessary calls to retrieve location informations. This would decrease the battery consumption a lot.

blaqone commented 1 year ago

I am unsure if this is an Android wide problem or feature: When i disable phone wide gps location, the g7 app works perfectly fine. But when I remove the location permission only for the G7 app, the app does not get bg values.

khskekec commented 1 year ago

Hi,

@blaqone checked this again and the battery usage without location service is nearly zero.

That's why we will investigate this topic further..

Kind regards

Selçuk

khskekec commented 1 year ago

Hi @blaqone,

might be that this issue is resolved with new version right?

How should we deal with this issue ticket?

blaqone commented 1 year ago

@khskekec I think we can close it, as more people will use the latest version - and we know it completely different there.

And as a solution: Manually disabling location service phone wide solves the problem too. You can der able once you set a sensor.