MicroG: can't add google account

Hi Everybody,
Since few months I started a new life trying to change the world with a new fairephone 3 (v10) and /e/Os. :slight_smile:
Since the beginning I never managed to add a google account on microG (0.2.13.203915-94), when i click “add google account”, the microG Services core immediatly crash.
I lived last month with this problem and I decided this morning to monitor the log:

--------- beginning of crash
08-22 11:38:02.449  3627  3627 E AndroidRuntime: FATAL EXCEPTION: main
08-22 11:38:02.449  3627  3627 E AndroidRuntime: Process: com.google.android.gms:ui, PID: 3627
08-22 11:38:02.449  3627  3627 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.google.android.gms/org.microg.gms.auth.login.LoginActivity}: android.util.AndroidRuntimeException: java.lang.reflect.InvocationTargetException
08-22 11:38:02.449  3627  3627 E AndroidRuntime: 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3270)
08-22 11:38:02.449  3627  3627 E AndroidRuntime: 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3409)
08-22 11:38:02.449  3627  3627 E AndroidRuntime: 	at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:83)
08-22 11:38:02.449  3627  3627 E AndroidRuntime: 	at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
08-22 11:38:02.449  3627  3627 E AndroidRuntime: 	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
08-22 11:38:02.449  3627  3627 E AndroidRuntime: 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2016)
08-22 11:38:02.449  3627  3627 E AndroidRuntime: 	at android.os.Handler.dispatchMessage(Handler.java:107)
08-22 11:38:02.449  3627  3627 E AndroidRuntime: 	at android.os.Looper.loop(Looper.java:214)
08-22 11:38:02.449  3627  3627 E AndroidRuntime: 	at android.app.ActivityThread.main(ActivityThread.java:7356)
08-22 11:38:02.449  3627  3627 E AndroidRuntime: 	at java.lang.reflect.Method.invoke(Native Method)
08-22 11:38:02.449  3627  3627 E AndroidRuntime: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:491)
08-22 11:38:02.449  3627  3627 E AndroidRuntime: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:940)
08-22 11:38:02.449  3627  3627 E AndroidRuntime: Caused by: android.util.AndroidRuntimeException: java.lang.reflect.InvocationTargetException
08-22 11:38:02.449  3627  3627 E AndroidRuntime: 	at android.webkit.WebViewFactory.getProvider(WebViewFactory.java:271)
08-22 11:38:02.449  3627  3627 E AndroidRuntime: 	at android.webkit.WebView.getFactory(WebView.java:2602)
08-22 11:38:02.449  3627  3627 E AndroidRuntime: 	at android.webkit.WebView.ensureProviderCreated(WebView.java:2596)
08-22 11:38:02.449  3627  3627 E AndroidRuntime: 	at android.webkit.WebView.setOverScrollMode(WebView.java:2664)
08-22 11:38:02.449  3627  3627 E AndroidRuntime: 	at android.view.View.<init>(View.java:5179)
08-22 11:38:02.449  3627  3627 E AndroidRuntime: 	at android.view.View.<init>(View.java:5320)
08-22 11:38:02.449  3627  3627 E AndroidRuntime: 	at android.view.ViewGroup.<init>(ViewGroup.java:675)
08-22 11:38:02.449  3627  3627 E AndroidRuntime: 	at android.widget.AbsoluteLayout.<init>(AbsoluteLayout.java:56)
08-22 11:38:02.449  3627  3627 E AndroidRuntime: 	at android.webkit.WebView.<init>(WebView.java:415)
08-22 11:38:02.449  3627  3627 E AndroidRuntime: 	at android.webkit.WebView.<init>(WebView.java:358)
08-22 11:38:02.449  3627  3627 E AndroidRuntime: 	at android.webkit.WebView.<init>(WebView.java:341)
08-22 11:38:02.449  3627  3627 E AndroidRuntime: 	at android.webkit.WebView.<init>(WebView.java:328)
08-22 11:38:02.449  3627  3627 E AndroidRuntime: 	at android.webkit.WebView.<init>(WebView.java:318)
08-22 11:38:02.449  3627  3627 E AndroidRuntime: 	at org.microg.gms.auth.login.LoginActivity.createWebView(LoginActivity.java:195)
08-22 11:38:02.449  3627  3627 E AndroidRuntime: 	at org.microg.gms.auth.login.LoginActivity.onCreate(LoginActivity.java:106)
08-22 11:38:02.449  3627  3627 E AndroidRuntime: 	at android.app.Activity.performCreate(Activity.java:7824)
08-22 11:38:02.449  3627  3627 E AndroidRuntime: 	at android.app.Activity.performCreate(Activity.java:7813)
08-22 11:38:02.449  3627  3627 E AndroidRuntime: 	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1306)
08-22 11:38:02.449  3627  3627 E AndroidRuntime: 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3245)
08-22 11:38:02.449  3627  3627 E AndroidRuntime: 	... 11 more
08-22 11:38:02.449  3627  3627 E AndroidRuntime: Caused by: java.lang.reflect.InvocationTargetException
08-22 11:38:02.449  3627  3627 E AndroidRuntime: 	at java.lang.reflect.Method.invoke(Native Method)
08-22 11:38:02.449  3627  3627 E AndroidRuntime: 	at android.webkit.WebViewFactory.getProvider(WebViewFactory.java:266)
08-22 11:38:02.449  3627  3627 E AndroidRuntime: 	... 29 more
08-22 11:38:02.449  3627  3627 E AndroidRuntime: Caused by: t50: errorCode=2
08-22 11:38:02.449  3627  3627 E AndroidRuntime: 	at SL.i(chromium-SystemWebViewGoogle.aab-stable-447216400:21)
08-22 11:38:02.449  3627  3627 E AndroidRuntime: 	at SL.k(chromium-SystemWebViewGoogle.aab-stable-447216400:5)
08-22 11:38:02.449  3627  3627 E AndroidRuntime: 	at org.chromium.android_webview.AwBrowserProcess.h(chromium-SystemWebViewGoogle.aab-stable-447216400:9)
08-22 11:38:02.449  3627  3627 E AndroidRuntime: 	at com.android.webview.chromium.WebViewChromiumFactoryProvider.f(chromium-SystemWebViewGoogle.aab-stable-447216400:85)
08-22 11:38:02.449  3627  3627 E AndroidRuntime: 	at com.android.webview.chromium.WebViewChromiumFactoryProvider.<init>(chromium-SystemWebViewGoogle.aab-stable-447216400:12)
08-22 11:38:02.449  3627  3627 E AndroidRuntime: 	at com.android.webview.chromium.WebViewChromiumFactoryProviderForQ.<init>(chromium-SystemWebViewGoogle.aab-stable-447216400:1)
08-22 11:38:02.449  3627  3627 E AndroidRuntime: 	at com.android.webview.chromium.WebViewChromiumFactoryProviderForQ.create(chromium-SystemWebViewGoogle.aab-stable-447216400:1)
08-22 11:38:02.449  3627  3627 E AndroidRuntime: 	... 31 more
08-22 11:38:02.449  3627  3627 E AndroidRuntime: Caused by: java.lang.UnsatisfiedLinkError: dlopen failed: "/data/app/com.google.android.webview-ibGPfMUca0dMf9R_f-K8kQ==/lib/arm/libwebviewchromium.so" is 32-bit instead of 64-bit
08-22 11:38:02.449  3627  3627 E AndroidRuntime: 	at java.lang.Runtime.loadLibrary0(Runtime.java:1071)
08-22 11:38:02.449  3627  3627 E AndroidRuntime: 	at java.lang.Runtime.loadLibrary0(Runtime.java:1007)
08-22 11:38:02.449  3627  3627 E AndroidRuntime: 	at java.lang.System.loadLibrary(System.java:1667)
08-22 11:38:02.449  3627  3627 E AndroidRuntime: 	at SL.i(chromium-SystemWebViewGoogle.aab-stable-447216400:13)
08-22 11:38:02.449  3627  3627 E AndroidRuntime: 	... 37 more
08-22 11:38:02.455  1587  3836 I DropBoxManagerService: add tag=system_app_crash isTagEnabled=true flags=0x2
08-22 11:38:02.457  1587  2173 W ActivityTaskManager:   Force finishing activity com.google.android.gms/org.microg.gms.auth.login.LoginActivity

Do you have any workaround ? I have the feeling that it could prevents a lot of other bugs from other app…

Thanks

I’ve searched for this exact problem on the forum but I didn’t find it, if there is one thread please tell me.

Regain your privacy! Adopt /e/ the unGoogled mobile OS and online servicesphone

Most people on here would probably tell you that if you want to use a Google account then /e/ is not the OS for you. The whole philosophy is about avoiding Google & Apple.

1 Like

Can’t say for sure but it seems like a webview issue given the amount of lines concerning it.

Hmm, I take it webview is present. A necessary component. If it weren’t other apps would be broken though and you would’ve noticed by now. If you have Aurora Store installed you can add your Google account within. If it fails in the same way then it’s definitely the webview.

In /e/OS microG is fully configured and ready to go out-of-the-box but maybe double check just in case.
microG Services Core should have full permissions.
In microG itself, go to Self-Check and make sure all boxes are checked.
I don’t remember if Google Device Registration is needed or not.

Question: What’s the reason for wanting to add a Google account to the system? You have some Google apps installed? Other than that I don’t see the reason as I don’t believe any other apps make use of a.Google account.

I’ve noticed that a lot of application is crashing but I was blaming app to use google API or stuff like that :slight_smile:.
Aurora is also crashing if I want to use my google account (I was using anonymous account until then) It’s still mentionning webview. What is it exactly ? I have “Android System Webview”, I’ve tried to update it, but no change appears.

