microg / microg/GmsCore

[com.nianticlabs.pokemongo] Can't enable adventure sync in pokemon go

Open
#1,774 1 comment 0 reactions 0 assignees View on GitHub

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: Pokemon Go
Package id: [com.nianticlabs.pokemongo]

Describe the bug
When trying to enable Adventure Sync in Pokemon Go (Installed in work profile with fully working microg and safetynet), It says:
"Adventure Sync not enabled"
IMG_20220909_204937

Logcat:

[09-09 20:52:03.539 21914:24522 I/AwarenessWorker]
Starting AwarenessWorker job:

[09-09 20:52:03.539 21914:24522 D/PermissionsManager]
permissionsRequired for 2: 23

[09-09 20:52:03.540 21914:24522 D/PermissionsManager]
permissionStatus LOCATION status: GRANTED_IN_USE

[09-09 20:52:03.540 21914:24522 D/PermissionsManager]
permissionStatus BACKGROUND_LOCATION status: GRANTED_ALWAYS

[09-09 20:52:03.540 21914:24522 D/PermissionsManager]
permissionStatus ACTIVITY status: GRANTED_ALWAYS

[09-09 20:52:03.540 21914:24522 D/PermissionsManager]
permissionStatus FITNESS status: DENIED

[09-09 20:52:03.540 21914:24522 I/AwarenessProcessor]
Permissions not all granted. Service disabled.

[09-09 20:52:03.540 21914:24522 I/AwarenessProcessor]
Awareness Service not available. Exiting.

[09-09 20:52:03.540 21914:24522 I/AwarenessWorker]
Ending AwarenessWorker job: SUCCESS

[09-09 20:52:03.541 21914:24499 I/WM-WorkerWrapper]
Worker result SUCCESS for Work [ id=, tags={ com.nianticlabs.background.awareness.AwarenessWorker, awareness-worker } ]

To Reproduce
Steps to reproduce the behavior:

  1. Go to settings in the app
  2. Click on 'Aventure Sync'
  3. Allow neccesary permissions.
  4. See error

Expected behavior
When you click on Aventure Sync in settings and grant the requested permissions, a popup should appear allowing you to select a Google account. After that, it should be enabled.

IMG_20220909_210402

System
Android Version: [11]
Custom ROM: [LineageOS 18.1]

microG
microG Core version: [0.2.24.214816]
microG Self-Check results: [All ticked]

Additional context
Pokemon Go runs in a workprofile managed by shelter with a working instance of microg and safetynet. I don't know if it works in the main profile.

I have a signed in to a Google account through microg

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 failure in an Android 11 work profile, then trace the AwarenessWorker, PermissionsManager, and AwarenessProcessor messages in the logcat. Pay particular attention to the denied FITNESS permission and the transition to the account-selection flow. Done means Adventure Sync enables after the requested permissions are granted and the Google account picker appears.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.