[Sony Xperia XZ Premium ROMs, Kernels, Recoveries, ] ironfoot54:
Hi, first thanks for the great rom! Then, i've been having an annoying problem since i switched to android 10 roms... So i'm looking for help here please. Before on existenZ rom i didn't have that. I tried so far Arrow os, CR8 and currently i'm on bliss, and the problem is the following : all my apps that are using some kind of encryption keeps crashing whenever i reboot. My only option is then to reinstall them... Here is a crash log for protonmail for example:

time: 1590948060335

msg: android.security.keystore.KeyNotYetValidException: Key not yet valid

stacktrace: java.lang.RuntimeException: Unable to create application ch.protonmail.android.core.ProtonMailApplication: android.security.keystore.KeyNotYetValidException: Key not yet valid

at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6465)

at android.app.ActivityThread.access$1300(ActivityThread.java:219)

at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1859)

at android.os.Handler.dispatchMessage(Handler.java:107)

at android.os.Looper.loop(Looper.java:214)

at android.app.ActivityThread.main(ActivityThread.java:7356)

at java.lang.reflect.Method.invoke(Native Method)

at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)

at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:915)

Caused by: android.security.keystore.KeyNotYetValidException: Key not yet valid

at android.security.KeyStore.getInvalidKeyException(KeyStore.java:1320)

at android.security.KeyStore.getInvalidKeyException(KeyStore.java:1413)

at android.security.keystore.KeyStoreCryptoOperationUtils.getInvalidKeyExceptionForInit(KeyStoreCryptoOperationUtils.java:54)

at android.security.keystore.KeyStoreCryptoOperationUtils.getExceptionForCipherInit(KeyStoreCryptoOperationUtils.java:89)

at android.security.keystore.AndroidKeyStoreCipherSpiBase.ensureKeystoreOperationInitialized(AndroidKeyStoreCipherSpiBase.java:265)

at android.security.keystore.AndroidKeyStoreCipherSpiBase.engineInit(AndroidKeyStoreCipherSpiBase.java:109)

at javax.crypto.Cipher.tryTransformWithProvider(Cipher.java:2984)

at javax.crypto.Cipher.tryCombinations(Cipher.java:2891)

at javax.crypto.Cipher$SpiAndProviderUpdater.updateAndGetSpiAndProvider(Cipher.java:2796)

at javax.crypto.Cipher.chooseProvider(Cipher.java:773)

at javax.crypto.Cipher.init(Cipher.java:1143)

at javax.crypto.Cipher.init(Cipher.java:1084)

at e.a.a.k.a.a(SecureSharedPreferences.kt:71)

at e.a.a.k.a.<init>(SecureSharedPreferences.kt:9)

at e.a.a.k.a.<init>(SecureSharedPreferences.kt:1)

at e.a.a.k.a$a.a(SecureSharedPreferences.kt:6)

at ch.protonmail.android.core.ProtonMailApplication.a(ProtonMailApplication.java:1)

at ch.protonmail.android.api.models.UserSettings.load(UserSettings.java:2)

at ch.protonmail.android.core.m.o(UserManager.kt:3)

at ch.protonmail.android.core.m.<init>(UserManager.kt:9)

at ch.protonmail.android.core.p.s.a(AppModule.kt:8)

at ch.protonmail.android.core.p.q0.a(AppModule_ProvideUserManagerFactory.java:2)

at ch.protonmail.android.core.p.q0.b(AppModule_ProvideUserManagerFactory.java:2)

at ch.protonmail.android.core.p.q0.get(AppModule_ProvideUserManagerFactory.java:2)

at ch.protonmail.android.core.p.q0.get(AppModule_ProvideUserManagerFactory.java:1)

at dagger.b.b.get(DoubleCheck.java:6)

at ch.protonmail.android.core.p.r0.b(DaggerAppComponent.java:6)

at ch.protonmail.android.core.p.r0.a(DaggerAppComponent.java:86)

at ch.protonmail.android.core.ProtonMailApplication.onCreate(ProtonMailApplication.java:11)

at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1190)

at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6460)

... 8 more

Here for signal :

time: 1590948582309

msg: java.lang.NullPointerException: Attempt to invoke virtual method 'javax.crypto.SecretKey java.security.KeyStore$SecretKeyEntry.getSecretKey()' on a null object reference

stacktrace: java.lang.RuntimeException: Unable to create application org.thoughtcrime.securesms.ApplicationContext: java.lang.NullPointerException: Attempt to invoke virtual method 'javax.crypto.SecretKey java.security.KeyStore$SecretKeyEntry.getSecretKey()' on a null object reference

at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6465)

at android.app.ActivityThread.access$1300(ActivityThread.java:219)

at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1859)

at android.os.Handler.dispatchMessage(Handler.java:107)

at android.os.Looper.loop(Looper.java:214)

at android.app.ActivityThread.main(ActivityThread.java:7356)

at java.lang.reflect.Method.invoke(Native Method)

at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)

at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:915)

Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'javax.crypto.SecretKey java.security.KeyStore$SecretKeyEntry.getSecretKey()' on a null object reference

at org.thoughtcrime.securesms.crypto.KeyStoreHelper.getSecretKey(KeyStoreHelper.java:122)

at org.thoughtcrime.securesms.crypto.KeyStoreHelper.getKeyStoreEntry(KeyStoreHelper.java:108)

at org.thoughtcrime.securesms.crypto.KeyStoreHelper.unseal(KeyStoreHelper.java:67)

at org.thoughtcrime.securesms.logging.LogSecretProvider.parseEncryptedSecret(LogSecretProvider.java:36)

at org.thoughtcrime.securesms.logging.LogSecretProvider.getOrCreateAttachmentSecret(LogSecretProvider.java:21)

at org.thoughtcrime.securesms.logging.PersistentLogger.<init>(PersistentLogger.java:51)

at org.thoughtcrime.securesms.ApplicationContext.initializeLogging(ApplicationContext.java:216)

at org.thoughtcrime.securesms.ApplicationContext.onCreate(ApplicationContext.java:113)

at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1190)

at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6460)

... 8 more

And each time i flashed a rom it was from stock, following all the instructions (formatting data and everything)