MicroG crashes when using location

Hi all!

I’ve updated recently my Galaxy S8 Exynos to e/OS 2.2. I’ve been using 2.1 for a while and I hoped updating it would fix the issue I’m having.

Whenever I’m accessing location services (through Maps for example), I receive after a bit a notification saying MicroG Services keep crashing. I installed LogFox to retrieve the actual logcat that I paste at the end of my post.

As it is saying it need Bluetooth I tried to go and grant it, though app settings or via adb with pm grant but it appears that since MicroG does not ask for Bluetooth permission I can’t grant it. As a side note when I disable the Bluetooth on my phone MicroG stops crashing.

Thanks for your help!

Here is the logcat:

FATAL EXCEPTION: main
Process: com.google.android.gms, PID: 2934
java.lang.SecurityException: Need BLUETOOTH permission: Neither user 10089 nor current process has android.permission.BLUETOOTH.
	at android.os.Parcel.createExceptionOrNull(Parcel.java:2374)
	at android.os.Parcel.createException(Parcel.java:2358)
	at android.os.Parcel.readException(Parcel.java:2341)
	at android.os.Parcel.readException(Parcel.java:2283)
	at android.bluetooth.IBluetooth$Stub$Proxy.getState(IBluetooth.java:1811)
	at android.bluetooth.BluetoothAdapter$2.recompute(BluetoothAdapter.java:986)
	at android.bluetooth.BluetoothAdapter$2.recompute(BluetoothAdapter.java:982)
	at android.app.PropertyInvalidatedCache.query(PropertyInvalidatedCache.java:438)
	at android.bluetooth.BluetoothAdapter.getStateInternal(BluetoothAdapter.java:1013)
	at android.bluetooth.BluetoothAdapter.getState(BluetoothAdapter.java:1040)
	at android.bluetooth.BluetoothAdapter.isEnabled(BluetoothAdapter.java:870)
	at org.microg.gms.location.settings.DetailedLocationSettingsStatesKt.getDetailedLocationSettingsStates(Unknown Source:169)
	at org.microg.gms.location.manager.LocationManagerInstance$requestLocationSettingsDialog$1.invokeSuspend(Unknown Source:20)
	at kotlin.coroutines.jvm.internal.a.resumeWith(Unknown Source:11)
	at z5.i.b(SourceFile:1)
	at a6.a.c(SourceFile:1)
	at a6.a.d(SourceFile:1)
	at u5.i.c(SourceFile:1)
	at u5.g.e(SourceFile:1)
	at androidx.lifecycle.i0$a.invokeSuspend(Unknown Source:72)
	at androidx.lifecycle.i0$a.invoke(SourceFile:2)
	at androidx.lifecycle.i0$a.invoke(SourceFile:1)
	at a6.b.b(SourceFile:1)
	at u5.i.c(SourceFile:1)
	at u5.g.e(SourceFile:1)
	at androidx.lifecycle.i0.d(SourceFile:1)
	at androidx.lifecycle.i0.c(SourceFile:1)
	at androidx.lifecycle.q$c.invokeSuspend(Unknown Source:36)
	at kotlin.coroutines.jvm.internal.a.resumeWith(Unknown Source:11)
	at u5.t0.run(SourceFile:1)
	at android.os.Handler.handleCallback(Handler.java:938)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at android.os.Looper.loop(Looper.java:223)
	at android.app.ActivityThread.main(ActivityThread.java:7664)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
	Suppressed: z5.g: [e2{Cancelling}@dd06e24, Dispatchers.Main.immediate]

this was filed for a v2.0-r even

I wonder if this is due to exposure notifications. What version of Android do you run, R ? haven’t seen a report from other Android major versions yet. If this is due to missing permissions in the manifest, I’d look at past commits to Commits · main · e / os / android_prebuilts_prebuiltapks_lfs · GitLab

Edit: there were changes in 0.3.1 / 0.3.2 how permissions are asked for, see gitlab. I’d post the stacktrace to microg issues.

Thanks for the heads up on gitlab!
Yes, I’m running 2.2 R
I’m quite surprise that I’ve seen nothing from my research, maybe gitlab issues aren’t indexed.
It seems to be isolated on the S8…

This topic was automatically closed after 60 days. New replies are no longer allowed.