Unpacking Android Security: Part 2 - Insecure Data Storage (Example 5)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val Context.dataStore by preferencesDataStore(name = "insecure-data-store") | |
val pref1 = stringPreferencesKey("example_pref") | |
val pref2 = stringPreferencesKey("example_pref_2") | |
dataStore.edit { settings -> | |
settings[pref1] = "My 1st Pref" | |
settings[pref2] = "My 2nd Pref" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment