The cache on a smartphone is like a temporary storage for data that applications and the system use to work faster. Every time you open Instagram, YouTube or even system settings, the phone stores some information in the cache: video thumbnails, website logos, search results. Over time, this โwarehouseโ grows to gigabytes, taking up precious space and sometimes even slowing down the device.
But where exactly is this cache stored on Android? Why is it not visible in the standard file manager? And is it possible to remove it manually without using the cleanup functions in the settings? In this article we will analyze all types of cache (applications, systems, Dalvik), their location in the file structure, as well as safe ways to manage them - from manual cleaning to automatic tools.
โ ๏ธ Attention: Some paths to the cache require rights root. If your phone is not rooted, you can clear only part of the data through the standard settings.
What is cache on Android and why do you need it
Cache (from English. cache โโcacheโ) is a buffer memory that speeds up repeated access to data. Imagine that you drive to work the same way every day. Instead of searching for the route again, you remember the turns - this is the cache in action.
On Android there are three main types of cache:
- ๐ฑ Application cache - temporary files that apps create (for example, Facebook stores compressed versions of photos, and Google Maps โoffline maps).
- โ๏ธ System cache โdata that it uses Android to speed up the loading of the interface, animations and services.
- ๐ค Dalvik cache โoptimized versions of installed applications that are created by the virtual machine
ART/Dalvik.
Without the cache, the smartphone would work slower, but its excess leads to:
- ๐ Filling of the internal memory (especially on cheap phones with 16โ32 GB)
- ๐ข Slowdown (if the cache is fragmented or damaged)
- ๐ Application crashes (for example, Chrome may show outdated versions of pages)
โ ๏ธ Attention: Cleaning cache Dalvik without rights root can lead to a reboot of the phone and temporary instability of applications.
Where the cache is physically stored on Android
The cache files are scattered across several folders in the file system Android. Their location depends on the cache type and OS version. Below are the current paths for modern devices (from Android 10 and newer).
User application cache
Each installed application stores its cache in a separate folder:
/data/data/<package_name>/cache/
Where <package_name> is a unique app identifier (for example, com.facebook.katana for Facebook).
An example of a real path for YouTube:
/data/data/com.google.android.youtube/cache/
These folders not visible without rights root or special file managers (for example, FX File Explorer with superuser mode enabled).
System cache
Located in the folder:
/cache/
The following are stored here:
- System updates (files update.zip)
- Recovery logs (recovery.log)
- Temporary service data Google
This folder is cleared automatically when update Android, but sometimes its contents get stuck and take up hundreds of megabytes.
Dalvik cache
Located in:
/data/dalvik-cache/
Contains files with the extension .dex or .oat โ optimized application bytecode. Delete them manually not recommendedas this may break the apps.
| Cache type | Path in the system | Visible without root? | Can I clear it manually? |
|---|---|---|---|
| Application cache | /data/data/<package>/cache/ |
โ No | โ Yes (via settings or root) |
| System cache | /cache/ |
โ No | โ ๏ธ Partially (recovery required) |
| Dalvik cache | /data/dalvik-cache/ |
โ No | โ No (risk of system failure) |
| Browser cache | /data/data/<browser_package>/app_webview/ |
โ No | โ Yes (via browser settings) |
To see hidden cache folders, use the file manager Solid Explorer or Root Explorer with display of system files enabled (Settings โ Show hidden files).
How to find the cache of a specific application
If you want to clear the cache for only one application (for example, Telegram or TikTok), you can do this without rights root through standard settings:
1. Open Settings โ Applications.
2. Find the desired application in the list (use search if the list is long).
3. Go to the section Storage (or Memory on some firmware).
4. Press the button Clear cache.
Important: Button Clear data will delete not only the cache, but also all application settings (logins, saving games, etc.) Use it only as a last resort. case!
Open "Settings" โ "Applications"|Find the desired application in the list|Tap "Storage" or "Memory"|Click "Clear cache" (NOT "Clear data"!)-->
Alternative method: via ADB
If the cache clear button in the settings does not work (happens on custom firmware), you can use ADB (debugging tool Android):
1. Connect the phone to the PC and turn on USB Debugging (Settings โ About phone โ Build number โ tap 7 times, then return to Settings โ System โ For Developers).
2. Open the command line on your PC and enter:
adb shell pm clear <package_name>
For example, for WhatsApp:
adb shell pm clear com.whatsapp
โ ๏ธ Attention: The commandpm cleardeletes all application data, and not just the cache, use:adb shell pm trim-caches <package_name> <size>Where
<size>โ maximum cache size in bytes (for example,1000000for 1 MB).
How to clear the system cache (without root)
The system cache (/cache/) is usually cleared automatically, but sometimes its contents get stuck after unsuccessful updates. To put it in order:
Method 1: Through Recovery Mode
1. Turn off your phone.
2. Hold down the combination of buttons to enter Recovery (it differs for different models):
- Samsung: Power + Volume up + Bixby
- Xiaomi: Power + Volume up
- Google Pixel: Power + Volume down
3. In the menu Recovery select Wipe cache partition (control is carried out with the volume and power buttons).
4. Confirm the action and reboot the phone.
Note: This method does not affect user data, but will reset the settings of some system services (for example, Google Play Services may require re-authorization).
Method 2: Through applications for cleaning
If logging into Recovery seems complicated, use utilities like CCleaner or SD Maid:
1. Install the application from Google Play.
2. Run system analysis.
3. In the results, find the section System cache and clear it.
โ ๏ธ Attention: Some "optimizers" delete not only the cache, but also useful data. Before using, check the reviews and rating of the application.
What happens if you clear the system cache?
Clearing the system cache (/cache/) will not delete your files or settings, but it may lead to:
- Longer loading of the phone after a restart (the system will have to restore the cache again).
- Temporary failures in the operation of services Google (for example, Play Market may ask you to update the data).
- Loss of offline cards in Google Mapsif they were stored in the cache.
In most cases, these problems are resolved automatically within 10-15 minutes after clearing.
How to clear the Dalvik cache (for advanced users only)
Cache Dalvik/ART is the only type of cache, clearing which can significantly speed up the phone, but it is also the most risky. If you are not sure of your actions, skip this section.What is Dalvik cache and why is it cleared
When installing or updating an application Android compiles its code into an optimized format (.oat or .dex files), which is stored in /data/dalvik-cache/. Over time, this folder grows, and some files become โbroken,โ which leads to:
- Slower application launch.
- Errors like "The application has stopped".
- Increased battery consumption.
How to clean (requires root or custom recovery)
1. Via TWRP Recovery (recommended method):
- Boot into TWRP (analogous to standard Recovery, but with advanced functions).
- Go to Advanced โ Wipe Dalvik Cache.
- Confirm the action and reboot the phone.
2. Via terminal (root required):
Open a terminal (for example Termux) and enter:
surm -r /data/dalvik-cache/*
reboot
Important: After cleaning Dalvik cache the phone will reboot longer than usual (up to 5-10 minutes), since the system will have to recompile all applications.
Clearing the Dalvik cache is only useful if you notice real performance problems. In other cases, it will do more harm than good, since it forcibly rebuilds all applications.
How to automate cache clearing
Manually clearing the cache is tedious, especially if you do it regularly. Fortunately, there are ways to automate the process:
1. Task scheduler (Tasker)
Using the application Tasker you can set up automatic cache clearing on a schedule:
1. Install Tasker and plugin AutoInput.
2. Create a task with an action Run Shell and command:
pm trim-caches 100M
(this will clear the cache of all applications exceeding 100 MB).
3. Set up a time trigger (for example, once a week at 3:00 am).
2. Optimizer applications
Some utilities can clear the cache in the background:
- Greenify (for hibernating and clearing background applications).
- All-In-One Toolbox (there is an automatic cleaning function).
- CCleaner (allows you to set up a schedule).
Warning: Automatic cache clearing may interfere with the operation of some applications (for example, instant messengers will take longer to load media files).
3. Developer settings
In Android there is a hidden function for limiting background processes, which indirectly reduces the cache size:
1. Activate Developer mode (tap 7 times on Build number in the phone settings).
2. Go to Settings โ System โ For Developers.
3. Find the option Background processes limit and set the value Maximum 2 processes.
Frequent errors when clearing the cache
Even such a simple operation as clearing the cache can go wrong. Here are the typical mistakes and how to avoid them:
1. Deleting cache instead of data
Many people confuse the Clear cache and Clear databuttons. The second deletes:
- Logins and passwords in applications.
- Saves in games.
- Notification settings and topics.
How to fix: If you accidentally pressed Clear data, try restoring the information through a backup copy (for example, in Google Drive for contacts or in the game cloud).
2. Clearing the system application cache
Some system applications (for example, Google Play Services or Android System WebView) are critical for the operation of the phone. You can clear their cache, but you should not delete data or disable them.
Symptoms of the problem: After clearing the cache of such applications, errors like "Google Play services have stopped".
3. Excessive clearing
If you clear the cache too often (for example, daily), this will lead to:
- Slower phone performance (applications will have to re-create the cache).
- Increased consumption of mobile traffic (data will be downloaded repeatedly).
- Rapid wear of flash memory (especially on cheap phones).
Recommendation: The optimal cleaning frequency is once every 1-2 months or when there is less than 10% free memory.
| Error | Consequences | How to fix |
|---|---|---|
| Deleting data instead of the cache | Loss of logins, settings, game saves | Restore from backup or reinstall the application |
| Clearing the cache Google Play Services | Synchronization errors, crashes c Play Market | Reboot the phone and wait for automatic recovery |
| Frequent cleaning (once a day) | Slow operation, increased traffic | Limit cleaning to once a month |
Deleting files from /data/dalvik-cache/ without root |
System crash or freezing on loading | Reflash the phone via Fastboot or Recovery |
FAQ: Answers to common questions questions
Is it possible to clear the cache without losing data?
Yes, clearing the cache (Clear cache in the application settings) does not affect your files, logins or settings. Only temporary data is deleted, which the application can restore the next time it is launched.
Exception: The cache of some applications (for example, offline maps in Google Maps or downloaded videos in YouTube Premium) contains useful information. Clearing it will lead to re-downloading this data.
Why did the phone become slower after clearing the cache?
This is a normal temporary phenomenon. After clearing the cache, applications have to reload and process data (images, scripts, databases), which requires more resources. Typically, performance is restored after 10โ30 minutes of active use.
If the slowdown persists for more than a day, you may have deleted critical files (for example, from /data/dalvik-cache/). In this case, rebooting or resetting the settings will help.
How to clear the cache for all applications at once?
There are two ways:
- Through settings:
- Open
Settings โ Storage. - Tap on
Other applicationsorApplications. - In the menu (three dots in the corner) select
Sort by size. - Open applications with a large cache one by one and clear it.
- Open
adb shell pm trim-caches 1G
This command will clear the cache of all applications exceeding 1 GB.
Attention: B Android 12+ Bulk cache clearing via ADB may require additional permissions.
Why does the cache appear again after clearing?
Cache is temporary data that applications create while running. Once cleaned, it is restored as you use the phone. This is normal and does not indicate a problem.
If the cache grows too quickly (for example, several gigabytes per day), check:
- If there are applications running in the background that actively use the cache (for example, TikTok or Facebook).
- There are no viruses masquerading as legitimate apps (check through Malwarebytes).
- If the function of preloading videos on social networks is enabled (set in applications).
Is it possible to transfer the cache to a memory card?
Technically no. The application cache is always stored in the internal memory of the phone (/data/data/), because:
- Memory cards microSD slower than built-in flash memory.
- Android does not support transferring the cache to external media for security reasons.
- Some applications may not work if their cache is on the card.
Workaround: Some firmware (for example, LineageOS) allow you to use a memory card as internal storage (Adoptable Storage). In this case, the cache will be automatically distributed between the internal memory and SD, but this will reduce performance.