~/talk

EncryptedSharedPreferences Deprecated! Now What?

TalkinJapaneseat DroidKaigi 2025 · 2025-09-10..09-12· [security]
links:none on file
slides:none on file

AndroidX EncryptedSharedPreferences (androidx.security:security-crypto) is deprecated in 1.1.0-alpha07. Migration options are: use the Android Keystore directly via JCA/provider="AndroidKey", implement AEAD yourself with AES‑GCM and a 12‑byte IV, or use Tink’s newer AndroidKey helpers while avoiding deprecated Tink APIs. Because OEM keystore bugs have caused 459 crash reports and master‑key corruption, migrate by exporting all stored values, re‑encrypting with the new key material, deleting old master key files, handling exceptions, and forcing logout/recreation of keys on failure.

AI-written summary · about

  1. 0:00Introduction
  2. 1:17AndroidX Security overview
  3. 5:17EncryptedSharedPreferences features
  4. 8:45Security Crypto internals
  5. 11:37Deprecation reasons
  6. 14:04Security philosophy
  7. 16:12Migration options
  8. 17:39AndroidKeyStore usage
  9. 24:41Encryption principles
  10. 26:11Tink encryption
  11. 29:45Tink key management
  12. 30:06Migration steps
  13. 32:17OEM crash issues
  14. 35:11AndroidKeyStore bugs
  15. 36:34Error handling
  16. 37:38Summary
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.