sodcalculator

10 Tech How-To

Where Is App Data Stored on Android?

Guide 10-16648 · Updated · Step by step

App data on an Android phone is stored in two main places: the app’s private internal storage directory (typically /data/data/<package-name>/) and its external storage folder (usually /storage/emulated/0/Android/data/<package-name>/). The private directory holds databases, preferences, and cached files that only the app can access, while the external folder stores larger user-facing files like downloads and media. This article explains each location in detail, how Android manages them, and what you can do to view or back them up.

Background: Why Android Separates App Storage

Android is built on a Linux kernel, which has always separated user data from system files. Early versions (1.x–4.x) gave apps broad access to the entire file system, but that led to security problems and messy storage. Starting with Android 6 (Marshmallow), Google introduced runtime permissions, and Android 11 (2020) added scoped storage, which restricts an app to its own dedicated directories unless it asks for special access. The result is a clear split between:

  • Internal storage – private, always available, wiped when the app is uninstalled.
  • External storage – shared, but each app gets its own sandboxed folder under Android/data/.

This design protects your personal files from malicious apps and makes backups more predictable.

Internal Storage: The App’s Private Sandbox

Every installed app gets a private directory on the internal flash memory. You can’t see it without root access, but it’s there. The path is:

/data/data/<package-name>/

Inside that folder, Android creates standard subdirectories:

  • databases/ – SQLite database files (e.g., app.db)
  • shared_prefs/ – XML files storing key-value settings (e.g., settings.xml)
  • files/ – any files the app saves via openFileOutput()
  • cache/ – temporary files that the system may delete when storage is low

Apps access these via the Context.getFilesDir() and getDatabasePath() methods. Because this area is private, other apps (and the user) cannot read it without root permissions. When you uninstall an app, this entire folder is deleted.

External Storage: The Shared but Sandboxed Folder

For files that are large or meant to be shared (like downloaded PDFs or photos), apps use external storage. On modern Android, the public external storage is at /storage/emulated/0/ (which maps to the “Internal shared storage” you see in file managers). Each app gets a dedicated folder:

/storage/emulated/0/Android/data/<package-name>/

Inside, you’ll typically find:

  • files/ – app-specific files (e.g., downloaded documents)
  • cache/ – cached images or videos

This area is accessible to other apps if they have storage permission, but Android 11 and later restrict that access. The folder is also deleted when you uninstall the app. If the phone has an SD card, there may be a similar Android/data/<package-name>/ folder on the card, but many apps now store only on internal storage.

How to View App Data Without Root

You can’t browse the private /data/data folder on a non-rooted phone, but you can see the external Android/data folder using a file manager. Here’s how:

  1. Open your phone’s Settings → Apps → select the app you’re interested in.
  2. Tap “Storage” – you’ll see how much internal storage the app uses (app, data, cache).
  3. To see the actual files, use a file manager app (like Google Files) and navigate to Internal storage/Android/data/<package-name>/.
  4. If the folder is empty or you can’t access it, the app may store everything in the private internal directory.

For a full view, you’d need a computer with USB debugging enabled and use adb backup or root access – both are advanced and not recommended for casual users.

Common Problems and Misconceptions

Many users confuse “app data” with “app cache.” Cache is just temporary files that can be cleared anytime – it’s stored in cache/ subfolders. Actual app data (logins, settings, databases) is in databases/ and shared_prefs/. Clearing the cache won’t log you out; clearing data will.

Another misconception: moving an app to an SD card moves the whole app. In reality, only the APK and some files move; the private data stays in internal storage. Since Android 6, moving apps to SD is mostly disabled for security reasons.

A common problem is running out of space because an app’s Android/data folder grows huge (e.g., WhatsApp media). You can safely delete files in that folder manually, but you’ll lose that app’s downloaded content.

Backup and Restore Options

Android’s built-in backup service (for Google One) backs up app data to the cloud, but it’s limited – not every app participates. For a full backup, you can use:

  • ADB backup – via computer, creates a .ab file with app data.
  • Manufacturer tools – Samsung Smart Switch, Google Pixel’s backup, etc.
  • Root backup – Titanium Backup (requires root).

Without root, the only reliable way to back up an app’s data is to use the app’s own export feature (if it has one). For example, WhatsApp lets you export chats to Google Drive. Always check the app’s settings for a backup option.

Security and Privacy Considerations

Because app data can contain sensitive information (passwords, tokens, personal messages), Android isolates it. The private directory is protected by Linux file permissions – only the app’s UID can read it. The external Android/data folder is readable by other apps if they have storage permission, so developers are advised not to store sensitive data there.

If you sell or give away your phone, you should perform a factory reset to wipe all app data. Even then, forensic tools might recover remnants, so consider encrypting your device (which is on by default on modern phones).

Frequently Asked Questions

How do I see app data on Android without root?

You can only see the external Android/data/<package-name> folder with a file manager. The private internal /data/data folder is hidden unless you have root access. To view internal data, you’d need to use Android Debug Bridge (ADB) with a computer and a backup command, but that’s complicated and not recommended for most users.

Where is app data stored on an SD card?

If an app supports moving to an SD card (rare on modern Android), the APK and some files go to /storage/XXXX-XXXX/Android/data/<package-name>/. However, the app’s private data (databases, settings) always stays in internal storage. Most apps don’t support SD card storage at all since Android 6.

Does clearing app data delete my photos?

No, clearing app data only deletes the app’s internal files (databases, preferences, cache). Photos you took with the camera app are stored in DCIM/ or Pictures/ on external storage, not in the app’s private folder. However, if the app downloaded media into its Android/data folder, clearing data will delete those files.

Why is app data so large?

App data grows because of cached images, downloaded content, and databases that accumulate over time. For example, social media apps store every image you view in their cache. You can reduce this by clearing the cache (Settings → Apps → Storage → Clear Cache) or by using the app’s own “clear cache” feature. The data itself (like your login state) is usually small.

Can I move app data to another phone?

Yes, but only if the app supports backup. Google’s auto-backup saves app data to your Google Drive account, and when you set up a new phone, it restores automatically. For apps that don’t support it, you’ll need to log in again. Some apps have their own export/import feature (e.g., WhatsApp chat backup).

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →