[OnePlus 2 Android Development] gojkoX:
I was facing the same issue. Then I installed pico (from opengapps) after installing the new version and wiped afterwards and it worked.

---------- Post added at 11:19 AM ---------- Previous post was at 10:51 AM ----------

First of all thank you for this great build. I have one issues I'm having problem with. It started with LineageOS and continuing on Android Oreo. Maybe you can help with that. I have this issue with the Amazon Alexa App. It is not possible to use the Alexa app. I already contacted the support but they can not help, but it seems like that this issue has to do with the Android version in combination with OnePlus 2. You can read more about it here: jira.lineageos.org/browse/BUGBASH-590

I'm getting the following logcat after starting the Alexa App:

11-18 10:43:25.340 8499-5943/com.amazon.dee.app E/AndroidRuntime: FATAL EXCEPTION: IntentService[ContactsOperationsService]
Process: com.amazon.dee.app, PID: 8499
java.security.ProviderException: Failed to load generated key pair from keystore
at android.security.keystore.AndroidKeyStoreKeyPairGeneratorSpi.loadKeystoreKeyPair(AndroidKeyStoreKeyPairGeneratorSpi.java:520)
at android.security.keystore.AndroidKeyStoreKeyPairGeneratorSpi.generateKeyPair(AndroidKeyStoreKeyPairGeneratorSpi.java:472)
at java.security.KeyPairGenerator$Delegate.generateKeyPair(KeyPairGenerator.java:728)
at com.amazon.deecomms.common.util.EncryptionUtils.generateKey(Unknown Source:104)
at com.amazon.deecomms.common.database.CommsDatabaseHelper.recreateDatabase(Unknown Source:46)
at com.amazon.deecomms.common.database.CommsDatabaseHelper.getReadableDatabase(Unknown Source:36)
at com.amazon.deecomms.contacts.database.provider.ContactsProvider.query(Unknown Source:3)
at android.content.ContentProvider.query(ContentProvider.java:1057)
at android.content.ContentProvider.query(ContentProvider.java:1149)
at android.content.ContentProvider$Transport.query(ContentProvider.java:242)
at android.content.ContentResolver.query(ContentResolver.java:754)
at android.content.ContentResolver.query(ContentResolver.java:704)
at android.content.ContentResolver.query(ContentResolver.java:662)
at com.amazon.deecomms.contacts.util.ContactsProviderUtils.deleteAndInsertContacts(Unknown Source:49)
at com.amazon.deecomms.contacts.operations.ContactsOperationHandler.pullContacts(Unknown Source:59)
at com.amazon.deecomms.contacts.operations.ContactsOperationsDelegate.onHandleIntent(Unknown Source:64)
at com.amazon.deecomms.contacts.operations.ContactsOperationsService.onHandleIntent(Unknown Source:2)
at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:68)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:164)
at android.os.HandlerThread.run(HandlerThread.java:65)
Caused by: java.security.UnrecoverableKeyException: Failed to obtain X.509 form of public key
at android.security.keystore.AndroidKeyStoreProvider.loadAndroidKeyStorePublicKeyFromKeystore(AndroidKeyStoreProvider.java:230)
at android.security.keystore.AndroidKeyStoreProvider.loadAndroidKeyStoreKeyPairFromKeystore(AndroidKeyStoreProvider.java:259)
at android.security.keystore.AndroidKeyStoreKeyPairGeneratorSpi.loadKeystoreKeyPair(AndroidKeyStoreKeyPairGeneratorSpi.java:511)
at android.security.keystore.AndroidKeyStoreKeyPairGeneratorSpi.generateKeyPair(AndroidKeyStoreKeyPairGeneratorSpi.java:472)*
at java.security.KeyPairGenerator$Delegate.generateKeyPair(KeyPairGenerator.java:728)*
at com.amazon.deecomms.common.util.EncryptionUtils.generateKey(Unknown Source:104)*
at com.amazon.deecomms.common.database.CommsDatabaseHelper.recreateDatabase(Unknown Source:46)*
at com.amazon.deecomms.common.database.CommsDatabaseHelper.getReadableDatabase(Unknown Source:36)*
at com.amazon.deecomms.contacts.database.provider.ContactsProvider.query(Unknown Source:3)*
at android.content.ContentProvider.query(ContentProvider.java:1057)*
at android.content.ContentProvider.query(ContentProvider.java:1149)*
at android.content.ContentProvider$Transport.query(ContentProvider.java:242)*
at android.content.ContentResolver.query(ContentResolver.java:754)*
at android.content.ContentResolver.query(ContentResolver.java:704)*
at android.content.ContentResolver.query(ContentResolver.java:662)*
at com.amazon.deecomms.contacts.util.ContactsProviderUtils.deleteAndInsertContacts(Unknown Source:49)*
at com.amazon.deecomms.contacts.operations.ContactsOperationHandler.pullContacts(Unknown Source:59)*
at com.amazon.deecomms.contacts.operations.ContactsOperationsDelegate.onHandleIntent(Unknown Source:64)*
at com.amazon.deecomms.contacts.operations.ContactsOperationsService.onHandleIntent(Unknown Source:2)*
at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:68)*
at android.os.Handler.dispatchMessage(Handler.java:105)*
at android.os.Looper.loop(Looper.java:164)*
at android.os.HandlerThread.run(HandlerThread.java:65)*
Caused by: android.security.KeyStoreException: -22
at android.security.KeyStore.getKeyStoreException(KeyStore.java:695)
at android.security.keystore.AndroidKeyStoreProvider.loadAndroidKeyStorePublicKeyFromKeystore(AndroidKeyStoreProvider.java:231)
at android.security.keystore.AndroidKeyStoreProvider.loadAndroidKeyStoreKeyPairFromKeystore(AndroidKeyStoreProvider.java:259)*
at android.security.keystore.AndroidKeyStoreKeyPairGeneratorSpi.loadKeystoreKeyPair(AndroidKeyStoreKeyPairGeneratorSpi.java:511)*
at android.security.keystore.AndroidKeyStoreKeyPairGeneratorSpi.generateKeyPair(AndroidKeyStoreKeyPairGeneratorSpi.java:472)*
at java.security.KeyPairGenerator$Delegate.generateKeyPair(KeyPairGenerator.java:728)*
at com.amazon.deecomms.common.util.EncryptionUtils.generateKey(Unknown Source:104)*
at com.amazon.deecomms.common.database.CommsDatabaseHelper.recreateDatabase(Unknown Source:46)*
at com.amazon.deecomms.common.database.CommsDatabaseHelper.getReadableDatabase(Unknown Source:36)*
at com.amazon.deecomms.contacts.database.provider.ContactsProvider.query(Unknown Source:3)*
at android.content.ContentProvider.query(ContentProvider.java:1057)*
at android.content.ContentProvider.query(ContentProvider.java:1149)*
at android.content.ContentProvider$Transport.query(ContentProvider.java:242)*
at android.content.ContentResolver.query(ContentResolver.java:754)*
at android.content.ContentResolver.query(ContentResolver.java:704)*
at android.content.ContentResolver.query(ContentResolver.java:662)*
at com.amazon.deecomms.contacts.util.ContactsProviderUtils.deleteAndInsertContacts(Unknown Source:49)*
at com.amazon.deecomms.contacts.operations.ContactsOperationHandler.pullContacts(Unknown Source:59)*
at com.amazon.deecomms.contacts.operations.ContactsOperationsDelegate.onHandleIntent(Unknown Source:64)*
at com.amazon.deecomms.contacts.operations.ContactsOperationsService.onHandleIntent(Unknown Source:2)*
at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:68)*
at android.os.Handler.dispatchMessage(Handler.java:105)*
at android.os.Looper.loop(Looper.java:164)*
at android.os.HandlerThread.run(HandlerThread.java:65)*
10:43:22.288 8499-5909/com.amazon.dee.app E/KCommsEncryptionUtils: Cannot find key from keystore to encrypt
11-18 10:43:22.288 8499-5942/com.amazon.dee.app W/zygote: Long monitor contention with owner RxIoScheduler-3 (5909) at java.security.KeyStore$PrivateKeyEntry com.amazon.deecomms.common.util.EncryptionUtils.getKeyInternal(java.lang.String, boolean)(:-1) waiters=0 in void com.amazon.deecomms.common.util.EncryptionUtils.generateKey(java.lang.String) for 830ms
11-18 10:43:22.292 8499-5909/com.amazon.dee.app E/KCommsEncryptionUtils: Key is not found for alias:-329917065
11-18 10:43:22.292 8499-8660/com.amazon.dee.app I/DefaultDeliveryClient: Event: 'comms...' recorded to local filestore
11-18 10:43:22.292 8499-5909/com.amazon.dee.app W/KCommsSecuredSharedPref: Clearing all preferences due to invalid key
11-18 10:43:22.292 8499-5942/com.amazon.dee.app I/KCommsEncryptionUtils: generating key
11-18 10:43:22.293 8499-5909/com.amazon.dee.app I/KCommsCommsInternal: Attempt to register for push with ACMS in a background thread
11-18 10:43:22.293 566-566/? I/keystore: del USRPKEY_COMMS_DATABASE_KEY_ALIAS 10093

Thank you!