Cleaning Xiaomi phone through a computer: 5 working methods

Introduction

Xiaomi has slowed down, memory shortage notifications are constantly appearing, and apps are spontaneously shutting down? Most often the cause is clogged cache, remnants of deleted programs and system debris. Cleaning your phone through a computer is one of the most effective ways to get your device back on track, especially if standard methods through settings don't help.

Unlike manually cleaning through a smartphone menu, PC connectivity allows you to work with the file system at a low level: delete hidden folders, analyze occupied space by category, and even restore damaged memory sectors. In this article, we will analyze 5 proven methods – from simple deleting temporary files to completely resetting through Fastboot, taking into account the features of the MIUI and HyperOS firmware.

Important: the procedures are different for devices with unlocked and locked bootloader. If you have never worked with ADB or Fastboot, start with the first three methods – they require no special knowledge and will work even for Xiaomi Redmi Note 12 or POCO X5 out of the box.

Preparation of telephone and computer

Before you start cleaning, make sure your Xiaomi and PC are ready for the procedure.Missing this stage can lead to connection errors or even data loss.

On the phone:

  • πŸ”‹ Charge the battery to at least 50% – when cleaned through Fastboot, discharging during the process can lead to β€œbricking".
  • πŸ”“ Unlock the screen (PIN, pattern lock or print. Some commands ADB Require confirmation on the device.
  • πŸ“± Enable Developer Mode: Go to Settings β†’ The phone. β†’ Version. MIUI and tap version 7 times. Then go back to Settings. β†’ Additionally. β†’ For developers and activate:
USB debugging


Unlocking OEM (for methods with Fastboot)

On the computer:

  • πŸ–₯️ Install official Xiaomi drivers from mi.com ("Tools" section). Windows may also need Mi. PC Suite.
  • πŸ”Œ Use the original. USB-cable (preferably from the kit) cheap cables often don't support data transmission.
  • πŸ›‘οΈ Disable the antivirus during the procedure – it can block commands ADB suspect-activity.

⚠️ Note: If you clean your phone before selling, back up your phone through Mi Cloud or Google Account first.

πŸ“Š What cleaning method have you tried before?
Through phone settings
With cleaner apps
PC connection
Never cleaned.
Another way.

Method 1: Cleaning with Mi PC Suite (without root)

Mi PC Suite is Xiaomi’s official software that allows you to manage files, update firmware and clean memory without risking system damage, and is suitable for all models, including the Redmi 10C, POCO M5 and Mi 11 Lite.

Instructions:

  1. Download and install Mi PC Suite from the official website.
  2. Connect your phone to your PC via USB, select File Transfer (MTP) mode.
  3. In the program, go to the Cleaning β†’ Deep Cleaning tab.
  4. Mark the categories to remove: πŸ—‘οΈ Cash app. πŸ“ Temporary files 🎡 Duplicate media files πŸ“‚ Remnants of remote programs

Clean up

Advantages of the method:

  • βœ… Doesn't require root rights.
  • βœ… Stores user data (photos, contacts).
  • βœ… Automatically optimizes the system after cleaning.

⚠️ Warning: If your phone is still slowing after cleaning, check the Warehouse section in your settings, perhaps the problem is in a particular app (like Facebook or TikTok) that takes up too much space.

β˜‘οΈ Preparation for cleaning through Mi PC Suite

Done: 0 / 4

Method 2: Manual garbage removal through Windows Explorer

If you prefer to manually control the process, you can clean your phone through standard Windows Explorer, which is suitable for removing large files (video, APK), but does not affect the system cache.

How to proceed:

  1. Connect Xiaomi to your PC and select File Transfer mode.
  2. Open This Computer β†’ Find your device (usually displayed as a Redmi or Mi Phone).
  3. Go to the folders: DCIM β†’.thumbnails – photo and video thumbnails (you can delete without consequences); Download – downloads from the browser (check for unnecessary APKs); Android β†’ data – application data is stored here (remove folders of remote programs).

Sorting β†’ Size

What files can be safely deleted:

File typefolderCan I remove it?
Cash app.Android/data/<name packet>/cacheYes (the app will recover the cache the next time it runs)
APK-fileDownload or APKYes (unless these are current versions of the program)
Logs of the systemMIUI/debug_logYes (remove automatically when restarted)
Duplicate photosDCIM/CameraYeah (check manually)

Never delete files from MIUI, system or vendor folders – this will cause system failure!

πŸ’‘

If the folder does not open with the message "Rejected", try to enable the display of hidden files in Explorer (the "View" tab β†’ "Hidden elements").

Method 3: Cleaning through ADB (for power users)

ADB (Android Debug Bridge) is a low-level Android device management tool that can remove the cache of all apps at once, clear the Dalvik cache, and even uninstall system programs (requires root).

Step-by-step:

  1. Download Platform Tools (part of the Android SDK).
  2. Unpack the archive to the root of the C:\ disk (the path C:\platform-tools should be obtained).
  3. Open the command prompt in this folder: Hold Shift + right mouse button β†’ Open the PowerShell window here.
  4. Connect the phone and enter commands in turn: adb devices (your device should appear) adb shell pm list packages -f (list of all packages installed) adb shell pm clear --user 0 <name packet> (cleaning the data of a specific application, for example com.facebook.katana for Facebook)

⚠️ Note: Adb shell pm uninstall command -k --user 0 <packet> It will only remove the application for the current user. To completely uninstall the system programs, you need root and unlocked bootloader.

What if the ADB can’t see the device?
1. Check if the debugging is included USB developer-setting. 2. Try another one. USB-cable (preferably original). 3. Update drivers through Device Manager (Section "Portable Devices"). 4. Restart your phone and PC. 5. If you are using Windows 10/11, Turn off the driver signature: Execute β†’ gpedit.msc β†’ User configuration β†’ Administrative templates β†’ System system β†’ Installation of the driver β†’ Disable signature verification.

Method 4: Complete Fastboot reset (last resort)

If the phone is heavily contaminated with viruses, infected with advertising software, or simply dies from lags, hard reset via Fastboot will help. This method removes everything, including the firmware, and installs a clean system, suitable for devices with an unlocked bootloader (for example, after official unlocking through the Mi Unlock Tool).

Instructions:

  1. Download Fastboot firmware for your model (e.g. Redmi Note 11 Pro+ 5G β†’ select Fastboot version).
  2. Unpack the archive in the folder C:\platform-tools.
  3. Turn off the phone, then press Volume Down + Power to log into the Fastboot.
  4. Connect the device to the PC and run the command line in the firmware folder.
  5. Type commands in turn: fastboot flash boot.img fastboot flash recovery.img fastboot flash system.img fastboot flash vendor.img fastboot flash product.img fastboot flash dtbo.img fastboot flash vbmeta vbmeta.img fastboot erase userdata fastboot erase cacheboot reboot

What happens after the dump:

  • πŸ“± The phone will return to factory settings.
  • πŸ”„ All data (photos, messages, accounts) will be deleted.
  • πŸ”’ The bootloader will remain unlocked (if it was previously unlocked).
  • πŸ“¦ Clean firmware will be installed without garbage and viruses.

πŸ’‘

Resetting via Fastboot is the only way to completely remove viruses that have infiltrated the system files, but after the procedure, you will need to reconfigure the phone, as after buying.

Method 5: Use of third-party utilities (alternative)

If standard methods have not worked, you can use specialized deep cleaning software, and we recommend only proven tools to avoid installing malware.

Top.-3 Software to clean Xiaomi through PC:

ProgrammeFunctionsNeed root?Reference
Dr.Fone β€” System RepairSystem recovery, cache cleaning, virus removalNo.Website
iMyFone FixppoReset to factory settings without data loss (partially)No.Website
KingRoot + SD MaidDeep cleaning of system files, removing duplicatesYes.Website

How to work with Dr.Fone:

  1. Install the program and connect the phone in MTP mode.
  2. Select the System Repair module β†’ Android.
  3. Specify the device model (e.g. Xiaomi 12T) and follow the instructions.
  4. The program will automatically download the firmware and offer recovery options.

⚠️ Note: Third-party utilities may collect data about your device. Check forum reviews before using them (for example, for example, 4PDA or XDA Developers).

Frequent mistakes and their solution

When cleaning Xiaomi through the PC, users often face some problems, and let's look at the most common and ways to fix them.

Problem 1: The computer can’t see the phone in MTP mode.

  • πŸ”Œ Try another one. USB-port USB 2.0 on the back of the PC).
  • πŸ”„ Reboot both devices.
  • πŸ› οΈ Update drivers through Device Manager (section "Controllers") USB").

