Skip to content

Android 12 - SecurePreferences.setValue throws an exception #96

@dark-returnal

Description

@dark-returnal

I am getting the below error while i am running my android app on the new Beta of Android 12. I use the version de.adorsys.android:securestoragelibrary:1.2.4

java.lang.IllegalArgumentException: Bad arguments
javax.crypto.Cipher.doFinal(Cipher.java:2109)
android.security.keystore2.AndroidKeyStoreCipherSpiBase.engineDoFinal(AndroidKeyStoreCipherSpiBase.java:582)
javax.crypto.Cipher.doFinal(Cipher.java:1938)
javax.crypto.CipherOutputStream.close(CipherOutputStream.java:210)
de.adorsys.android.securestoragelibrary.KeystoreTool.encryptMessage(KeystoreTool.java:88)
de.adorsys.android.securestoragelibrary.SecurePreferences.setValue(SecurePreferences.java:59)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions