microg / microg/UnifiedNlp

Issues with LocationAccessPolicy and getAllCellInfo

Open
#232 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
1.1k
Forks
221
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**

A message appears on the device from time to time stating "Please fix this app". In the log I find:

```
[...]
03-13 18:57:38.777 6499 6499 D USettings: Location was not available, requesting once
03-13 18:57:38.788 6571 6757 E LocationAccessPolicy: Allowing org.microg.nlp.backend.ichnaea fine because it doesn't target API 29 yet. Please fix this app. Called from getAllCellInfo
03-13 18:57:38.798 6571 6757 I LocationAccessPolicy: org.microg.nlp.backend.ichnaea is aware of coarse but the app-ops permission is specifically denied.
03-13 18:57:38.804 6571 6757 E LocationAccessPolicy: Allowing org.microg.nlp.backend.ichnaea fine because it doesn't target API 29 yet. Please fix this app. Called from getCellLocation
03-13 18:57:38.810 6571 6757 I LocationAccessPolicy: org.microg.nlp.backend.ichnaea is aware of coarse but the app-ops permission is specifically denied.
03-13 18:57:38.814 6571 6757 E LocationAccessPolicy: Allowing org.microg.nlp.backend.ichnaea fine because it doesn't target API 29 yet. Please fix this app. Called from getAllCellInfo
03-13 18:57:38.823 6571 6757 I LocationAccessPolicy: org.microg.nlp.backend.ichnaea is aware of coarse but the app-ops permission is specifically denied.
03-13 18:57:38.824 8177 8197 D IchnaeaBackendService: Cells: 0
[...]
```

**To Reproduce**

1. Enable "Mozilla Location Service"
2. Use and app which request location
3. See error message on screen and in log

**Expected behavior**

No error message should been shown.

**Screenshots**

n/a

**System**

Android Version: 11
Custom ROM: [LineageOS for microG](https://lineage.microg.org/) 18.1

**Additional context**

n/a

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce on Android 11 with Mozilla Location Service enabled, then trace the LocationAccessPolicy calls around getAllCellInfo and getCellLocation, including the USettings request and IchnaeaBackendService log. Done means the described setup no longer shows the “Please fix this app” message or the corresponding LocationAccessPolicy errors.

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
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.