microg / microg/GmsCore

Work profile: unable to open account settings

Open
#1,624 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Describe the bug
When trying to open account settings via System settings nothing happens

To Reproduce
Steps to reproduce the behavior:

  1. Install microG to system(like in LineageOS4microG)
  2. Flash system
  3. Create work profile with Shelter
  4. Log into your Google account
  5. Go to System Settings > Accounts
  6. Select tab "Work profile"
  7. Select Google account
  8. Click "Account settings" and observe that nothing happens

Expected behavior
On step 8 it is expected that view with account settings would opened

System
Android Version: 11
Custom ROM: LineageOS 18.1(PolarMod with microG)

Additional context

  • UnifiedNlp(org.microg.nlp) is also installed on the system as I am not going to use any google stuff on main profile
  • I have checked for the same issue in main profile, but there everything works fine

Also I have grabbed some logs which are generated when I am clicking on the "Account settings"(step 8):

E AccountTypePrefLoader: Refusing to launch authenticator intent becauseit exploits Settings permissions: Intent { act=com.google.android.gms.accountsettings.ACCOUNT_PREFERENCES_SETTINGS flg=0x10000000 (has extras) }

In my opinion the best fast-fix for this bug is to implement per-account access settings inside the microG core app itself.

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 Android 11 work-profile flow described in the issue and inspect the AccountTypePrefLoader log for the rejected authenticator intent. Trace the account-settings launch path and determine how it should work for a work-profile account; done means the Account settings action opens the expected view without the permission refusal.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.