The folder Data on Android is one of the most important system directories where settings are stored applications, cache, databases and user files. However, finding it is not so easy: smartphone manufacturers (Samsung, Xiaomi, Google Pixel) often hide system partitions from users, and without root access access is limited. In this article, we will look at where the folder is physically located /data, how to access it through legal means and what to do if it is damaged.

It is important to understand: The Data folder is not the same as the internal memory of the phone (for example, /storage/emulated/0). It refers to a partition /data in the Android file system that is mounted when the OS boots and contains critical data for the operation of the system and applications. An attempt to delete or change files here without understanding the consequences can lead to crashes or even bricking of the device.

We will look at all the current access methods - from standard file managers to commands ADB and tools for rooted devices. And if you just need to free up space, Let's tell you what data can be safely cleared.

What is the Data folder on Android and why do you need it?

The /data folder is a separate section of the Android file system, which is created when you first set up the smartphone, in contrast to /system (where OS files are stored) or /cache (temporary data), information unique to your device is concentrated here:

  • ๐Ÿ“ฑ Application settings โ€” saved games, logins, interface settings (for example, themes in WhatsApp or progress in Genshin Impact).
  • ๐Ÿ—ƒ๏ธ Databases โ€” files .db or .sqlite, where applications store structured data (for example, chat history in Telegram).
  • ๐Ÿ”‘ Encryption keys - data for unlocking encrypted sections (if using FBE โ€” File-Based Encryption).
  • ๐Ÿ“ User files โ€” downloads of some applications (for example, maps in Google Maps or offline music in Spotify).

On modern versions of Android (12+), the folder /data is divided into subdirectories for each user and application. For example:

  • /data/user/0 โ€” data of the main user (phone owner).
  • /data/user_de/0 โ€” encrypted data (if encryption is enabled).
  • /data/app โ€” files of installed applications (including APK and OBB).

Why is this important? If, for example, you want to transfer progress from a game to another phone, you will need exactly the contents. folder /data/data/application_package_name. But access to it is limited by default - we'll talk about this later.

๐Ÿ“Š How do you usually manage files on Android?
Through a standard file manager
I use Total Commander or FX File Explorer
I connect the phone to the PC
I use ADB or root access

Where is the Data folder physically located: Android partition structure

Physically the folder /data located in a separate section of the deviceโ€™s internal memory. To understand where exactly, you need to understand the data storage structure on Android:

Section Path Contents Access without root
/system /system Operating system files (not modified by the user) Read only
/data /data User data, application settings, databases Limited (only via ADB or root)
/cache /cache Temporary system and update files Cleaning via Recovery
/storage/emulated/0 /sdcard or /storage/self/primary User-visible internal memory (photos, videos, documents) Full access

On most smartphones, the section /data is mounted as /dev/block/mmcblk0pX (where X is the section number, for example, p25 on Samsung or p41 on XiaomiYou can see this through ADB Shell command:

ls -l /dev/block/by-name

However, the physical location is not equivalent to access. Even if you know that the folder is on the partition mmcblk0p25, you will not be able to read its contents without special rights. The exception is using custom Recovery (for example, TWRP), which temporarily mounts the partition with rights to read.

๐Ÿ’ก

On some devices (for example, Google Pixel with Android 13+), the partition /data is encrypted by default. To decrypt it, you need to enter a password/pattern when connecting via ADB or. Recovery.

If you do not have root accessthe ability to view the folder /data is very limited. However, there are several legal methods that work on most devices:

1. Via ADB (Android Debug Bridge)

Tool ADB allows you to execute commands on the device from your computer To access the folder /data:

  1. Enable USB debugging in the developer settings (Settings โ†’ About phone โ†’ Build number (7 times) โ†’ For developers โ†’ USB debugging).
  2. Connect the phone to the PC and confirm trust in computer.
  3. Open the command line (Windows) or terminal (macOS/Linux) and enter:
adb shell

su -c "ls /data"

If the command su does not work, you do not have root. In this case, you can try:

adb shell ls. /data/data/package.application name

Example for WhatsApp:

adb shell ls /data/data/com.whatsapp

Install drivers for your device (for example, Samsung USB Driver)

Download ADB Tools from the official Google website

Enable USB debugging in settings phone

Connect the phone to the PC with an original cable (not all cables support data transfer)

-->

2. Through backup (Backup)

Android allows you to create backup copies of application data using the command:

adb backup -f backup.ab -apk -obb -shared -all

This command saves data from /data to a file backup.ab on the computer. However:

  • ๐Ÿ” Not all applications support backup (for example, Banking applications often block this function).
  • ๐Ÿ“‚ The file .ab needs to be unpacked using special tools (for example, abe (Android Backup Extractor)).
  • โš ๏ธ Data can only be restored to the same device with the same Google account.

3. Through file managers with extended rights

Some file managers (for example, FX File Explorer or Solid Explorer) can request access to /data via ADB bridge. To do this:

  1. Install the file manager from Google Play.
  2. In the application settings, find the option ADB Access or Root Access.
  3. Connect your phone to the PC and follow the manager's instructions to obtain temporary access.
Why do manufacturers block access to /data?

The main reason is security. The folder contains confidential information (passwords, authorization tokens, banking application data). Open access increases the risk of data theft through malware or physical access to the device. In addition, incorrect changes to /data can disrupt the operation of the system, which will lead to a warranty claim (manufacturers do not want to cover repairs due to fault). user).

