Introduction / Why This Is Needed
Cache on Android is temporary data that the system and apps store to speed up their operation: interface loading, graphics rendering, and quick access to frequently used information. Over time, the cache can grow, contain outdated or corrupted data, leading to:
- Lag in the interface and when switching between apps.
- Launch errors or app crashes.
- Lack of free storage space (especially on devices with limited capacity).
- Malfunctions after an OS or app update.
Clearing the cache is a safe operation that does not delete your personal data (photos, contacts, messages, installed apps). It is the first and gentlest step in solving many performance issues. In this guide, you will learn how to do it using three main methods.
Requirements / Preparation
- An Android-based device (version 8.0 or newer). The interface may vary slightly depending on the manufacturer (Samsung, Xiaomi, Pixel, etc.).
- Battery charge: at least 50% for methods using Recovery and ADB.
- For the ADB method: a computer with Android Platform-Tools installed and USB debugging enabled in developer options.
- Backup: although cache clearing is safe, it is recommended to make a full backup of important data before performing actions in Recovery mode, just in case.
Step-by-Step Instructions
Method 1: Clearing Cache for Individual Apps (Simplest)
This method is ideal if only one specific app (e.g., Instagram, a browser, a game) is lagging or throwing errors.
- Open your device's Settings.
- Go to the Apps or Apps & notifications section.
- Find the problematic app in the list and tap on it.
- In the app's menu, select Storage or Storage & cache.
- Tap the Clear cache button. The Clear storage button will also delete logins, settings, and app files—use it with caution.
- Go back and repeat for other problematic apps if needed.
💡 Tip: You can apply this method to all apps, but it's quite labor-intensive. For system-wide issues, use Method 2.
Method 2: Clearing the System Cache Partition via Recovery
This method clears the entire system cache (including Dalvik/ART cache), which often solves problems with general slowness, freezes after updates, and boot errors. User data is not affected.
- Power off your device completely.
- Enter Recovery mode. The button combination depends on the manufacturer:
- Most devices (Samsung, Google Pixel, OnePlus, Xiaomi/Redmi/Poco): hold Volume Up + Power.
- Some older models (HTC, Motorola): hold Volume Down + Power.
- Some Xiaomi/Redmi: after the logo appears, release the Power button while continuing to hold Volume Up.
- If it doesn't work, search for "
[Your model] recovery mode" on Google.
- You will enter a text-based menu (usually in English). Navigation: Volume Up/Down to select, Power to confirm.
- Use the volume buttons to select
Wipe cache partitionand press Power. - Confirm the wipe (usually
YesorYes -- delete all user data—don't be alarmed, this only deletes the cache, not your data). - After completion, return to the main menu and select
Reboot system now. - The first boot after clearing may take 1 to 3 minutes—this is normal as the system rebuilds the Dalvik cache.
Method 3: Clearing Cache via ADB (For Advanced Users)
If you have access to a computer, you can clear the cache of all apps or the system cache partition via the command line. This is the most powerful but also the riskiest method. An incorrect command can lead to data loss.
- Connect your device to the computer via USB.
- Open a terminal (Command Prompt, PowerShell) or navigate to the platform-tools folder.
- Check the connection: run
adb devices. Your device ID should appear in the list. If not, check drivers and the USB debugging permission prompt on your phone. - Clear cache for ALL system and user apps:
Note: These commands clear the cache of key system providers (media, contacts, downloads). It is not possible to clear the cache of all apps with a single command without root access.adb shell pm clear com.android.providers.media adb shell pm clear com.android.providers.contacts adb shell pm clear com.android.providers.downloads - Clear the system cache partition (requires root): If you have root access, you can run:
⚠️ Warning: The commands above are only for rooted devices. Without superuser permissions, they will fail or return an access error.adb shell su rm -rf /cache/* rm -rf /data/dalvik-cache/* reboot
Verifying the Result
- After rebooting your device (by any method), give the system 2-3 minutes to "settle" (media indexing will finish, widgets will update).
- Open Settings → Storage and check how much free space has been added (especially after clearing the system cache partition).
- Test the previously problematic apps and the overall system responsiveness. You should notice reduced lag and stuttering.
Potential Issues
- Cannot enter Recovery mode. The button combination varies by model. Power on the device and immediately hold the correct combination. If nothing works, search for the exact instructions for your model (e.g., "
Xiaomi Redmi Note 12 recovery mode"). - System fails to boot after clearing cache (stuck on logo). This is rare, usually due to a corrupted cache. Try entering Recovery again and perform
Wipe cache partitiononce more. If that doesn't help, a Factory Reset may be required, but this will delete all data. - ADB does not see the device. Ensure USB debugging is enabled (Settings → Developer options). When connected, a permission prompt should appear on the phone—tap "Allow".
- Clearing the cache didn't help. The issue might be deeper: insufficient RAM, outdated software, conflicting apps, or physical storage problems. In this case, consider:
- Clearing the data of the problematic app (in Settings → Apps).
- Updating the system and apps.
- Uninstalling unused apps.
- Performing a Factory Reset (after a complete backup).