Skip to content

Instantly share code, notes, and snippets.

@ed-george
Created June 4, 2022 00:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ed-george/98ec9fca279f76c87bf478a002293bc1 to your computer and use it in GitHub Desktop.
Save ed-george/98ec9fca279f76c87bf478a002293bc1 to your computer and use it in GitHub Desktop.
Unpacking Android Security: Part 2 - Insecure Data Storage (Example 1)
val prefs = context?.getSharedPreferences("mySharedPrefFile", Context.MODE_PRIVATE) ?: return
// Store some credentials we might not want others to read
prefs.edit().putString("mySecretKey", "mySecretValue").apply()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment