Created
June 4, 2022 00:11
-
-
Save ed-george/b1c411a5004f4d296dc1068219a2ced9 to your computer and use it in GitHub Desktop.
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