Have you ever looked into the storage of your Android smartphone and wondered where the gigabytes of memory went? One of the main โeatersโ of space is the mysterious folder Data, which can weigh tens of gigabytes, but at the same time remain invisible to the user. This system directory stores application settings, caches, temporary files, and even login data - without it, many apps simply will not work.
In this article we will understand what is the Data folder on Androidwhy it takes up so much space, and whether it can be safely cleared. You will learn how to find this folder (including without root access), which files in it are critical, and which can be deleted without risk to the system. We will also tell you how to transfer data from this folder to a memory card or to the cloud, and what to do if, after cleaning, the applications begin to โglitch.โ
Spoiler: Deleting the contents of the Data folder without preparation can lead to resetting application settings, loss of saves in games and even errors in the system.. But there are ways to clean it correctly - more on that later.
What is stored in the Data folder on Android and why do you need it
Folder Data (full path: /data) is the โheartโ of user data in Android. Unlike system files, which are stored in /system, this contains information unique to your device and installed applications. Without it, the smartphone would turn into โpureโ Android without personal settings, accounts and progress in games.
Here is what usually lies in this folder:
- ๐ Applications and their data: game saves (Genshin Impact, Brawl Stars), messenger settings (Telegram, WhatsApp), app databases.
- ๐ Authorization keys: access tokens for Google accounts, social networks, banking applications.
- ๐๏ธ Cache and temporary files: images, videos, scripts that applications download to speed up work.
- ๐ฑ System settings: wallpaper, sound schemes, interface configurations (for example, the location of icons on MIUI or One UI).
- ๐ Update files: OTA update packages that have not yet been installed.
Interesting fact: on some firmware (for example, ColorOS from Oppo), the folder /data can take up to 50% of the total memory, even if you install almost no applications. This is due to the fact that manufacturers often duplicate system files in the user partition for backup. copying.
โ ๏ธ Attention: Not all files in the Data folder are visible through the standard file manager. Some data is hidden from the user to protect against accidental deletion. For example, the folder /data/dalvik-cache contains optimized versions of applications, and cleaning it without root access may lead to errors. launching apps.
Where is the Data folder and how to open it
By default, the folder /data is hidden from the user, and here's why: its contents are critical for the operation of the system. However, there are several ways to access it - from simple (through a file manager) to advanced (with). using ADB).
Method 1: Through a file manager with root access
If your smartphone has root access (for example, after unlocking the bootloader on Xiaomi or Samsung), you can use applications like Root Explorer or Solid Explorer:
- Open the file manager and enable the display of hidden files (the option is usually in the settings).
- Go to the root directory (
/) and find the folderdata. - To view system folders (for example
/data/app), you may need to confirm root access.
Method 2: Without root via ADB (for advanced users)
If you do not have root access, but there is a debug bridge Android Debug Bridge (ADB), you can connect to the device via computer:
adb shellsu
ls /data
This command will display a list of files in the folder /data, but to view the contents you will need superuser rights (su).
Method 3: Through the recovery menu (limited access)
In recovery mode (TWRP or stock recovery) you can see the folder /data, but editing its files without root will not work. This method is suitable for creating backup copies before resetting the settings.
| Access method | Requires root | What you can do | Risks |
|---|---|---|---|
| File manager with root | โ Yes | Viewing, editing, deleting files | High (can break the system) |
| ADB without root | โ No | Only viewing the list of files | Low |
| Recovery (TWRP) | โ ๏ธ Partially | Backup, viewing | Medium (risk of incorrect actions) |
| Standard manager (for example, "Files" from Google) | โ No | Access only to /data/media/0 (internal memory) |
Absent |
โ ๏ธ Attention: On some devices (for example, smartphones Huawei or Honor after 2019) access to /data is blocked even with root access due to the manufacturerโs security policy. In such cases, you can only work through ADB or specialized utilities like Magisk.
Why does the Data folder take up so much space and how to fix it
If you notice that folder /data has grown to incredible sizes (for example, 20โ30 GB on a smartphone with 64 GB of memory), the reasons may be the following:
- ๐ฎ Games with heavy caches: Call of Duty Mobile, PUBG or Genshin Impact they can download gigabytes of textures and updates.
- ๐ธ Social networks: TikTok, Instagram and Facebook caches videos and images for quick loading.
- ๐ Incorrect removal of applications: after uninstalling the app, its data may remain in
/data/data/[package_name]. - ๐๏ธ System garbage: error logs, temporary update files, duplicate databases.
- ๐ฑ Firmware with duplicates files: some custom firmware (for example, LineageOS) can create backup copies in
/data.
To free up space, first check which files take up the most space. To do this:
- Use memory analyzer applications, for example Files by Google or SD Maid.
- In your smartphone settings, go to
Settings โ Storage โ Application datai sort apps by size. - Pay attention to the folders
/data/app(installed applications) and/data/data(their data).
Check the cache size in application settings|Delete unused apps|Clear the cache of social networks and instant messengers|Move heavy games to a memory card (if supported)|Create a backup copy of important data before clearing-->
Pay special attention to the folder /data/dalvik-cacheIt contains optimized versions of applications to speed them up. startup. Clearing it without rebooting may lead to errors., but sometimes it helps to free up 1-3 GB. To do this safely:
- Create a backup copy of important data.
- Delete the contents
/data/dalvik-cachevia a file manager with root. - Reboot immediately device - the system will restore the files automatically.
How to safely clear the Data folder without losing data
Completely clearing the folder /data is equivalent I will reset to factory settings โall applications, settings and accounts will be deleted. However, there are ways to delete only unnecessary files without affecting critical data.
Method 1: Clearing the cache of individual applications
The safest method:
- Go to
Settings โ Applications. - Select a app (for example, YouTube or Chrome).
- Click
Storage โ Clear cache.
This will delete temporary files, but will save logins, settings and progress in games.
Method 2: Removing residual files after uninstallation
After uninstalling an application, its data may remain in /data/data/[package_name]. To clear them:
- Use SD Maid (option
CorpseFinder). - Or manually find the folder with the name of the package (for example,
com.whatsapp) and delete it.
Method 3: Automatic cleaning via ADB
For advanced users, there is a command that deletes the cache of all applications:
adb shell pm trim-caches 100G
This command will force the system to release the cache up to the specified limit (here - 100 GB, but you can specify any value).
โ ๏ธ Attention: Don't use commands like rm -rf /data/*! This will lead to the complete deletion of all user data, and the smartphone will stop booting. To restore, a flashing will be required.
Before mass clearing the Data folder, check whether your device supports the function Adoptable Storage (on Android 6.0+). It allows you to combine the internal memory and SD card, thereby expanding the space for /data without data loss.
What to do if, after clearing the Data folder, applications do not work
If you deleted files from /data and encounter errors in the applications (for example, WhatsApp asks you to re-enter the number or Spotify does not save offline playlists), here is the algorithm steps:
Step 1: Restart the device
Sometimes the system restores the necessary files after reboot. If the application still does not work after rebooting, proceed to the next step.
Step 2: Clear the data of the problematic application
This will reset its settings, but it often helps:
- Go to
Settings โ Applications โ [app name]. - Click
Storage โ Clear data. - Restart the application and perform the initial setup.
Step 3: Restore data from backup
If you use Titanium Backup or built-in backup tools (for example, on Samsung or Xiaomi), try to restore data for a specific application:
- Open the backup app.
- Find the desired application in the list.
- Select the option
Recover data(not the system!).
Step 4: Reinstall the application
If all else fails:
- Uninstall the app.
- Restart your smartphone.
- Install the application again from Google Play.
For games with cloud saves (for example, Clash of Clans or Brawl Stars) after reinstallation, progress will be restored automatically when you log into your account. For offline games (for example, Minecraft), manual restoration from a backup may be required.
Why do some applications not restore data after cleaning?
Not all apps synchronize data with the cloud. For example, SberBank Online or Tinkoff store some information locally in /data/data/ru.sberbankmobile/If you cleared this folder, you will have to re-enter your logins. link cards and set up notifications. The same applies to some messengers (for example, Viber stores chat history locally if synchronization is not enabled).
How to transfer data from the Data folder to a memory card or to the cloud
If internal memory ends, and the folder /data grows, you can transfer some of the data to SD card or to cloud storage. However, there are nuances:
Transfer to SD card
Not all files from /data can be transferred to a memory card. Here is what is usually supported:
- ๐ Application media files (for example, downloaded tracks to Spotify or photos to VK).
- ๐ฎ Additional game files (for example, textures in Genshin Impact).
- ๐ Documents and downloads (folder
/data/media/0/Download).
How to transfer:
- In the application settings, find the option
StorageorMemory. - Select
Use SD card(for example, in Google Photos or Netflix). - If there is no option, use a file manager for manual transfer (for example, a folder
Android/obbfor games).
Transfer to the cloud
To backup critical data (game saves, application settings) suitable services:
- ๐ฅ๏ธ Google Drive: automatically synchronizes data of some applications (for example, WhatsApp backed up to
Drive). - ๐ Swift Backup (requires root): creates backup copies of folders from
/dataand uploads them to the cloud. - ๐ฎ Specialized services: for games - Google Play Games, for photos - Google Photos.
Important: Not all data can be transferredFor example, system settings. (/data/system) or encryption keys (/data/misc) are tied to the device and cannot be migrated.
| Data type | Can be transferred to SD | Can be uploaded to the cloud | Examples |
|---|---|---|---|
| Application media files | โ Yes | โ Yes | Music in Spotify, video in TikTok |
| Game saves | โ ๏ธ Partially | โ Yes | Genshin Impact, Brawl Stars |
| Application cache | โ No | โ No | Temporary files Chrome, Instagram |
| System settings | โ No | โ No | Wallpaper, sound schemes, configurations MIUI |
| Documents and downloads | โ Yes | โ Yes | PDF, APK, files from Telegram |
โ ๏ธ Attention: On devices with Android 11+ transferring applications to an SD card is often blocked due to policy Scoped Storage. In this case, the only option left is cloud storage or manual transfer of media files.
Frequent errors when working with Data folder and how to avoid them
Cleaning or editing the folder /data is fraught with errors that can damage your smartphone. Here are the most common mistakes and ways to prevent them:
Error 1: Deleting the folder /data/data without backup
This will lead to loss of all user data - from game saves to SMS and contacts. Always create a backup via Titanium Backup or built-in tools (for example, Settings โ System โ Backup on Samsung).
Error 2: Cleaning /data/dalvik-cache without reboot
This folder contains optimized versions of applications. If you delete its contents and do not restart the device, the apps will start. crash with an error INSTALL_FAILED_DEXOPT. Always reboot your smartphone after such manipulations.
Error 3: Changing file permissions in /data
Some users try to manually change permissions (chmod) on files in /datawhich leads to a cyclic reboot of the device. If you are not sure of the commands, use proven utilities like FX File Explorer with root access.
Error 4: Usage rm -rf /data
This command completely erases all user data, including system settings, will not boot after this - you will need to flash it via Fastboot or Recovery.
Error 5: Ignoring warnings about low memory
If there is less than 10% free space left in the folder, Android starts /data With less than 10% free space remaining, Android starts automatically kill background files. processesand applications slow down. Regularly clear the cache and delete unnecessary files.
If you are not sure of your actions, it is better to use specialized cleaning utilities (for example, SD Maid or CCleaner) instead of manually editing the folder /data. They analyze files that are safe to delete and minimize risks.
FAQ: Answers to frequently asked questions about the Data folder on Android
Is it possible to completely delete the Data folder to free up space?
No, it's the same thing factory reset. The folder /data contains all user data, and deleting it will lead to the loss of applications, settings and files. If you need to free up space, clear the cache of individual apps or transfer media files to an SD card.
Why did some applications stop working after clearing the Data folder?
Most likely, you deleted critical files from /data/data/[package_name] - there settings, authorization keys and databases are stored. Try:
- Clear application data in the settings.
- Reinstall the app.
- Restore data from a backup (if you have one).
How to find out which files in the Data folder take up the most space?
Use memory analyzer applications:
- Files by Google (shows large files and folders).
- SD Maid (analyzes residual files after deleting applications).
- DiskUsage (visualizes occupied space in the form of a chart).
You can also connect your smartphone to a PC and use WinDirStat or WizTree for detailed analysis.
Is it possible to move the Data folder to a memory card to free up internal memory?
Partially. The folder itself /data cannot be moved, but you can:
- Move application media files (music, video) to SD.
- Use the function
Adoptable Storage(Android 6.0โ8.0), which combines internal memory and SD card. - Transfer game saves (if supported by the developer).
On Android 9+ full transfer /data is blocked due to security policy.
What happens if you format the folder Data via recovery?
This will lead to complete reset of user data, but the system files (/system) will remain intact. The smartphone will boot, but:
- All applications will disappear.
- Settings will be reset to factory settings.
- You will need to log in to all accounts again.
Basically, this is an alternative to the option Wipe Data/Factory Reset in recovery.