Google login only doesn't work on some Xiaomi devices

I use Google Sign Inin my application. I am using the google game services version9.0.2

compile 'com.google.android.gms:play-services-plus:9.0.2'

It worked fine for all devices, but now I get crash logs with Crashlytics, and the crash only happens on Xiaomi devices. Here are the accident logs.

    Fatal Exception: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.eterno/com.google.android.gms.auth.api.signin.internal.SignInHubActivity}: java.lang.IllegalStateException: Bad magic number for Bundle: 0xffff4f45
       at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2423)
       at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2483)
       at android.app.ActivityThread.access$900(ActivityThread.java:153)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1349)
       at android.os.Handler.dispatchMessage(Handler.java:102)
       at android.os.Looper.loop(Looper.java:148)
       at android.app.ActivityThread.main(ActivityThread.java:5441)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:738)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:628)
Caused by java.lang.IllegalStateException: Bad magic number for Bundle: 0xffff4f45
       at android.os.Parcel.readException(Parcel.java:1628)
       at android.os.Parcel.readException(Parcel.java:1573)
       at android.app.ActivityManagerProxy.startActivity(ActivityManagerNative.java:2661)
       at android.app.Instrumentation.execStartActivity(Instrumentation.java:1509)
       at android.app.Activity.startActivityForResult(Activity.java:3978)
       at android.app.Activity.startActivityForResult(Activity.java:3939)
       at android.support.v4.app.FragmentActivity.startActivityForResult(FragmentActivity.java:842)
       at com.google.android.gms.auth.api.signin.internal.SignInHubActivity.zza(Unknown Source)
       at com.google.android.gms.auth.api.signin.internal.SignInHubActivity.onCreate(Unknown Source)
       at android.app.Activity.performCreate(Activity.java:6303)
       at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1108)
       at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2376)
       at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2483)
       at android.app.ActivityThread.access$900(ActivityThread.java:153)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1349)
       at android.os.Handler.dispatchMessage(Handler.java:102)
       at android.os.Looper.loop(Looper.java:148)
       at android.app.ActivityThread.main(ActivityThread.java:5441)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:738)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:628)

I cannot reproduce the failure using any of the test devices that we can locally with us. Has anyone else encountered this problem with Xiaomi devices? Also, will a version of the google gaming services version be updated to mitigate the problem?

PS I don’t attach snippets of code that I wrote to log in to Google, because it works for all other devices. This seems to be a particular issue related to Xiaomi devices.

+4
2

PlayService

0

. , release Xiaomi.

Android Xiaomi , .

, , Xiaomi- .

0

Source: https://habr.com/ru/post/1666875/


All Articles