The smartphone on Android over time begins to slow down, heat up and discharge faster than usual. The reason most often lies in accumulated digital garbage: application caches, residual files of uninstalled apps, duplicate photos and unoptimized system processes. Many users try to solve the problem manually through the phone menu, but this takes hours and does not always give results. Much more effective clean Android through a laptop - this way you will get access to hidden folders, be able to remove system junk and even restore performance to factory levels.
In this article we will look at all the working cleaning methods - from simple (via ADB and a file manager) to advanced (full reset via Fastboot). You will learn what tools to use, how to avoid damaging data, and what to do if your phone stops turning on after cleaning. And also - how to automate the process so as not to waste time on routine actions.
โ ๏ธ Important: before starting cleaning, make sure that USB debugging is unlocked on your phone (Settings โ About phone โ Build number (7 taps) โ For developers โ USB debugging). Without this, the laptop will not be able to interact with the device.
1. Preparing your laptop and phone for cleaning
Before you start cleaning, you need to properly connect your smartphone to the laptop and install the necessary drivers. Without this, none of the methods will work. Let's start by checking compatibility:
- ๐ USB cable: use the original cable from the phone or a certified one USB-C/Micro-USB (cheap Chinese cables often do not transmit data, only charge).
- ๐ฅ๏ธ Operating system: instructions are suitable for Windows 10/11, macOS (with additional utilities) and Linux (via
Terminal). - ๐ฑ Android version: methods work on all versions, but Android 12+ may require confirmation of debugging on the phone screen.
The most reliable way to check the connection is to open Device Manager on your laptop (Win + X โ Device Manager) and find your phone there. If there is an exclamation mark next to the name, it means the drivers are not installed. Download them from the manufacturer's official website (Samsung, Xiaomi, Huawei etc.) or use a universal package Google USB Driver.
โ ๏ธ Attention: if you connect the phone to the laptop for the first time, a request will appear on the smartphone screen to allow USB debugging. Always click "Allow" โ otherwise, access to system files will be blocked.
To work with ADB (the main cleaning tool) download Platform Tools from Google and unpack the archive to the root of the disk C:\. This will simplify entering commands into Command Prompt.
2 Method 1: Clearing cache and unnecessary files through. ADB
ADB (Android Debug Bridge) is a bridge between a laptop and a phone that allows you to manage system files via the command line. With its help, you can delete the cache of all applications, clear the folder /data/local/tmp (where temporary files accumulate) and even uninstall built-in apps.
Open Command Prompt (Win + R โ cmd) and go to the folder with Platform Tools:
cd C:\platform-tools
Now connect the phone and enter the command to check the connection:
adb devices
If you see the device serial number in response, the connection is established. Now you can start cleaning. Start by deleting the cache of all applications (this is safe and will not delete personal data):
adb shell pm trim-caches 500M
This command will clear the cache up to 500 MB. If you need to delete everything, use:
adb shell su -c 'rm -rf /data//cache/'
โ ๏ธ Attention: command withsurequires root access. If there are none, use the first command or skip this step. Incorrect usesucan lead to system failure!
- ๐๏ธ Cleaning the downloads folder:
adb shell rm -rf /sdcard/Download/*(will delete all files from the folderDownloads). - ๐ Deleting empty folders:
adb shell find /sdcard/ -type d -empty -delete. - ๐ Search for large files:
adb shell du -ah /sdcard/ | sort -rh | head -n 20(will show the top 20 largest files).
Install Platform Tools
Enable debugging USB on the phone
Connect the phone with the original cable
Check the connection with the command `adb devices`
Make a backup copy of important data-->
3. Method 2: Complete reset via Fastboot
If the phone is very slow, is infected with viruses, or does not respond to normal cleaning, this method will return the smartphone to factory settings, deleting all data, accounts and applications. Use it only as a last resort! hard reset via Fastboot. This method will return the smartphone to factory settings, deleting all data, accounts and applications. Use it only as a last resort!
To get started. turn off the phone and hold down the button combination to enter Fastboot Mode. It differs for different manufacturers:
| Brand | Button combination |
|---|---|
| Samsung | Volume up + Power + Bixby (hold for 10 seconds) |
| Xiaomi/Redmi/Poco | Volume down + Power |
| Huawei/Honor | Volume up + Power |
| Google Pixel | Volume down + Power (select from the menu Fastboot) |
After logging in Fastboot connect your phone to the laptop and check the connection:
fastboot devices
If the device is detected, enter the command for a complete reset:
fastboot -w
This command will clear the partitions data i cache. For some devices (for example, Xiaomi), an additional command may be required:
fastboot erase userdata
fastboot erase cache
โ ๏ธ Attention: after the reset via Fastboot the phone will reboot to the โout of the boxโ state. All data (photos, contacts, messages) will be deleted without the possibility of recovery! Pre-copy important information to a laptop or cloud.
What to do if Fastboot does not see the device?
If the `fastboot devices` command does not show your phone:
1. Check the cable and USB port (try another port on the laptop).
2. Install drivers for Fastboot (for example, [Mi Flash Tool](https://new.c.mi.com/global/miuidownload/index) for Xiaomi).
3. connection.
4. Try running Command Prompt as an administrator.
4. Method 3: Manually removing junk through the file manager
If you do not want to use the command line, you can clean up the phone manually through the file manager on your laptop. This method is suitable for deleting unnecessary media files, duplicates and old backups. copies.
Connect the phone to the laptop in File transfer (not "Charging!") mode. Open This computer โyour smartphone should appear as a removable disk. Now scan the following folders:
- ๐ธ DCIM: All photos and videos are stored here. Delete blurry pictures, screenshots (
Screenshots) and duplicates. - ๐ต Music/Podcasts: Often undeleted tracks and cache of music applications remain here.
- ๐ฅ Download: folder downloads are usually full of outdated APK files, PDFs and archives.
- ๐๏ธ Android/data: here is the cache of games and applications (for example,
com.whatsapporcom.facebook.katana).
For convenience, use apps like Total Commander or WinDirStat - they will show which files take up the most space. For example, the cache can weigh several gigabytes, and the folder stores thumbnails of all photos and videos. Before deleting the folder, close all applications on the phone Some apps (for example, messengers) can restore the cache automatically if they were opened during cleaning. Telegram can weigh several gigabytes, and the folder .thumbnails stores thumbnails of all photos and videos.
Before deleting a folder Android/data close all applications on your phone. Some apps (for example, instant messengers) can restore the cache automatically if they were opened during cleaning.
If you find a folder named LOST.DIR , you can safely delete it. These are temporary files that the system could not save correctly (for example, when video recording was interrupted).
5 Method 4: Removing viruses and malware. Software
If the phone starts showing ads in the menu, installing applications on its own, or overheats for no reason, it is most likely infected with a virus. You can clean Android from malware via a laptop using anti-virus utilities or manually via ADB.
First try scanning your phone with a standard antivirus on a laptop (for example, Kaspersky or Dr.Web). Connect your smartphone in File transfer mode and run a removable disk test. However, this method finds only the simplest viruses.
For deep cleaning, use ADB. First, get a list of all installed applications:
adb shell pm list packages
Now check the list for suspicious packages. Viruses are often disguised as system applications, but have random names like com.system.update.xyz or com.android.security.patch. Remove them with the command:
adb shell pm uninstall -k --user 0 package_name
If the virus has blocked access to ADBtry removing it via Safe Mode:
- Turn off the phone.
- Hold down the power button and when the logo appears, hold
Volume downuntil boot into safe mode. - Manually remove suspicious applications through
Settings โ Applications.
โ ๏ธ Attention: some viruses (for example, Triada or XHelper) are embedded in system processes. If after deletion they appear again, you will have to do a full reset via Fastboot.
6. Method 5: System optimization via PC (without root)
Even without superuser rights (root) you can significantly speed up Androidby disabling unnecessary system processes and services. To do this, we use ADB hidden developer settings.
Let's start by disabling interface animation. This will make transitions between screens instant:
adb shell settings put global window_animation_scale 0adb shell settings put global transition_animation_scale 0
adb shell settings put global animator_duration_scale 0
To return the animation, replace 0 with 1. Now let's disable background processes that eat up RAM:
adb shell settings put global hidden_api_policy 1
This command unlocks hidden APIs, after which you can limit the background activity of applications. For example, to Facebook not work in the background:
adb shell cmd appops set com.facebook.katana RUN_IN_BACKGROUND ignore
For a complete list of restrictions, use:
adb shell cmd appops set deny
Where may be:
RUN_IN_BACKGROUNDโwork in the background,WAKE_LOCKโwake up the screen,AUTO_STARTโautostart when you turn on the phone.
Disabling background processes via ADB increases battery life by 15โ30%, but may disrupt the operation of some applications (for example, instant messengers will not show notifications).
7. Automatic cleaning: apps for PC
If you do not want to manually enter commands, you can use specialized apps for cleaning Android from a laptop. They will automatically find garbage, cache and unnecessary files.
| app | Functions | Windows/macOS support |
|---|---|---|
| Moborobo | Cache deletion, backup, application management | โ /โ |
| Dr.Fone | Deep cleaning, data recovery, virus removal | โ /โ |
| Android File Transfer | View files, remove duplicates (only for macOS) | โ/โ |
| iMobie PhoneClean | Cache clearing, RAM optimization, APK removal | โ /โ |
The most popular app is Dr.Fone. It is paid, but there is a free trial version. To clean the phone:
- Install and run Dr.Fone.
- Connect the phone in USB debugging mode.
- Select section
Cleaning(Toolkit โ Phone Clean). - Click
Scanand wait for analysis. - Tick unnecessary files and click
Clear.
โ ๏ธ Attention: apps like Moborobo or Dr.Fone require the installation of additional drivers that may conflict with the antivirus. Before use, temporarily disable protection Windows Defender.
8. What to do if the phone does not turn on after cleaning
In rare cases, after cleaning through Fastboot or ADB the phone may freeze on the logo, reboot in a loop or not respond to buttons. Donโt panic - in 90% of cases this is fixable.
Symptom: the phone vibrates when you press the power button, but the screen does not turn on. Solution:
- Connect the phone to charge for 30 minutes - the battery may be low.
- Press
Power + Volume upfor 20-30 seconds to force reboot.
Symptom: loading stops at the logo Android or brand. Solution:
- Enter Recovery Mode (usually
Power + Volume Up). - Select
Wipe cache partition(volume button control, confirmation - power button). - Restart the phone (
Reboot system now).
Symptom: the phone boots, but application errors constantly crash. Solution:
- Reset via
Settings โ System โ Reset settings. - If that doesnโt help, flash the stock firmware via Fastboot (look for instructions for your model on the forum 4PDA).
If nothing helps, the bootloader may be damaged (bootloader). In this case, only flashing will help via SP Flash Tool (for Mediatek) or Odin (for Samsung).
Before flashing, check the phone model in Settings โ About phone โ Model. Installing firmware from another model will turn the device into a โbrickโ!
FAQ: Frequently asked questions about clearing Android via a laptop
Is it possible to clear Android via a laptop without root access?
Yes, most methods (clearing cache via ADB, deleting files manually, resetting via Fastboot) do not require root. However, to remove system applications or deep optimization, superuser rights may be required.
Why does the laptop not see the phone in debugging mode?
There may be reasons the following:
- Drivers are not installed (download Google USB Driver or a driver from the manufacturer).
- The cable does not support data transfer (try another one).
- USB debugging is not enabled on the phone or is blocked by a firewall.
- The USB port on the laptop is faulty (try a different port).
How to clear the internal memory of Android if it is 100% full?
If the memory is full, the phone may not allow you to install new applications or updates. Do the following:
- Connect the phone to. laptop and manually delete large files (videos, games, cache).
- Use ADB to clear the cache of all applications:
adb shell pm trim-caches 1G. - Transfer the files to an SD card or cloud (Google Drive, Yandex Disk).
- If all else fails, do a reset via Fastboot.
Is it possible to restore data after cleaning via Fastboot?
No, resetting via Fastboot (fastboot -w) erases data without the possibility of recovery. If you need to save photos or contacts, first copy them to your laptop or make a backup copy via Google Account (Settings โ System โ Backup).
What files can be safely deleted from Android?
Safely delete:
- Folder contents
Download,DCIM/.thumbnails,LOST.DIR. - Application cache (
/data/data//cache). - APK files from the folder
Download(if they are not needed). - Duplicates of photos and videos (use Duplicate Cleaner on PC).
Do not delete:
- Folders
Android,Alarms,Ringtones(system files). - Files with the extension
.odexor.vdex(components applications). - Folder
system(will cause the OS to crash).