Many users are faced with a lack of free space on their mobile device, not realizing that huge amounts of memory are occupied by temporary files. When the system or applications start to work slowly, the first question that arises is where to copy the cache on Android in order to free up resources or transfer data. Understanding the structure of the file system allows you to effectively manage storage without deleting unnecessary things and maintaining the functionality of the operating system.
In modern versions of the Google operating system, access to system directories is limited for security reasons, but the main paths remain accessible to the user through file managers. Cache is a buffer memory where data is stored for quickly loading frequently used interface elements and application content. Knowing the exact location of these files is critical for those who are used to manually cleaning up their gadget.
In this article, we will analyze the logical folder structure, explain the difference between the system and user cache, and also provide precise navigation instructions. You will learn how to work with the directory correctly /Android/data and why moving the cache to a memory card may be ineffective in new versions of the OS.
It is worth noting right away that simply โcopyingโ the cache to another location to speed up the phone will not work - it needs to be cleared or transferred entirely along with the application. However, knowledge of the paths is necessary for Backup important settings or manual cleaning of debris that cannot be removed by standard means. Let's take a look at exactly where to look for these hidden treasures of digital junk.
Android file system structure and storage logic
The Android file system is based on the Linux kernel, which implies a clear directory hierarchy. The root directory is indicated by the symbol /, and it is from it that all data storage branches depart. User data, including application cache, is usually located in internal storage, which is mounted as a separate partition. Understanding this structure helps answer the question of where to copy the cache on Android if you plan to make a backup via ADB or root access.
The main storage is divided into a system partition (accessible only with superuser rights) and a user partition. It is in the second that there are folders with which the device owner interacts. Here are media files, documents and, most importantly for us, the directory Android. Key data about the operation of installed apps is hidden inside it.
It is important to distinguish between the concepts of internal memory and random access memory (RAM). The cache is stored on internal storage (NAND flash) rather than in RAM, although it is loaded into RAM for fast processing. When clearing the cache, you free up disk space, which is especially important for devices with a small amount of built-in storage, for example, 32 or 64 GB.
โ ๏ธ Attention: Modifying files in system partitions without root access is impossible and can lead to unstable operation of the device. Work only with user directories if you do not have deep debugging skills.
With the release of Android 11 and newer, Google has strengthened its security policy by limiting access to the folder by third-party file managers. /Android/data. This means that the standard Explorer may not show you the content, even if you know where to copy the cache on Android. To bypass this limitation, you often need to use specialized software or connect to a PC.
The exact path: where the cache folder is located
The main path where the system stores cached application data by default is as follows: /storage/emulated/0/Android/data. This directory contains subfolders with the names of packages of specific applications, for example com.telegram.messenger or com.google.android.youtube. Inside each such folder there is a directory cache, which is the storage of temporary files.
In addition to the user cache, there is a system cache located along the path /data/cache or /data/dalvik-cache. Access to these sections is closed to the average user and is open only to rootusers. This is where optimized runtime files and system temporary data are stored, which take up hundreds of megabytes, but are critical for the speed of OS startup.
If you are looking for where to copy the cache on Android to save it, you will need this branch /Android/data/.../cache. However, it is worth remembering that simply copying these files to another location without maintaining the folder structure and permissions will render them useless. Applications expect to find data in a strictly defined path.
To navigate these paths, it is best to use advanced file managers such as Files by Google, Solid Explorer or MT Manager. Standard explorers often hide system folders or do not give full access to file attributes, which can confuse the user when trying to manually manage memory.
Use the โShow hidden filesโ function in your file manager settings to see all directories starting with a dot, which often contain important configurations.
Instructions: how to find and clear the application cache
Manually clearing the cache through the file manager is a process that requires care. Before you delete or move files, you need to make sure that you don't affect any important data. Let's go through the steps that will help you safely get to the desired directory.
First, open your file manager and go to the root of the internal storage. Find the folder Android, then open the subfolder data. Here you will see a list of all installed applications. Select the one you need, go to cache and estimate the amount of space occupied. If the files occupy gigabytes, they can be deleted.
โ๏ธ Manual cache clearing algorithm
An alternative and safer way is to use system settings. Go to Settings โ Applications, select the desired application and press "Storage". There will be a "Clear cache" button. This method ensures that you do not delete unnecessary things and do not violate the integrity of the folder structure.
If you still decide to act through the file system, make sure that the application whose cache you are clearing is closed. Trying to delete files from a running app may result in it crashing or losing unsaved data. After cleaning, it is recommended to reboot the device so that the system recalculates the free space index.
Transferring the cache to a memory card: myths and reality
The question of where to copy the cache on Android often arises among owners of devices with a small amount of internal memory who want to transfer data to a microSD card. Theoretically, this is possible, but in practice, modern versions of Android (starting from 6.0 and especially 10+) are extremely reluctant to do this.
Previously, there was an โAdoptable Storageโ function that allowed you to format a memory card as internal storage. In this case, the system itself decided where to copy the cache and application data. However, smartphone manufacturers often disable this function, since memory cards are slower than internal memory and have limited rewriting resource.
An attempt to manually transfer a folder cache to a memory card and create a symlink (symbolic link) requires root access. Without them, the system will simply ignore the changed paths. Moreover, the reading speed from an SD card can be significantly lower, which will not lead to acceleration, but to slowdown of the application that accesses the cache.
โ ๏ธ Attention: Memory cards have a lower random read/write speed compared to eMMC/UFS internal memory. Transferring the active cache to an SD card can cause freezes and lags in the interface.
If your goal is to free up space, it is better to transfer media files (photos, videos, music) to the card and leave the cache inside. For some applications, for example, navigators (Yandex.Navigator, Google Maps) or streaming services (Spotify, Netflix), in the settings of the application itself, you can specify the path for downloading offline maps or music. This is the only legal way to โmove the cacheโ to external media.
Comparison of cache management methods
There are several approaches to working with temporary files, and each has its own pros and cons. The choice of method depends on your goals: simply free up space or carry out deep optimization of the system.
| Method | Required rights | Security | Efficiency |
|---|---|---|---|
| System settings | No | High | Medium (current application only) |
| File manager | No (limited in Android 11+) | Medium (risk of removing unnecessary items) | High (can be cleaned selectively) |
| Cleaner applications | No (permissions required) | Low (often contain advertising) | Low (work superficially) |
| ADB / Root | High (Root/ADB) | Low (risk of system breakdown) | Maximum (full control) |
Using cleaning applications often creates more problems than it solves. They can aggressively unload processes from RAM, forcing the system to restart them, which only drains the battery. Manual control Through settings or a file manager, it gives better control over what exactly is deleted.
For advanced users, a debugging method is available via ADB (Android Debug Bridge). By connecting your phone to your computer, you can run commands to clear the cache of all applications at once or transfer data. The command adb shell pm clear <package_name> allows you to instantly clear the cache and data of a specific application without going into the menu.
Command to completely clear the cache via ADB
To clear the cache of all applications at once (requires root or specific permissions), you can use scripts, but it is safer to clear one at a time: adb shell pm trim-caches 999999999 (does not work on all devices).
Frequent errors and problems when working with the cache
Users, trying to optimize the device, often make mistakes that lead to the opposite effect. One of the most common is deleting the folder data entirely instead of clearing the contents cache. This will delete all application settings, logins and game progress.
Another error is an attempt to clear the cache of system processes, such as com.android.systemui or com.google.android.gmsthrough the file manager. While this may free up space, after a reboot the system will recreate these files, often in larger quantities, since it will have to re-index the content.
- ๐๏ธ Deleting a folder
.thumbnailsin the gallery: Frees up space, but slows down the opening of the gallery the next time you start. - ๐ฑ Cleaning messenger cache without backup: can lead to the loss of received but not saved media files.
- ๐ Constantly clearing the browser cache: makes sites take longer to load and require authorization again.
It is also worth mentioning the problem of a โbloatedโ cache. Some applications, such as Telegram or TikTok, can accumulate gigabytes of data if you do not set limits in their internal settings. In this case, external cleaning through the file manager is less effective than setting up auto-downloading inside the application itself.
โ ๏ธ Attention: Android settings interfaces may differ depending on the manufacturer's shell (MIUI, OneUI, ColorOS). The location of menu items may vary, so check the official information for your model.
The cache is not garbage, but a speedup tool. Blindly deleting all temporary files will force the processor and disk to work harder, temporarily reducing the autonomy of the device.
Questions and answers (FAQ)
Is it possible to completely disable cache creation on Android?
It is impossible to completely disable caching in Android without a deep modification of the system (rebuilding firmware) as this will break most applications. However, you can limit the cache size in the settings of individual apps or use traffic saving modes that reduce the amount of data saved.
Is it safe to delete the Dalvik Cache folder?
Deleting a folder Dalvik Cache (or ART Cache) is safe only if case if you understand the consequences. The system will recreate it the next time you boot, but this process may take from 5 to 20 minutes, during which the phone will be unavailable. This should only be done if errors occur after updating the system.
Why was the space not freed up after clearing the cache?
This can happen for several reasons: files could have been deleted only for the current user, but remained in the โGuestโ profile; the system has not yet recalculated the free space index (a reboot will help); or the application instantly created new temporary files to replace the deleted ones.
Where is the cache in WhatsApp and can it be transferred?
The WhatsApp cache is located on the path /Android/media/com.whatsapp/WhatsApp/Media/.Statuses (for statuses) and in shared media folders. You can transfer it to a memory card only through the settings of WhatsApp itself: Settings โ Data and storage โ Storage pathby selecting an SD card. This will transfer the media, but not the system cache of the application.