microg / microg/GmsCore

Location requests staying active indefinitely (roaming still not addressed)

Open
#2,625 35 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

📍 Location bug
Dominant language
Java
Stars
14.6k
Forks
3.2k
Avg merge
12d 11h
Merged PRs (30d)
4

Description

Describe the bug
With the new 0.3.4 installed, any location request results in microG staying active indefinitely.

To Reproduce
Steps to reproduce the behavior:

  1. Start any app which require (network) location.
  2. Send the app in the background.
  3. The location icon in the status bar remains on indefinitely, although no application is currently asking for location
  4. Long press quick button location. The last request is always microG. The fact that microG consistently shows last location request being made 0 minutes ago is an indication that microG (network) location remains active indefinitely.

Expected behavior
Any/all location requests should be momentary, especially when all location-requesting apps are in the background.

Screenshots
See attached screenshot

System
Android Version: 13
Custom ROM: Samsung S20 (original firmware, debloated)

Additional context
Add any other context about the problem here.
Screenshot_20241113_081651_Settings

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue on Android 13 using the listed steps: request network location, background the requesting app, and check whether the status-bar location icon remains active. Trace the location-request lifecycle to determine why microG remains the last requester; done means requests stop when all requesting apps are in the background and the icon no longer stays active indefinitely.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.