microg / microg/GmsCore

ch.admin.bag.dp3t Unable to start activity ComponentInfo{ch.admin.bag.dp3t/com.google.android.gms.common.api.GoogleApiActivity}

Open
#1,258 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Affected app
Name: SwissCovid
Package id: ch.admin.bag.dp3t
Package version: 1.2.0.12000

Describe the bug

The SwissCovid app stopped to work and shows a message that a more recent Google Play version is needed. I could see the app crash once:

11-07 20:13:56.528 24831 24831 E AndroidRuntime: FATAL EXCEPTION: main
11-07 20:13:56.528 24831 24831 E AndroidRuntime: Process: ch.admin.bag.dp3t, PID: 24831
11-07 20:13:56.528 24831 24831 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{ch.admin.bag.dp3t/com.google.android.gms.common.api.GoogleApiActivity}: android.content.ActivityNotFoundException: No Activity found to handle null
11-07 20:13:56.528 24831 24831 E AndroidRuntime: 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3270)
11-07 20:13:56.528 24831 24831 E AndroidRuntime: 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3409)
11-07 20:13:56.528 24831 24831 E AndroidRuntime: 	at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:83)
11-07 20:13:56.528 24831 24831 E AndroidRuntime: 	at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
11-07 20:13:56.528 24831 24831 E AndroidRuntime: 	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
11-07 20:13:56.528 24831 24831 E AndroidRuntime: 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2016)
11-07 20:13:56.528 24831 24831 E AndroidRuntime: 	at android.os.Handler.dispatchMessage(Handler.java:107)
11-07 20:13:56.528 24831 24831 E AndroidRuntime: 	at android.os.Looper.loop(Looper.java:214)
11-07 20:13:56.528 24831 24831 E AndroidRuntime: 	at android.app.ActivityThread.main(ActivityThread.java:7356)
11-07 20:13:56.528 24831 24831 E AndroidRuntime: 	at java.lang.reflect.Method.invoke(Native Method)
11-07 20:13:56.528 24831 24831 E AndroidRuntime: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:491)
11-07 20:13:56.528 24831 24831 E AndroidRuntime: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:940)
11-07 20:13:56.528 24831 24831 E AndroidRuntime: Caused by: android.content.ActivityNotFoundException: No Activity found to handle null
11-07 20:13:56.528 24831 24831 E AndroidRuntime: 	at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:2058)
11-07 20:13:56.528 24831 24831 E AndroidRuntime: 	at android.app.Activity.startIntentSenderForResultInner(Activity.java:5473)
11-07 20:13:56.528 24831 24831 E AndroidRuntime: 	at android.app.Activity.startIntentSenderForResult(Activity.java:5439)
11-07 20:13:56.528 24831 24831 E AndroidRuntime: 	at android.app.Activity.startIntentSenderForResult(Activity.java:5406)
11-07 20:13:56.528 24831 24831 E AndroidRuntime: 	at com.google.android.gms.common.api.GoogleApiActivity.onCreate(com.google.android.gms:play-services-base@@17.2.1:12)
11-07 20:13:56.528 24831 24831 E AndroidRuntime: 	at android.app.Activity.performCreate(Activity.java:7824)
11-07 20:13:56.528 24831 24831 E AndroidRuntime: 	at android.app.Activity.performCreate(Activity.java:7813)
11-07 20:13:56.528 24831 24831 E AndroidRuntime: 	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1306)
11-07 20:13:56.528 24831 24831 E AndroidRuntime: 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3245)
11-07 20:13:56.528 24831 24831 E AndroidRuntime: 	... 11 more

To Reproduce
Steps to reproduce the behavior:

  1. Download SwissCovid app
  2. Try to use it and see the error message

Expected behavior
SwissCovid app works again

System
Android Version: 10
Custom ROM: LineageOS for microG 17.1

microG
microG Core version: v0.2.13.203915
microG Self-Check results: All ticked

Additional context
Also created an issue here: https://github.com/DP-3T/dp3t-app-android-ch/issues/249

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 SwissCovid 1.2.0.12000 on Android 10 with LineageOS for microG 17.1 and microG Core v0.2.13.203915, then review the GoogleApiActivity stack trace and the related DP-3T issue. Done means the app no longer reports that a newer Google Play version is needed or crashes with ActivityNotFoundException.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.