[Galaxy S II Original Android Development] mcardielo:
Exchange Email

Hi, I'm having troubles with exchange email acccount working with certificate files, when I create the account and link the certificate previously installed on the phone, the email account works fine, but after a reboot the email account stops working, I have extracted the logcat and seems it's a problem with Exchange.apk, here is the logcat:

I( 1878) Start proc com.android.exchange for service com.android.exchange/.ExchangeService: pid=3134 uid=10171 gids={3003, 1015} (ActivityManager)
I( 3134) Pub com.android.exchange.directory.provider: com.android.exchange.provider.ExchangeDirectoryProvider (ActivityThread)
D( 3134) !!! EAS ExchangeService, onCreate (ExchangeService)
D( 3134) Logging: (Eas Debug)
D( 3134) !!! EAS ExchangeService, onStartCommand, startingUp = false, running = false (ExchangeService)
D( 3134) !!! EAS ExchangeService, onStartCommand, startingUp = true, running = false (ExchangeService)
D( 3134) !!! EAS ExchangeService, onStartCommand, startingUp = true, running = false (ExchangeService)
D( 3134) Logging: (Eas Debug)
D( 3134) Received deviceId from Email app: androidc1049404546 (ExchangeService)
D( 3134) Reconciling accounts... (ExchangeService)
D( 3134) ExchangeService thread running (ExchangeService)
D( 3134) !!! EAS ExchangeService, onStartCommand, startingUp = false, running = true (ExchangeService)
E( 3134) Unable to retrieve certificate chain due to android.security.KeyChainException: java.lang.IllegalStateException: keystore locked (Email.Ssl)
E( 3134) Unable to retrieve certificate chain due to android.security.KeyChainException: java.lang.IllegalStateException: keystore locked (Email.Ssl)
D( 3134) GC_EXPLICIT freed 331K, 72% free 2345K/8323K, paused 5ms+4ms (dalvikvm)
E( 3134) Unable to retrieve certificate chain due to android.security.KeyChainException: java.lang.IllegalStateException: keystore locked (Email.Ssl)
W( 3134) Bypassing SSL security checks at caller's request (SSLCertificateSocketFactory)
E( 3134) Unable to retrieve certificate chain due to android.security.KeyChainException: java.lang.IllegalStateException: keystore locked (Email.Ssl)
D( 3134) GC_EXPLICIT freed 606K, 69% free 2649K/8323K, paused 4ms+6ms (dalvikvm)
D( 3134) GC_EXPLICIT freed 411K, 69% free 2642K/8323K, paused 3ms+3ms (dalvikvm)
E( 3134) Unable to retrieve certificate chain due to android.security.KeyChainException: java.lang.IllegalStateException: keystore locked (Email.Ssl)
E( 3134) Unable to retrieve certificate chain due to android.security.KeyChainException: java.lang.IllegalStateException: keystore locked (Email.Ssl)
D( 3134) GC_EXPLICIT freed 351K, 69% free 2648K/8323K, paused 4ms+7ms (dalvikvm)
E( 3134) Unable to retrieve certificate chain due to android.security.KeyChainException: java.lang.IllegalStateException: keystore locked (Email.Ssl)
E( 3134) Unable to retrieve certificate chain due to android.security.KeyChainException: java.lang.IllegalStateException: keystore locked (Email.Ssl)
E( 1878) 11% 3134/com.android.exchange: 8.9% user + 2.8% kernel / faults: 692 minor (ActivityManager)
E( 3134) Unable to retrieve certificate chain due to android.security.KeyChainException: java.lang.IllegalStateException: keystore locked (Email.Ssl)
E( 3134) Unable to retrieve certificate chain due to android.security.KeyChainException: java.lang.IllegalStateException: keystore locked (Email.Ssl)
D( 3134) GC_EXPLICIT freed 329K, 69% free 2636K/8323K, paused 3ms+6ms (dalvikvm)
E( 3134) Unable to retrieve certificate chain due to android.security.KeyChainException: java.lang.IllegalStateException: keystore locked (Email.Ssl)
E( 3134) Unable to retrieve certificate chain due to android.security.KeyChainException: java.lang.IllegalStateException: keystore locked (Email.Ssl)
E( 3134) Unable to retrieve certificate chain due to android.security.KeyChainException: java.lang.IllegalStateException: keystore locked (Email.Ssl)
D( 3134) !!! EAS ExchangeService, onStartCommand, startingUp = false, running = true (ExchangeService)
E( 3134) Unable to retrieve certificate chain due to android.security.KeyChainException: java.lang.IllegalStateException: keystore locked (Email.Ssl)
D( 3134) GC_EXPLICIT freed 303K, 69% free 2620K/8323K, paused 3ms+3ms (dalvikvm)

I'm trying to get the Exchange package from Cyanogenmod Git Repository but I can't find it, I want to look inside the source, maybe I can do somthing about that.