breadwallet / breadwallet-android

The Android version of the Bread bitcoin wallet.
MIT License
389 stars 424 forks source link

Upgrade from 4.1.1 to 4.5.8 #179

Closed dabitdev closed 4 years ago

dabitdev commented 4 years ago
2020-11-11 12:53:51.582 31351-31461/cash.just.wallet.debug W/AndroidKeysetManager: keyset not found, will generate a new one
    java.io.FileNotFoundException: can't read keyset; the pref value __androidx_security_crypto_encrypted_prefs_key_keyset__ does not exist
        at com.google.crypto.tink.integration.android.SharedPrefKeysetReader.readPref(SharedPrefKeysetReader.java:71)
        at com.google.crypto.tink.integration.android.SharedPrefKeysetReader.readEncrypted(SharedPrefKeysetReader.java:89)
        at com.google.crypto.tink.KeysetHandle.read(KeysetHandle.java:105)
        at com.google.crypto.tink.integration.android.AndroidKeysetManager$Builder.read(AndroidKeysetManager.java:304)
        at com.google.crypto.tink.integration.android.AndroidKeysetManager$Builder.readOrGenerateNewKeyset(AndroidKeysetManager.java:280)
        at com.google.crypto.tink.integration.android.AndroidKeysetManager$Builder.build(AndroidKeysetManager.java:230)
        at androidx.security.crypto.EncryptedSharedPreferences.create(EncryptedSharedPreferences.java:121)
        at com.breadwallet.app.BreadApp.createEncryptedPrefs(BreadApp.kt:529)
        at com.breadwallet.app.BreadApp.access$createEncryptedPrefs(BreadApp.kt:127)
        at com.breadwallet.app.BreadApp$kodein$2$3$1.invoke(BreadApp.kt:300)
dabitdev commented 4 years ago

MigrationController > BRDUserManager.migrateKeystoreData() crashes with NPE on BRKeyStore.getToken

dabitdev commented 4 years ago

I just fixed using the oldBRKeystore and doing the migration using their methods.