microg / GmsCore

Free implementation of Play Services

Home Page:https://microg.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Regularly appearing "microG Services keeps stopping" window

mks-h opened this issue · comments

Describe the bug
I keep getting "microG Services keeps stopping" window, even as I have the microG app open and fully working.
Today, I just installed microG on a relatively fresh LineageOS in Magisk using microG Installer Revived. Between installing Lineage, Magisk, and microG, I only installed a few apps.

To Reproduce
Steps to reproduce the behavior:

  1. Install LineageOS 21
  2. Install Magisk
  3. Install microG Installer Revived
  4. Reboot
  5. Try using your phone, you will be getting "microG Services keeps stopping" error regularly.

Expected behavior
No "microG Services keeps stopping" window appearing.

System
Android Version: 14
Custom ROM: LineageOS 21

Additional context
Yesterday, I had the same issue on the previously installed LineageOS 20 (Android 13) after updating the microG Installer Revived Magisk module. I don't know which version of microG was used previously. The previous OS also had signature spoofing set up, while the current one doesn't yet.

You have rooted phone, so please use an app such as logfox (on f-droid) to capture crash log. Otherwise your report is useless, as I can't reproduce despite also using a14 and microg magisk module

Thanks, I was just wondering how to capture useful logs. I'll get back to it tomorrow, I think.

Neither does LogFox

Sorry for the wait. Here's logs for the crash:

FATAL EXCEPTION: NetworkLocationService
Process: com.google.android.gms, PID: 5803
java.lang.SecurityException: Not allowed to access cell info
	at android.os.Parcel.createExceptionOrNull(Parcel.java:3057)
	at android.os.Parcel.createException(Parcel.java:3041)
	at android.os.Parcel.readException(Parcel.java:3024)
	at android.os.Parcel.readException(Parcel.java:2966)
	at com.android.internal.telephony.ITelephony$Stub$Proxy.requestCellInfoUpdate(ITelephony.java:9641)
	at android.telephony.TelephonyManager.requestCellInfoUpdate(TelephonyManager.java:6794)
	at org.microg.gms.location.network.cell.CellDetailsSource.startScan(CellDetailsSource.kt:24)
	at org.microg.gms.location.network.NetworkLocationService.scan(NetworkLocationService.kt:113)
	at org.microg.gms.location.network.NetworkLocationService.highPowerScanRunnable$lambda$0(NetworkLocationService.kt:52)
	at org.microg.gms.location.network.NetworkLocationService.$r8$lambda$SLw0bsuDr5M3d2uTMZYf0gbGqTc(Unknown Source:0)
	at org.microg.gms.location.network.NetworkLocationService$$ExternalSyntheticLambda3.run(Unknown Source:2)
	at android.os.Handler.handleCallback(Handler.java:958)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at android.os.Looper.loopOnce(Looper.java:205)
	at android.os.Looper.loop(Looper.java:294)
	at android.os.HandlerThread.run(HandlerThread.java:67)

The crashes stop if I give microG Services app location permissions. I'm not sure why it didn't have them, and I don't remember denying them.

You have missed the most important thing, we need to know the version of microG installed.
In the app list hold down the "microG settings" app icon and then press the info icon, you should find the version at the bottom of the page that appears.

It is version 0.3.0.233515

Now it should no longer crash even if the permission isn't granted.