Android App Security · Course 4
Storing Data Safely
Where apps keep files, keys and secrets, and how data leaks out.
About this course
Where an app saves a file decides who else can read it and whether it survives an uninstall. Private app storage is sealed off from other apps, while shared folders like Download can be reached through the system and outlive the app. Secrets need even more care: keys belong in the Android Keystore, master secrets belong on the developer's server, and anything shipped inside an APK should be treated as public.
In the lab you'll save a file to private and shared storage and see what another app can reach, with and without All files access. You'll learn how the Keystore stops keys from being copied even if an app is taken over, how keys can require your fingerprint or PIN, and how backups, phone-to-phone transfers and system logs can carry data out of the sandbox. The final challenge has you review a relative's budgeting app and find every place its secrets could leak.
Lessons
- 1App Storage vs Shared Storage12 min · See where an app's files live, who else can read them, and what survives an uninstall.Save a file to private and shared storage in the lab · Learn scoped storage and All files access
- 2The Android Keystore12 min · Learn how Android guards encryption keys so even a hacked app can't copy them.Learn why keys need their own safe · See hardware-backed keys, TEE and StrongBox · Learn keys that need your fingerprint or PIN
- 3Backups & Logs13 min · Find two quiet ways private app data leaves its sandbox: backups and logs.Learn what Auto Backup copies and how to control it · See the Android 12 change for phone-to-phone transfers · Learn why secrets don't belong in Logcat
- 4Secrets in the Code12 min · Learn why anything shipped inside an app is public, and where real secrets belong.Learn why secrets baked into an APK aren't secret · See why obfuscation isn't encryption · Sort public keys from real secrets
- 5Challenge: The Leaky Budget App15 min · Review your cousin's budgeting app and find every place its secrets could leak.Check where its files, keys, backups and logs go
Do it on the simulated phone
Lessons have labs you can try in your browser, plus questions that earn points toward the Vault Keeper badge.
Start lesson 1