Applications can no longer start until reboot

Hi,
Since I have moved to /e/os on my old Samsung Galaxy S8, I have the following issue:
some applications such as Outlook (in this example in the logs) or Element are stuck when starting them:

  • Element is stuck at splash screen (like all other applications where it happened)
  • Outlook is stuck when loading the inbox view

    Not all applications are stuck, for example sometimes Outlook, sometimes Element, sometimes both, etc.
    Rebooting is the only way to fix the issue: clearing cache, forcing application stop or disabling wifi/cellular network doesn’t fix the issue.
    Interesting is that once it has happened it is not possible to activate the developer mode (to generate a bug report) afterwards, because it requires the unlock password that doesn’t work (say it’s not correct whereas it is).
    So to be able to generate the bug report, I had to reboot and enable developer mode before the bug to occur. Here is an interesting (repetitive) log that I have in the bug report as soon as the bug occurs: “keystore2::error: In create_operation: Failed to begin operation”

Here is an extract at the first occurence it occurs:


03-10 15:42:35.227  1017  4222  8656 E keystore2: keystore2::error: In create_operation: Failed to begin operation.
03-10 15:42:35.227  1017  4222  8656 E keystore2: 
03-10 15:42:35.227  1017  4222  8656 E keystore2: Caused by:
03-10 15:42:35.227  1017  4222  8656 E keystore2:     0: In KeystoreSecurityLevel::upgrade_keyblob_if_required_with.
03-10 15:42:35.227  1017  4222  8656 E keystore2:     1: In utils::upgrade_keyblob_if_required_with: Calling km_op.
03-10 15:42:35.227  1017  4222  8656 E keystore2:     2: Error::Rc(ResponseCode(18))
03-10 15:42:35.228 10170 23508 27084 I TokenTelemetry: Token refresh request for accountId: 32768  accountType: OutlookHx cloudType: WorldWide correlationId: 6553f2f9-a849-4aee-9a86-ecd19be870fe claims: false tokenRefreshDuration: 608 ms isFromCache: false isSuccess: true errorMessage: null tokenErrorType: null tokenRefreshComponent: partner tokenResource: liveprofilecard.access scope: null ttlInUTC: 2025-03-11T14:42:35 authFramework: oneauth CompanyPortalVersion: null AuthenticatorVersion: null
03-10 15:42:35.229 10170 23508 27093 I HxFolderPaneViewModel: stored folders: 15 favorites: 12, filtered folders: 2 favorites: 12
03-10 15:42:35.234 10114  4765  4845 E BufferQueueProducer: [ViewRootImpl[NotificationShade]#154(BLAST Consumer)154](id:129d0000009a,api:0,p:-1,c:4765) disconnect: not connected (req=1)
03-10 15:42:35.234 10114  4765  4845 W libEGL  : EGLNativeWindowType 0x72613b06b0 disconnect failed
03-10 15:42:35.235  1017  4222  8656 E keystore2: keystore2::error: In create_operation: Failed to begin operation.
03-10 15:42:35.235  1017  4222  8656 E keystore2: 
03-10 15:42:35.235  1017  4222  8656 E keystore2: Caused by:
03-10 15:42:35.235  1017  4222  8656 E keystore2:     0: In KeystoreSecurityLevel::upgrade_keyblob_if_required_with.
03-10 15:42:35.235  1017  4222  8656 E keystore2:     1: In utils::upgrade_keyblob_if_required_with: Calling km_op.
03-10 15:42:35.235  1017  4222  8656 E keystore2:     2: Error::Rc(ResponseCode(18))
03-10 15:42:35.239 10170 23508 23508 I HxFolderPaneViewModel: Not showing compact card
03-10 15:42:35.239 10170 23508 23508 I HxFolderPaneViewModel: Not showing compact card
03-10 15:42:35.247 10170 23508 23508 I ACBaseFragment: MailDrawerComposeFragment: onPause
03-10 15:42:35.249 10170 23508 23508 I ACBaseFragment: MailDrawerComposeFragment: onAttach
03-10 15:42:35.251 10170 23508 23508 I ACBaseFragment: MailDrawerComposeFragment: onCreate
03-10 15:42:35.252 10170 23508 23508 I MailDrawerComposeFragment: onCreateView start
03-10 15:42:35.254  1000  4559  6316 W ContextImpl: Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcastMultiplePermissions:1214 com.android.server.TelephonyRegistry.broadcastServiceStateChanged:2911 com.android.server.TelephonyRegistry.notifyServiceStateForPhoneId:1613 com.android.internal.telephony.ITelephonyRegistry$Stub.onTransact:455 android.os.Binder.execTransactInternal:1184 
03-10 15:42:35.254  1000  4559  6316 W ContextImpl: Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcastMultiplePermissions:1264 android.content.Context.sendBroadcastMultiplePermissions:2224 com.android.server.TelephonyRegistry.broadcastServiceStateChanged:2915 com.android.server.TelephonyRegistry.notifyServiceStateForPhoneId:1613 com.android.internal.telephony.ITelephonyRegistry$Stub.onTransact:455 
03-10 15:42:35.255  1000  4559  6316 W ContextImpl: Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcastMultiplePermissions:1264 android.content.Context.sendBroadcastMultiplePermissions:2224 com.android.server.TelephonyRegistry.broadcastServiceStateChanged:2922 com.android.server.TelephonyRegistry.notifyServiceStateForPhoneId:1613 com.android.internal.telephony.ITelephonyRegistry$Stub.onTransact:455 
03-10 15:42:35.255  1000  4559  4593 W BroadcastQueue: Permission Denial: receiving Intent { act=android.intent.action.SERVICE_STATE flg=0x1000010 (has extras) } to ProcessRecord{c914f59 4765:com.android.systemui/u0a114} (pid=4765, uid=10114) requires android.permission.ACCESS_FINE_LOCATION due to sender android (uid 1001)
03-10 15:42:35.257  1000  4559  4593 W BroadcastQueue: Permission Denial: receiving Intent { act=android.intent.action.SERVICE_STATE flg=0x1000010 (has extras) } to ProcessRecord{4cfac63 5021:com.android.phone/1001} (pid=5021, uid=1001) requires android.permission.READ_PHONE_STATE due to sender android (uid 1001)
03-10 15:42:35.257  1000  4559  4593 W BroadcastQueue: Permission Denial: receiving Intent { act=android.intent.action.SERVICE_STATE flg=0x1000010 (has extras) } to ProcessRecord{c914f59 4765:com.android.systemui/u0a114} (pid=4765, uid=10114) requires android.permission.ACCESS_FINE_LOCATION due to sender android (uid 1001)
03-10 15:42:35.258  1017  4222  8656 E keystore2: keystore2::error: In create_operation: Failed to begin operation.
03-10 15:42:35.258  1017  4222  8656 E keystore2: 
03-10 15:42:35.258  1017  4222  8656 E keystore2: Caused by:
03-10 15:42:35.258  1017  4222  8656 E keystore2:     0: In KeystoreSecurityLevel::upgrade_keyblob_if_required_with.
03-10 15:42:35.258  1017  4222  8656 E keystore2:     1: In utils::upgrade_keyblob_if_required_with: Calling km_op.
03-10 15:42:35.258  1017  4222  8656 E keystore2:     2: Error::Rc(ResponseCode(18))
03-10 15:42:35.258  1000  4559  4593 W BroadcastQueue: Permission Denial: receiving Intent { act=android.intent.action.SERVICE_STATE flg=0x1000010 (has extras) } to com.android.cellbroadcastreceiver.module/com.android.cellbroadcastreceiver.CellBroadcastReceiver requires android.permission.READ_PHONE_STATE due to sender android (uid 1001)
03-10 15:42:35.259 10170 23508 23508 I AcctNavView: populateAccountItemViews
03-10 15:42:35.259  1000  4559  6316 W ContextImpl: Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcastMultiplePermissions:1264 android.content.Context.sendBroadcastMultiplePermissions:2224 com.android.server.TelephonyRegistry.broadcastServiceStateChanged:2926 com.android.server.TelephonyRegistry.notifyServiceStateForPhoneId:1613 com.android.internal.telephony.ITelephonyRegistry$Stub.onTransact:455 
03-10 15:42:35.259 10170 23508 27086 I AcctNavViewVM: Loading account button views
03-10 15:42:35.260 10170 23508 23508 I DrawerFragment: onViewCreated
03-10 15:42:35.260 10170 23508 23508 I ACBaseFragment: MailDrawerComposeFragment: onViewCreated

Here are the software and hardware details:
/e/OS version: e-2.8-s-20250220470167-official-dreamlte
Android version: 12
Model: SM-G950F
Device: dreamlte
Manufacturer: Samsung

Any ideas ?
Thank for your help

Also, note that this issue was already there in previous version /e/OS version 2.7, which was the first version of e/OS I had on this phone

tricky, that keystore2 stacktrace can also be found at Keystore operation failed errors on Samsung Galaxy S21 series · Issue #252 · privacybydesign/irmamobile · GitHub (with different return code though, 18 instead of 10 / -33) - but any resolution goes back to “Samsung supplied new system patches”

1 Like