Crash when manually signing in to Aurora Store with MicroG
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 14.6k
- Forks
- 3.2k
- Avg merge
- 12d 11h
- Merged PRs (30d)
- 4
Description
**Affected app**
Name: Aurora Store Nightly
Package id: com.aurora.store.nightly
version: 4.8.0-9d80b1dd5
**Describe the bug**
Aurora Store (Nightly) crashes when attempting to manually sign with MicroG when **Trust Google for app permissions** is unchecked.
**To Reproduce**
1. Have MicroG installed and add your Google account to it
2. Uncheck **Trust Google for app permissions**
3. Run Aurora Store
4. Go into Settings \> Networking and check Use microG to sign in to accounts
5. Restart
6. Select Allow in the Google Account Manager dialog
7. It crashes.
**Expected behavior**
Aurora Store should sign in without crashing after manually giving it permission to sign in.
**Screenshots**
**System**
Android Version: 16
Custom ROM: LineageOS 23
**microG**
microG Core version: 0.3.12.250932
microG Self-Check results: All ticked, except for work profile which I don't use
**Additional context**
Checking Trust Google for app permissions prevents the crash and Aurora Store signs in and can be used as normal, but I'd rather not just blindly trust all apps to sign in with my account.
Logs
Aurora Store:
```
com.aurora.store.nightly E AndroidRuntime : FATAL EXCEPTION: main Process: com.aurora.store.nightly, PID: 31005 java.lang.RuntimeException: java.lang.reflect.InvocationTargetException at com.android.internal.os.RuntimeInitMethodAndArgsCaller.run(RuntimeInit.java:603) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:932) Caused by: java.lang.reflect.InvocationTargetException at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInitMethodAndArgsCaller.run(RuntimeInit.java:593) ... 1 more Caused by: android.accounts.OperationCanceledException: java.util.concurrent.CancellationException at android.accounts.AccountManagerAmsTask.internalGetResult(AccountManager.java:2400) at android.accounts.AccountManagerAmsTask.getResult(AccountManager.java:2424) at android.accounts.AccountManager$AmsTask.getResult(AccountManager.java:2344) at xc.e.run(r8-map-id-XXXXXXXXXXXXXXXXXXXXXXXXXXXXX:7) at android.accounts.AccountManager17.run(AccountManager.java:2301) at android.os.Handler.handleCallback(Handler.java:995) at android.os.Handler.dispatchMessage(Handler.java:103) at android.os.Looper.loopOnce(Looper.java:248) at android.os.Looper.loop(Looper.java:338) at android.app.ActivityThread.main(ActivityThread.java:9067) ... 3 more Caused by: java.util.concurrent.CancellationException at java.util.concurrent.FutureTask.report(FutureTask.java:121) at java.util.concurrent.FutureTask.get(FutureTask.java:191) at android.accounts.AccountManagerAmsTask.internalGetResult(AccountManager.java:2395) ... 12 more
```
MicroG:
```
com.google.android.gms D GmsHttpFormClient : -- Request -- androidId=XXXXXXXXXXXXXXXXXXXXXXXXXXXXX&app=com.aurora.store.nightly&client_sig=XXXXXXXXXXXXXXXXXXXXXXXXXXXXX&callerPkg=com.aurora.store.nightly&callerSig=XXXXXXXXXXXXXXXXXXXXXXXXXXXXX&device_country=XXXXXXXXXXXXXXXXXXXXXXXXXXXXX&Email=XXXXXXXXXXXXXXXXXXXXXXXXXXXXX&google_play_services_version=XXXXXXXXXXXXXXXXXXXXXXXXXXXXX&has_permission=1&lang=XXXXXXXXXXXXXXXXXXXXXXXXXXXXX&operatorCountry=XXXXXXXXXXXXXXXXXXXXXXXXXXXXX&sdk_version=36&service=oauth2%3Ahttps%3A%2F%2Fwww.googleapis.com%2Fauth%2Fgoogleplay&source=android&Token=XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
```
I had already reported it to Aurora Store but a dev suggested it seems to be an issue on MicroG's end:
https://gitlab.com/AuroraOSS/AuroraStore/-/issues/1470
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No project file or test is identified in the report; begin by reproducing the MicroG sign-in sequence with Trust Google for app permissions unchecked and review the AccountManager cancellation log. Compare the behavior with Aurora Store issue 1470, and consider the issue done when manual sign-in completes without crashing in that configuration.
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
- Needs clarification
- Newbie friendliness
- 35/100