question

Brian Vetter avatar image
Brian Vetter asked

KeyChain.choosePrivateKeyAlias() fails on Fire OS 4.5.2

I have an android application that I am trying to test on a Kindle Fire 10" running Fire OS 4.5.2 and I am getting an exception when trying to use the KeyChain.choosePrivateKeyAlias() method. This method is supposed to bring up a dialog that lets the user choose a certificate/key from their Keychain. The exception is ActivityNotFoundException and the activity it is looking for has the following intent info: act=com.android.keychain.CHOOSER pkg=com.android.certinstaller The actual exception trace is: 02-03 09:40:42.466 22190 22190 E AndroidRuntime: Process: com.hy.ace.client.main, PID: 22190 02-03 09:40:42.466 22190 22190 E AndroidRuntime: android.content.ActivityNotFoundException: No Activity found to handle act=com.android.keychain.CHOOSER pkg=com.android.certinstaller (has extras) 02-03 09:40:42.466 22190 22190 E AndroidRuntime: at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1637) 02-03 09:40:42.466 22190 22190 E AndroidRuntime: at android.app.Instrumentation.execStartActivity(Instrumentation.java:1424) 02-03 09:40:42.466 22190 22190 E AndroidRuntime: at android.app.Activity.startActivityForResult(Activity.java:3456) 02-03 09:40:42.466 22190 22190 E AndroidRuntime: at android.app.Activity.startActivityForResult(Activity.java:3417) 02-03 09:40:42.466 22190 22190 E AndroidRuntime: at android.app.Activity.startActivity(Activity.java:3659) 02-03 09:40:42.466 22190 22190 E AndroidRuntime: at android.app.Activity.startActivity(Activity.java:3627) 02-03 09:40:42.466 22190 22190 E AndroidRuntime: at android.security.KeyChain.choosePrivateKeyAlias(KeyChain.java:294) 02-03 09:40:42.466 22190 22190 E AndroidRuntime: at mobi.dc.accountmgr.DCAuthenticatorActivity.e(Hy:283) 02-03 09:40:42.466 22190 22190 E AndroidRuntime: at mobi.dc.accountmgr.DCAuthenticatorActivity.b(Hy:36) 02-03 09:40:42.466 22190 22190 E AndroidRuntime: at mobi.dc.accountmgr.k.onClick(Hy:147) This code works on all android versions since 4.0.3 (ICS). Does the Fire OS 4+ support the Android KeyChain APIs?
fire tablet
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

DougM@Amazon avatar image
DougM@Amazon answered
Hello Brian, Thank you for asking. We have written a sample app that verifies your issue on any Fire OS 4 device. Meaning that on our 2013 and 2014 tablets attempting to use the android keychain chooser activity will cause your app to crash in this manner. We are escalating the issue with the appropriate internal team and will let you know if there are any updates in future releases of FireOS.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Amazon Customer avatar image
Amazon Customer answered
Hi, Any update on this. I'm getting the same issue and not sure if there is any update to fix this issue.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Jamie Grossman avatar image
Jamie Grossman answered
Hi there, I have pinged the issue in our internal database for further investigation. Regards, Jamie
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.