Obsolete
Status Update
Comments
ju...@gmail.com <ju...@gmail.com> #2
Another note -- it basically looks like the same situation that is seen when launch mode of the target intent is improperly set up (e.g. single instance); the crucial bits from the logcat seem to be
03-04 12:26:50.049 11802-11802/keychain.bug.com.keychainbug D/KeyChainBug? installPKCS12()...
03-04 12:26:50.049 11802-11802/keychain.bug.com.keychainbug D/KeyChain? packagename from createInstallIntent: keychain.bug.com.keychainbug
03-04 12:26:50.054 4090-7310/? V/ApplicationPolicy? isApplicationStateBlocked userId 0 pkgname com.android.certinstaller
03-04 12:26:50.059 4090-7310/? W/ActivityManager? mDVFSHelper.acquire()
03-04 12:26:50.059 4090-7310/? W/ActivityManager? Activity is launching as a new task, so cancelling activity result.
03-04 12:26:50.089 11802-11802/keychain.bug.com.keychainbug D/KeyChainBug? setStatus(Started install intent...)
03-04 12:26:50.089 4090-4311/? V/SmartFaceService - 3rd party pause? onReceive [android.intent.action.ACTIVITY_STATE/keychain.bug.com.keychainbug/pause]
03-04 12:26:50.099 11802-11802/keychain.bug.com.keychainbug D/KeyChainBug? onActivityResult(3840, 0, null)
03-04 12:26:50.099 11802-11802/keychain.bug.com.keychainbug D/KeyChainBug? setStatus(Finished: CANCELLED)
03-04 12:26:50.049 11802-11802/keychain.bug.com.keychainbug D/KeyChainBug? installPKCS12()...
03-04 12:26:50.049 11802-11802/keychain.bug.com.keychainbug D/KeyChain? packagename from createInstallIntent: keychain.bug.com.keychainbug
03-04 12:26:50.054 4090-7310/? V/ApplicationPolicy? isApplicationStateBlocked userId 0 pkgname com.android.certinstaller
03-04 12:26:50.059 4090-7310/? W/ActivityManager? mDVFSHelper.acquire()
03-04 12:26:50.059 4090-7310/? W/ActivityManager? Activity is launching as a new task, so cancelling activity result.
03-04 12:26:50.089 11802-11802/keychain.bug.com.keychainbug D/KeyChainBug? setStatus(Started install intent...)
03-04 12:26:50.089 4090-4311/? V/SmartFaceService - 3rd party pause? onReceive [android.intent.action.ACTIVITY_STATE/keychain.bug.com.keychainbug/pause]
03-04 12:26:50.099 11802-11802/keychain.bug.com.keychainbug D/KeyChainBug? onActivityResult(3840, 0, null)
03-04 12:26:50.099 11802-11802/keychain.bug.com.keychainbug D/KeyChainBug? setStatus(Finished: CANCELLED)
kr...@gmail.com <kr...@gmail.com> #3
I am also facing the same problem. Please let me know if you know the solution
ju...@gmail.com <ju...@gmail.com> #4
The only workaround I've found has been to register a BroadcastReceiver for the KeyChain storage changed event, which at least captures the case where the user finishes the install...but an actual fix would still be preferable.
en...@google.com <en...@google.com>
ja...@gmail.com <ja...@gmail.com> #5
I am also facing the same problem my phone not flash odin not work and adb also not working error devices offline recovery wipe not working wifi not work when install any apk file or delete file phone restart patteren lock not remove samsung smart switch not working
m....@gmail.com <m....@gmail.com> #6
Any updates on this?
bd...@google.com <bd...@google.com>
sw...@google.com <sw...@google.com>
ru...@google.com <ru...@google.com>
er...@google.com <er...@google.com> #7
I'm going to close this as obsolete because quite a bit has changed in KeyChain code since Android KitKat. Notably, we've changed the extras that the install intent can take (the extras specified in the original report should work). I don't even have a device on which I could try and reproduce.
Please re-open the bug if it's still an issue. If you do fail to import a PKCS#12 payload, please attach it as well - being mindful that it contains sensitive data and so don't use production keys to sign the certificate in the PKCS#12 file.
I personally had some issues with EC certificates, which is why the PKCS#12 payload would be needed.
Please re-open the bug if it's still an issue. If you do fail to import a PKCS#12 payload, please attach it as well - being mindful that it contains sensitive data and so don't use production keys to sign the certificate in the PKCS#12 file.
I personally had some issues with EC certificates, which is why the PKCS#12 payload would be needed.
Description
This is reproducible using the Android SDK's KeyChain demo code (com.example.android.keychain) on a Galaxy S5 running KitKat; attached is a stripped-down version that immediately reproduces it.
The following code reproduces the issue:
Intent installer = KeyChain.createInstallIntent();
installer.putExtra(KeyChain.EXTRA_PKCS12, pkcs12Data);
installer.putExtra(KeyChain.EXTRA_NAME, "Your Key");
startActivityForResult(installer, 0xf00);
On Andriod 4.2, this works as expected -- the user is prompted for the PKCS12's password, and to choose the name for the certificate, and when it's finished, onActivityResult is invoked with Activity.RESULT_OK.
On Android 4.4.2, however, onActivityResult is called *immediately* with Activity.RESULT_CANCELLED, and there is no further notification when the user completes (or cancels) the installation.
NOTE: This does NOT happen on the emulator.
The same problem is reported e.g. here:
We have seen this on multiple hardware devices, but of particular concern is the Galaxy S5:
Model: SM-G900H
Android version: 4.4.2
Baseband version: G900HXXU1ANH1
Kernel version: 3.10.9-2417570. dpi@SWDD3016#1, Tue Aug 5 14:09:21 KST 2014
Build number: KOT49H.G900HXXU1ANH1
SE Status for Android: Enforcing SEPF_SM-G900H_4.4.2_0040, Fri Jan 30 18:59:57 2015
Security software version: MDF v1.0 Release 3
The adb bugreport and adb logcat from this device are also attached.