FATAL EXCEPTION: main
08-22 16:12:36.017 18371 18371 E AndroidRuntime: Process: com.aurora.store, PID: 18371
08-22 16:12:36.017 18371 18371 E AndroidRuntime: java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.aurora.store/com.aurora.store.view.ui.account.GoogleActivity}: android.util.AndroidRuntimeException: java.lang.reflect.InvocationTargetException
08-22 16:12:36.017 18371 18371 E AndroidRuntime: 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3194)
08-22 16:12:36.017 18371 18371 E AndroidRuntime: 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3409)
08-22 16:12:36.017 18371 18371 E AndroidRuntime: 	at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:83)
08-22 16:12:36.017 18371 18371 E AndroidRuntime: 	at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
08-22 16:12:36.017 18371 18371 E AndroidRuntime: 	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
08-22 16:12:36.017 18371 18371 E AndroidRuntime: 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2016)
08-22 16:12:36.017 18371 18371 E AndroidRuntime: 	at android.os.Handler.dispatchMessage(Handler.java:107)
08-22 16:12:36.017 18371 18371 E AndroidRuntime: 	at android.os.Looper.loop(Looper.java:214)
08-22 16:12:36.017 18371 18371 E AndroidRuntime: 	at android.app.ActivityThread.main(ActivityThread.java:7356)
08-22 16:12:36.017 18371 18371 E AndroidRuntime: 	at java.lang.reflect.Method.invoke(Native Method)
08-22 16:12:36.017 18371 18371 E AndroidRuntime: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:491)
08-22 16:12:36.017 18371 18371 E AndroidRuntime: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:940)
08-22 16:12:36.017 18371 18371 E AndroidRuntime: Caused by: android.util.AndroidRuntimeException: java.lang.reflect.InvocationTargetException
08-22 16:12:36.017 18371 18371 E AndroidRuntime: 	at android.webkit.WebViewFactory.getProvider(WebViewFactory.java:271)
08-22 16:12:36.017 18371 18371 E AndroidRuntime: 	at android.webkit.CookieManager.getInstance(CookieManager.java:50)
08-22 16:12:36.017 18371 18371 E AndroidRuntime: 	at com.aurora.store.view.ui.account.GoogleActivity.<init>(Unknown Source:3)
08-22 16:12:36.017 18371 18371 E AndroidRuntime: 	at java.lang.Class.newInstance(Native Method)
08-22 16:12:36.017 18371 18371 E AndroidRuntime: 	at android.app.AppComponentFactory.instantiateActivity(AppComponentFactory.java:95)
08-22 16:12:36.017 18371 18371 E AndroidRuntime: 	at androidx.core.app.CoreComponentFactory.instantiateActivity(Unknown Source:0)
08-22 16:12:36.017 18371 18371 E AndroidRuntime: 	at android.app.Instrumentation.newActivity(Instrumentation.java:1250)
08-22 16:12:36.017 18371 18371 E AndroidRuntime: 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3182)
08-22 16:12:36.017 18371 18371 E AndroidRuntime: 	... 11 more
08-22 16:12:36.017 18371 18371 E AndroidRuntime: Caused by: java.lang.reflect.InvocationTargetException
08-22 16:12:36.017 18371 18371 E AndroidRuntime: 	at java.lang.reflect.Method.invoke(Native Method)
08-22 16:12:36.017 18371 18371 E AndroidRuntime: 	at android.webkit.WebViewFactory.getProvider(WebViewFactory.java:266)
08-22 16:12:36.017 18371 18371 E AndroidRuntime: 	... 18 more
08-22 16:12:36.017 18371 18371 E AndroidRuntime: Caused by: t50: errorCode=2
08-22 16:12:36.017 18371 18371 E AndroidRuntime: 	at SL.i(chromium-SystemWebViewGoogle.aab-stable-447216400:21)
08-22 16:12:36.017 18371 18371 E AndroidRuntime: 	at SL.k(chromium-SystemWebViewGoogle.aab-stable-447216400:5)
08-22 16:12:36.017 18371 18371 E AndroidRuntime: 	at org.chromium.android_webview.AwBrowserProcess.h(chromium-SystemWebViewGoogle.aab-stable-447216400:9)
08-22 16:12:36.017 18371 18371 E AndroidRuntime: 	at com.android.webview.chromium.WebViewChromiumFactoryProvider.f(chromium-SystemWebViewGoogle.aab-stable-447216400:85)
08-22 16:12:36.017 18371 18371 E AndroidRuntime: 	at com.android.webview.chromium.WebViewChromiumFactoryProvider.<init>(chromium-SystemWebViewGoogle.aab-stable-447216400:12)
08-22 16:12:36.017 18371 18371 E AndroidRuntime: 	at com.android.webview.chromium.WebViewChromiumFactoryProviderForQ.<init>(chromium-SystemWebViewGoogle.aab-stable-447216400:1)
08-22 16:12:36.017 18371 18371 E AndroidRuntime: 	at com.android.webview.chromium.WebViewChromiumFactoryProviderForQ.create(chromium-SystemWebViewGoogle.aab-stable-447216400:1)
08-22 16:12:36.017 18371 18371 E AndroidRuntime: 	... 20 more
08-22 16:12:36.017 18371 18371 E AndroidRuntime: Caused by: java.lang.UnsatisfiedLinkError: dlopen failed: "/data/app/com.google.android.webview-ibGPfMUca0dMf9R_f-K8kQ==/lib/arm/libwebviewchromium.so" is 32-bit instead of 64-bit
08-22 16:12:36.017 18371 18371 E AndroidRuntime: 	at java.lang.Runtime.loadLibrary0(Runtime.java:1071)
08-22 16:12:36.017 18371 18371 E AndroidRuntime: 	at java.lang.Runtime.loadLibrary0(Runtime.java:1007)
08-22 16:12:36.017 18371 18371 E AndroidRuntime: 	at java.lang.System.loadLibrary(System.java:1667)
08-22 16:12:36.017 18371 18371 E AndroidRuntime: 	at SL.i(chromium-SystemWebViewGoogle.aab-stable-447216400:13)
08-22 16:12:36.017 18371 18371 E AndroidRuntime: 	... 26 more

