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
.dbor.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.
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.
How to open the Data folder without root access: legal methods
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:
- Enable USB debugging in the developer settings (
Settings โ About phone โ Build number (7 times) โ For developers โ USB debugging). - Connect the phone to the PC and confirm trust in computer.
- 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
.abneeds 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:
- Install the file manager from Google Play.
- In the application settings, find the option
ADB AccessorRoot Access. - 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:
- Install a file manager with root support (for example, Root Explorer, Mixplorer or FX File Explorer).
- Launch the manager and grant it root access when prompted.
- Go to the root directory (
/) and open the folderdata.
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:
- Go to
/data/data/com.supercell.clashofclans. - Copy folders
shared_prefs(settings) anddatabases(progress). - 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 viaSettings โ 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-libor/data/app-asec) - remnants from old versions of applications.
What to delete cannot:
- ๐ซ Folders
shared_prefsidatabasesโ settings and application progress are stored here. - ๐ซ Files with the extension
.odexor.oatare 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/datacan 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_passwordFrequent problems with the Data folder and their solutions
Folder
/datacan 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 /dataCritical 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 freeThe partition /datahas a fixed size (especially on older devices)Remove unnecessary applications or reconfigure partitions through TWRP You cannot write files to /dataeven with rootThe file system is mounted in mode read-onlyRun command: mount -o rw,remount /dataAfter resetting the settings, the folder /dataremained encryptedEncryption keys from the old password remained Perform a full reset via Fastboot: fastboot -wIf the device does not boot due to damage
/data, try:
- Boot into Recovery Mode (usually
Power + Volume Up).- Select
Wipe โ Advanced Wipe โ Data(in TWRP).- Reboot. Attention: this will delete all user data!
To diagnose problems with
/datause the command:adb shell df -h /dataIt 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:
- On the old phone, copy the folder
/data/data/package name(for example,com.supercell.brawlstars).- Install the same application on the new phone and run it at least once.
- Replace the folder
/data/data/package nameon the new phone with the copied one.- 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 inGoogle 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:
- Install Titanium Backup and provide root access.
- Select the application and click
Backup.- Transfer the backup file (
.tar.gz) to the new device.- 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
/datahas 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 orfastboot. 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 Datain Recovery) deletes only user data, but not files To completely clear system applications, use the command:fastboot erase userdataOr 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:
- Use DiskDigger or Undeleter (root required).
- Connect the phone memory to the PC via
ADBand scan the partition with tools like Recuva or TestDisk.- Restore from a backup (if it was created via
adb backupor 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:
- Connect the phone to the PC and run:
adb shell rm /data/system/gesture.keyThis 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.stateIf answer
encryptedโthe partition is encrypted. Ifunencryptedโno. On new devices (Android 10+) the default is File-Based Encryption (FBE), when only individual files are encrypted, and not the entire partition.