Problem 2: ADB is a device unauthorized error.

  • πŸ“± The phone will be asked for debugging permission - confirm it.
  • πŸ”‘ Delete the adbkey.pub file in the folder C:\Users\<your name>\.Android and reconnect the device.

Problem 3: After cleaning through Fastboot, the phone doesn't turn on.

  • πŸ”‹ Check the battery charge (plug in to charge for 30 minutes).
  • πŸ“₯ Repeat the firmware using the Mi Flash Tool.
  • πŸ› οΈ If the screen is on red, the firmware is damaged. EDL (Requires an authorized Xiaomi account).

πŸ’‘

If your phone is even slower after cleaning, check the internal memory status with the AIDA64 app (Storage section).

Can you clean a Xiaomi phone through your computer without losing data?
Yes, methods 1-3 (via Mi PC Suite, Explorer or ADB) allow you to remove garbage without affecting personal files.
How to clear the cache of all applications immediately through ADB?
Use the command: adb shell pm trim-caches 100G It will clear the cache of all user and system applications without deleting data.
What if after a Fastboot reset, the phone asks for a Mi Account?
This is Mi Account protection, and if you don't remember the login details, you'll have to: Restore access through the official website, or contact the service center with proof of purchase. EDL-The system (requires special equipment).
How to clean a Xiaomi phone if it doesn’t turn on?
If the device doesn't respond to the power button: Connect to charge for 1 hour (possibly the battery has gone down). Press Volume up + Power for 10-15 seconds for a forced reboot. If it doesn't work, run the phone through Fastboot or EDL (you need a PC).
What files can be removed from the Android/obb folder?
The obb folder contains additional game and application data (e.g., graphics for Genshin Impact or Call of Duty Mobile). You can delete: Game files you haven't used in a long time. Duplicates (sometimes remain after you reinstall applications). Do not delete files of current games - they will stop working!