This commit is contained in:
lucky 2022-01-03 15:58:07 +03:00
parent 083a1e1cdc
commit 7dd86a92d6
1 changed files with 2 additions and 1 deletions

View File

@ -14,13 +14,14 @@ class Preferences(ctx: Context) {
private const val WIPE_ESIM = "wipe_esim"
private const val MAX_FAILED_PASSWORD_ATTEMPTS = "max_failed_password_attempts"
private const val FILE_NAME = "sec_shared_prefs"
// migration
private const val DO_WIPE = "do_wipe"
}
private val mk = MasterKeys.getOrCreate(MasterKeys.AES256_GCM_SPEC)
private val prefs = EncryptedSharedPreferences.create(
"sec_shared_prefs",
FILE_NAME,
mk,
ctx,
EncryptedSharedPreferences.PrefKeyEncryptionScheme.AES256_SIV,