Accessing the Data folder with root access: step-by-step guide

If your device rooted (has superuser rights), you get full control over the folder /dataHowever, remember:

โš ๏ธ Attention: Incorrect handling of files in /data may result in data loss, application crashes, or the system being unable to boot. Always make a backup copy before making changes!

To open. folder /data on a rooted device:

  1. Install a file manager with root support (for example, Root Explorer, Mixplorer or FX File Explorer).
  2. Launch the manager and grant it root access when prompted.
  3. Go to the root directory (/) and open the folder data.

Inside you will see the structure:

/data

โ”œโ”€โ”€ app # Installed applications (APK and data)

โ”œโ”€โ”€ data # Application data (by package name)

โ”œโ”€โ”€ dalvik-cache # Dalvik/ART cache

โ”œโ”€โ”€ media # Media files (on some firmware)

โ””โ”€โ”€ user # User data (0 is the main user)

For example, to copy game data Clash of Clans:

  1. Go to /data/data/com.supercell.clashofclans.
  2. Copy folders shared_prefs (settings) and databases (progress).
  3. Paste them into the same folder on another device (after installing the game).
๐Ÿ’ก

Even with root access, not all files in /data can be copied โ€œas isโ€. Some applications (for example, banking) use device locking or encryption, which makes data transfer impossible.

What can be safely deleted in the Data folder to clear memory

If the goal is to free up space, not all files in /data are critical. Here's what you can delete without risk to the system:

  • ๐Ÿงน Dalvik/ART cache (/data/dalvik-cache) - temporary files to speed up applications. They are deleted without consequences, but will be restored the next time you launch applications.
  • ๐Ÿ—‘๏ธ Cache of individual applications (/data/data/package name/cache) - for example, cache Google Chrome or Instagram. Cleared via Settings โ†’ Applications โ†’ Storage โ†’ Clear cache.
  • ๐Ÿ“‚ Residual files of deleted applications (/data/data/package name) - if the application is deleted, but it the folder remains.
  • ๐Ÿ”„ Temporary files updates (/data/app-lib or /data/app-asec) - remnants from old versions of applications.

What to delete cannot:

  • ๐Ÿšซ Folders shared_prefs i databases โ€” settings and application progress are stored here.
  • ๐Ÿšซ Files with the extension .odex or .oat are part of the optimized application code.
  • ๐Ÿšซ Folder /data/system โ€”contains critical OS settings (Wi-Fi, Bluetooth, accounts).

For safe cleaning, use the command ADB:

adb shell pm trim-caches 1G

This command will clear the cache of all applications, freeing up to 1 GB of space (replace 1G with the desired amount).

โš ๏ธ Attention: On some firmware (for example, MIUI from Xiaomi) the folder /data can be encrypted even if root is present. In this case, to access you will need to enter the device password in the terminal:

su

vdc cryptfs checkpasswd your_password

Frequent problems with the Data folder and their solutions

Folder /data can become a source of various errors. Let's look at typical scenarios and ways to fix them:

Problem Cause Solution
Applications constantly crash after cleaning /data Critical settings or database files have been deleted data Reinstall the application or restore data from a backup
There is not enough space in /dataalthough the internal memory is free The partition /data has a fixed size (especially on older devices) Remove unnecessary applications or reconfigure partitions through TWRP
You cannot write files to /data even with root The file system is mounted in mode read-only Run command: mount -o rw,remount /data
After resetting the settings, the folder /data remained encrypted Encryption keys from the old password remained Perform a full reset via Fastboot: fastboot -w

If the device does not boot due to damage /data, try:

  1. Boot into Recovery Mode (usually Power + Volume Up).
  2. Select Wipe โ†’ Advanced Wipe โ†’ Data (in TWRP).
  3. Reboot. Attention: this will delete all user data!

To diagnose problems with /data use the command:

adb shell df -h /data

It will show how much space is occupied and available in the partition.

How to transfer data from the Data folder to another phone

Transferring data between devices is one of the most popular reasons for accessing /dataHere's how to do it correctly:

1. For applications not tied to the device

Some games and apps. (for example, Brawl Stars, VLC) allow you to transfer progress by copying folders:

  1. On the old phone, copy the folder /data/data/package name (for example, com.supercell.brawlstars).
  2. Install the same application on the new phone and run it at least once.
  3. Replace the folder /data/data/package name on the new phone with the copied one.
  4. Reboot the device.

2. For applications with encryption. data-i="270">Settings โ†’ Chat โ†’ Backup

If the data is encrypted (for example, in WhatsApp), use the built-in backup features:

  • ๐Ÿ”„ For WhatsApp: Settings โ†’ Chat โ†’ Backup (saves data in Google Drive).
  • ๐Ÿ“ฑ For Telegram: export chats via Settings โ†’ Advanced โ†’ Export chat data.

3. Via Titanium Backup (only for root)

The application Titanium Backup allows you to create complete backups of application data:

  1. Install Titanium Backup and provide root access.
  2. Select the application and click Backup.
  3. Transfer the backup file (.tar.gz) to the new device.
  4. Restore the data via Titanium Backup on the new phone.
โš ๏ธ Attention: Transferring data between devices with different versions of Android or processor architecture (ARM/x86) may lead to failures. Always check compatibility!

FAQ: Answers to frequently asked questions about the Data folder

Is it possible to increase the size of the /data partition?

On most modern smartphones, the partition /data has a dynamic size and automatically expands using internal memory. However, on older devices (up to Android 6.0) or custom firmware, you may need to manually change partitions via TWRP or fastboot. This is a risky operation that can lead to data loss.

Why is the /data folder not completely cleared after resetting?

A standard reset (Wipe Data in Recovery) deletes only user data, but not files To completely clear system applications, use the command:

fastboot erase userdata

Or in TWRP select Format Data (this will remove everything, including encryption).

How to recover deleted files from /data?

If the files were deleted by chance, try:

  1. Use DiskDigger or Undeleter (root required).
  2. Connect the phone memory to the PC via ADB and scan the partition with tools like Recuva or TestDisk.
  3. Restore from a backup (if it was created via adb backup or Titanium Backup).

The chances of recovery depend on whether new data was written over the deleted ones.

Is it possible to access /data on the phone with a locked screen?

If the screen is locked, but USB debugging was enabled earlier, you can try:

  1. Connect the phone to the PC and run:
adb shell rm /data/system/gesture.key

This will delete the file with the pattern key (does not work on all devices).

If debugging is not enabled, it is almost impossible to unlock the phone without losing data - you will need to reset via Recovery.

How to check if the /data folder on my phone is encrypted?

Run the command:

adb shell getprop ro.crypto.state

If answer encrypted โ€”the partition is encrypted. If unencrypted โ€”no. On new devices (Android 10+) the default is File-Based Encryption (FBE), when only individual files are encrypted, and not the entire partition.