android icon indicating copy to clipboard operation
android copied to clipboard

Consumes excessive amount of battery when no system location lock

Open TinfoilSubmarine opened this issue 1 year ago • 4 comments

  • App build number: 420500014
  • Android version: 14
  • Device: Google Pixel 5
  • Installation source: F-Droid

I'm seeing this issue intermittently with microG since MLS stopped working. When I'm somewhere where I can't get a lock from cached WiFi/cell tower or GPS, Owntracks continually requests location and uses tons of battery.

TinfoilSubmarine avatar Aug 27 '24 13:08 TinfoilSubmarine

Download password: changeme In the installer menu, select "gcc."

Reported user, mods please remove unless user proves this is on-topic and not malware/spam

TinfoilSubmarine avatar Aug 27 '24 15:08 TinfoilSubmarine

Difficult to know if this is a microG issue or the way in which OT is calling the Aosp Locationmanager:

https://github.com/owntracks/android/blob/master/project/app/src/oss/java/org/owntracks/android/location/AospLocationProviderClient.kt#L34 is the bit where the location source is selected, and it uses GPS when in "HighPriority" (ie, Move) mode, and all three of "FUSED", "NETWORK" & "PASSIVE" otherwise.

It could be that setting up three location requests is not the right thing to be doing here, and that just using FUSED is maybe better?

I'll have a think about how this could be toggled at runtime to make for easier testing.

growse avatar Sep 23 '24 19:09 growse

You can try to install Unified Nlp providers to see what happens.

Local NLP Backend Local GSM Location NominatimNlpBackend

You can also start to grab geo data for possible Mozilla LS successor NeoStumbler

kri164 avatar Oct 09 '24 11:10 kri164

You can try to install Unified Nlp providers to see what happens.

Local NLP Backend Local GSM Location NominatimNlpBackend

Note that these no longer work since v0.2.28.231657.

TinfoilSubmarine avatar Oct 09 '24 11:10 TinfoilSubmarine