microg / microg/GmsCore

App crashes while microG is installed

Open
#1,735 0 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
https://play.google.com/store/apps/details?id=com.remmaps.thearchersvspigeongame -

If u r using microG, this app will crash.

If you delete microG from system, it will work fine! (I mean, without microG)


To Reproduce
Steps to reproduce the behavior:

  1. Install this App: The Archers 3
  2. Launch this app
  3. If u r using microG, it will crash.
  4. If you delete microG from system, it will work fine! (I mean, without microG)

Expected behavior
App shouldn't crash like this.

System
Android Version: 10+11+12+12.1
Custom ROM: Havoc 11 Latest, Arrow OS12+12.1
**this crash happens since 2020 at least (regardless of microG or Android version)


CrashLog:
FATAL EXCEPTION: main
Process: com.remmaps.thearchersvspigeongame, PID: 20827
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.remmaps.thearchersvspigeongame/com.remmaps.thearchersvspigeongame.Main}: java.lang.SecurityException: MODE_WORLD_READABLE no longer supported
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3707)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3864)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:103)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2253)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:201)
at android.os.Looper.loop(Looper.java:288)
at android.app.ActivityThread.main(ActivityThread.java:7877)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:550)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
Caused by: java.lang.SecurityException: MODE_WORLD_READABLE no longer supported
at android.app.ContextImpl.checkMode(ContextImpl.java:3247)
at android.app.ContextImpl.getSharedPreferences(ContextImpl.java:559)
at android.app.ContextImpl.getSharedPreferences(ContextImpl.java:549)
at com.google.android.gms.g.cs.a(Unknown Source:3)
at com.google.android.gms.g.ct.a(Unknown Source:24)
at com.google.android.gms.g.cu.a(Unknown Source:4)
at com.google.android.gms.ads.d.ah.(Unknown Source:29)
at com.google.android.gms.ads.d.ah.(Unknown Source:6)
at com.google.android.gms.ads.d.c.(Unknown Source:2)
at com.google.android.gms.ads.d.d.(Unknown Source:0)
at com.google.android.gms.ads.d.t.(Unknown Source:0)
at com.google.android.gms.ads.d.a.l.b(Unknown Source:46)
at com.google.android.gms.ads.d.a.f.b(Unknown Source:22)
at com.google.android.gms.ads.d.a.f.a(Unknown Source:6)
at com.google.android.gms.ads.i.a(Unknown Source:6)
at com.remmaps.thearchersvspigeongame.j.run(Unknown Source:11)
at android.app.Activity.runOnUiThread(Activity.java:7136)
at com.remmaps.thearchersvspigeongame.a.t(Unknown Source:7)
at com.remmaps.thearchersvspigeongame.a.a(Unknown Source:27)
at com.remmaps.a.b.f.onCreate(Unknown Source:118)
at android.app.Activity.performCreate(Activity.java:8054)
at android.app.Activity.performCreate(Activity.java:8034)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1347)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3688)
... 12 more


Running this app is not important for me,

But just shared this log, so that you may aware of it.
May be, this crash is happening bcz of some unknown bugs inside 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 with the supplied crash log, especially ContextImpl.getSharedPreferences and the com.google.android.gms.ads stack entries. Determine whether the failure is in GmsCore or the app's bundled, obfuscated code. Done means identifying an actionable GmsCore change or documenting that the report is outside this project's code.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
15/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.