Skip to content

I can't give the new permission to search device accounts #2868

@girshcatt

Description

@girshcatt

Describe the bug
I cant activate the search device accounts permission checkbox

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Permissions section in microg'
  2. Click on 'Search device accounts checkbox'
  3. See nothing changed

Expected behavior
Its expected for microg to redirect me on giving permission window or something

Screenshots

Image

System
Android Version: 14
Custom ROM: CrDroid 10.9

Activity

dimka40185

dimka40185 commented on Apr 25, 2025

@dimka40185

I have the same problem on Huawei Pura 70

Image

ale5000-git

ale5000-git commented on Apr 25, 2025

@ale5000-git
Member

Hi,
it is opportune that you provide an english translation of the thing not ticked in the image.
It isn't like everything know your language and an image can't be translated.

ale5000-git

ale5000-git commented on Apr 25, 2025

@ale5000-git
Member

Also about the new permissions, most are privileged permission so they can't be granted unless you place the updated files in the system priv-app folder (with the corresponding new xml).

This apply only to normal phones, for Huawei there is no solution other then wait a ROM update (hopefully Huawei will fix it).

dimka40185

dimka40185 commented on Apr 25, 2025

@dimka40185

Hi, it is opportune that you provide an english translation of the thing not ticked in the image. It isn't like everything know your language and an image can't be translated.

Image
Thanks for the explanation

ale5000-git

ale5000-git commented on Apr 25, 2025

@ale5000-git
Member

For the GSF issue you just need to install Services Framework Proxy from here: https://microg.org/download.html

For the issue with permission to "find accounts on the device" try to grant manually the contacts permission to microG Services in the Android settings.

girshcatt

girshcatt commented on Apr 25, 2025

@girshcatt
Author

Also about the new permissions, most are privileged permission so they can't be granted unless you place the updated files in the system priv-app folder (with the corresponding new xml).

This apply only to normal phones, for Huawei there is no solution other then wait a ROM update (hopefully Huawei will fix it).

Btw do I need only to have MicroG 0.3.7 as system app, or now i need also to put Companion there?

girshcatt

girshcatt commented on Apr 25, 2025

@girshcatt
Author

also i noticed that i can give location & notification permissions to companion, how are these permissions used in it?

ale5000-git

ale5000-git commented on Apr 25, 2025

@ale5000-git
Member

Btw do I need only to have MicroG 0.3.7 as system app, or now i need also to put Companion there?

If possible also Companion should be a privileged system app (with the corresponding xml file) to have everything working.
Note that all microG works also as user app, but there may be some limitations.

also i noticed that i can give location & notification permissions to companion, how are these permissions used in it?

There have been quite a few changes in the new version and I don't remember everything in detail but others may know it better.

HanabishiRecca

HanabishiRecca commented on Apr 25, 2025

@HanabishiRecca

For the issue with permission to "find accounts on the device" try to grant manually the contacts permission to microG Services in the Android settings.

It is granted.

Although, there is GET_ACCOUNTS app op which simply refuses to be granted no matter what.

Image

girshcatt

girshcatt commented on Apr 26, 2025

@girshcatt
Author

@HanabishiRecca how can i fix this?

HanabishiRecca

HanabishiRecca commented on Apr 26, 2025

@HanabishiRecca

No idea.

refuses to be granted no matter what

chirayudesai

chirayudesai commented on Apr 29, 2025

@chirayudesai
Contributor

com.google.android.gms-250932014.apk aka 0.3.7:

  <uses-permission android:name="android.permission.AUTHENTICATE_ACCOUNTS" android:maxSdkVersion="22"/>
  <uses-permission android:name="android.permission.GET_ACCOUNTS" android:maxSdkVersion="22"/>
  <uses-permission android:name="android.permission.MANAGE_ACCOUNTS" android:maxSdkVersion="22"/>

com.google.android.gms-250932014.apk aka 0.3.6:

  <uses-permission android:name="android.permission.AUTHENTICATE_ACCOUNTS"/>
  <uses-permission android:name="android.permission.GET_ACCOUNTS"/>
  <uses-permission android:name="android.permission.MANAGE_ACCOUNTS"/>

And thus it's not granted on any device with a higher SdkVersion.

It's because of https://github.com/microg/GmsCore/blob/v0.3.7.250932/play-services-auth-workaccount/core/src/main/AndroidManifest.xml

Ref: https://developer.android.com/reference/android/Manifest.permission#GET_ACCOUNTS

@fynngodau why was the maxSdkVersion needed there?

18 remaining items

baahver

baahver commented on May 1, 2025

@baahver

Whats wrong with 0.3.7?

See:

Only the problem with "Permission to accounts on this device" is a bug of microG 0.3.7 (and it affect Android >= 6.0).

In ale5000-git post.

As far as I understand is that 0.3.7 introduced a bug with some permissions

lucasmz-dev

lucasmz-dev commented on May 2, 2025

@lucasmz-dev
Contributor

Is there any known side effect of this being not granted? Everything seems to work fine here

HanabishiRecca

HanabishiRecca commented on May 3, 2025

@HanabishiRecca

I haven't seen any side effects either. So idk why people are so worried about it.

flame-0

flame-0 commented on May 3, 2025

@flame-0

I haven't seen any side effects either. So idk why people are so worried about it.

Everyone reacts differently, so if something feels off, it's totally fair to be concerned.

ale5000-git

ale5000-git commented on May 3, 2025

@ale5000-git
Member

Most of the code of microG isn't used by microG directly but it is used by other apps, so it is difficult to know if there are side effects.
Also some problems aren't noticeable and things may fail silently (theoretically it shouldn't happen but still it may happen).

tslpre

tslpre commented on May 24, 2025

@tslpre

Most of the code of microG isn't used by microG directly but it is used by other apps, so it is difficult to know if there are side effects. Also some problems aren't noticeable and things may fail silently (theoretically it shouldn't happen but still it may happen).

Well, for example, my bank app doesn't log in anymore. While the app is on the same version, as soin as I updated to 0.3.7 it stopped working. I guess that many other apps are not affected.

benwaffle

benwaffle commented on May 27, 2025

@benwaffle

I'm running stock CalyxOS (v6.7.20) and I'm seeing the same box unticked.

zd3sf

zd3sf commented on Jun 9, 2025

@zd3sf

WhatsApp cant find google drive account for backing up on 0.3.7

added this to the 0.3.8 milestone on Jun 9, 2025
Suda-Baka

Suda-Baka commented on Jul 29, 2025

@Suda-Baka

Also about the new permissions, most are privileged permission so they can't be granted unless you place the updated files in the system priv-app folder (with the corresponding new xml).

This apply only to normal phones, for Huawei there is no solution other then wait a ROM update (hopefully Huawei will fix it).

how to place the updated files in the system priv-app folder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

      Development

      Participants

      @chirayudesai@benwaffle@tslpre@Sapiosenses@HanabishiRecca

      Issue actions

        I can't give the new permission to search device accounts · Issue #2868 · microg/GmsCore