question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

android.permission-group.UNDEFINED permission

See original GitHub issue

After installing GmsCore-v0.2.11.202414.apk and rebooting, self-check does not allow me to grant permission to android.permission-group.UNDEFINED on my Android 10 device. The device is rooted and the apk is in /system/priv-app/.

img_8

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:26 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
GeographicConecommented, Jul 27, 2020

Also had this issue (perhaps because I was doing a dirty upgrade), and was able to solve it by adding the permission manually in /data/system/users/0/runtime-permissions.xml:

<pkg name="com.google.android.gms">
  <item name="android.permission.ACCESS_BACKGROUND_LOCATION" granted="true" flags="3320" />

I wrote some more details about it in the XDA thread. Note that the flags= attribute is important.

Before that I also tried pm grant com.google.android.gms android.permission.ACCESS_BACKGROUND_LOCATION which seems to work but doesn’t fix the problem.

The relevant permission in this case is android.permission.ACCESS_BACKGROUND_LOCATION. Does it help to un-grant location permission (in system settings) and then re-grant (either through self-check or system settings)

I don’t think the location settings can be accessed from the UI at all, at least for me (Android 10, current LOS 17.1):

Permission Controller

This just takes me to SettingsLocation, where I can only go to App permissionmicroG Services Core and get the same modal dialog again.

1reaction
upya4kocommented, Aug 3, 2020

Hi everyone, i make XML patcher python script (i am not programmer so it may look ugly) it make @GeographicCone patch automatically. You can download patcher here I not know how correctly and safe modify XML file in shell script, so it written on python, it mean you also need python to use this patcher, so i also make python installer magisk module. You can download python here

It my first experience of making Magisk modeles, so it may contain errors.

P.S. @GeographicCone thanks for solution, it also work for AFWall+ storage problem.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Dealing with initial permissions requests in Android - Medium
The thing is that asking Android's PackageManager for the list of permission groups and the permissions inside them results in something like a ......
Read more >
android.permission-group.UNDEFINED - Google Help
Hiw do I allow the following permission: android.permission-group.UNDEFINED. I have a notification from "Galaxy Watch3 PlugIn" that says "To ...
Read more >
<permission-group> | Android Developers
Declares a name for a logical grouping of related permissions. Individual permission join the group through the permissionGroup attribute of the ...
Read more >
[Android Q Beta] PackageManager getPermissionInfo returns ...
PERMISSION-GROUP.UNDEFINED as groupname. I tried this out with "android.permission.ACCESS_COARSE_LOCATION" and "android.permission.CAMERA" ...
Read more >
Galaxy wearable not working : r/android_beta - Reddit
The app don't star and ask me to grant permission to android.permission-group.UNDEFINED. I have a galaxy S3 frontier, and it's working just ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found