microg / UnifiedNlp

Alternative network location provider for Android, with plugin interface to easily integrate third-party location providers.
944 stars 207 forks source link

Issues with LocationAccessPolicy and getAllCellInfo #232

Open tobru opened 2 years ago

tobru commented 2 years ago

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 18.1

Additional context

n/a