And now that you mentionned webview I notice that it appears in other app crash.
How can I fix that ?
Thanks

I have checked authorizations, all seems ok for me
I don’t really use google application anymore , but I was hoping maybe connect an account will reduce crash … and make my googlechrome cast work again

Ok, I’ve just downgraded the android system webview to 83.0.4103 and now it seems to works globally fine !
I had 2 Android webview and I was pointing to the last one.

Ah great.
I forgot about being able to choose/switch webview providers.

In your log output it seems to indicate you have Google’s WebView installed (com.google.android.webview). Umm, that shouldn’t exist but the how and why doesn’t matter now, I guess. If you can uninstall it, do so.
As the error shows there’s a conflict. The Google webview needs to link with libwebviewchromium.so but it cannot because the library is 32-bit. 64-bit version is needed.
That begs another question, why would there be such a conflict? Is your system arm or arm64? Neither here nor there I guess. Again, just uninstall it.

The webview included with custom ROMs uses the packagename com.android.webview. Also used by up-to-date webview replacements (Bromite, Chromium, Ungoogled Chromium).

If you stay current with /e/ then you don’t have to worry much about the webview. The version generally coincides with the version of /e/ Browser.
Since I cannot or will not update my /e/OS Pie I had to eventually install Bromite WebView to keep current.

I can’t find why it was installed (or if I have installed it on my own, but I don’t think so), it’s now uninstalled and a lot of apps works now.
Thanks a lot for your help !

1 Like