This only happens in Android after selecting an account using the Native Login popup.
App is signed with correct credentials in debug mode.
Full stacktrace logs:
Java.Security.UnrecoverableKeyException: no match
at Java.Interop.JniEnvironment+InstanceMethods.CallNonvirtualObjectMethod (Java.Interop.JniObjectReference instance, Java.Interop.JniObjectReference type, Java.Interop.JniMethodInfo method, Java.Interop.JniArgumentValue args) [0x00089] in :0
at Java.Interop.JniPeerMembers+JniInstanceMethods.InvokeNonvirtualObjectMethod (System.String encodedMember, Java.Interop.IJavaPeerable self, Java.Interop.JniArgumentValue parameters) [0x0001f] in :0
at Java.Security.KeyStore.GetEntry (System.String alias, Java.Security.KeyStore+IProtectionParameter protParam) [0x00050] in :0
at SimpleAuth.AuthStorage.GetSecured (System.String id, System.String clientId, System.String service, System.String sharedGroup) [0x00048] in C:\Projects\SimpleAuth\src\SimpleAuth.Droid\AuthStorage.cs:33
at SimpleAuth.AuthenticatedApi.GetAccount[T] (System.String identifier) [0x00002] in C:\Projects\SimpleAuth\src\SimpleAuth\Api\AuthenticatedApi.cs:88
--- End of managed Java.Security.UnrecoverableKeyException stack trace ---
java.security.UnrecoverableKeyException: no match
at com.android.org.bouncycastle.jcajce.provider.keystore.bc.BcKeyStoreSpi$StoreEntry.getObject(BcKeyStoreSpi.java:319)
at com.android.org.bouncycastle.jcajce.provider.keystore.bc.BcKeyStoreSpi.engineGetKey(BcKeyStoreSpi.java:614)
at java.security.KeyStoreSpi.engineGetEntry(KeyStoreSpi.java:482)
at java.security.KeyStore.getEntry(KeyStore.java:1560)
at md58432a647068b097f9637064b8985a5e0.SwitchRenderer.n_onCheckedChanged(Native Method)
at md58432a647068b097f9637064b8985a5e0.SwitchRenderer.onCheckedChanged(SwitchRenderer.java:46)
at android.widget.CompoundButton.setChecked(CompoundButton.java:176)
at android.support.v7.widget.SwitchCompat.setChecked(SwitchCompat.java:1060)
at android.support.v7.widget.SwitchCompat.toggle(SwitchCompat.java:1055)
at android.widget.CompoundButton.performClick(CompoundButton.java:137)
at android.view.View.performClickInternal(View.java:6635)
at android.view.View.access$3100(View.java:794)
at android.view.View$PerformClick.run(View.java:26199)
at android.os.Handler.handleCallback(Handler.java:907)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:216)
at android.app.ActivityThread.main(ActivityThread.java:7625)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:524)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:987)
This only happens in Android after selecting an account using the Native Login popup. App is signed with correct credentials in debug mode.
Full stacktrace logs: