How to Clean Memory on Xiaomi 8 Pro: A Complete Guide with Hidden MIUI Chips

Why Xiaomi 8 Pro is โ€œcloggingโ€ memory and how to fix it

Owners of Xiaomi 8 Pro (codenamed UD) often face a problem: the smartphone suddenly begins to โ€œbrakeโ€ despite 6-8 GB of RAM and 128/256 GB of internal storage. The reason lies not in the โ€œweak hardwareโ€ (the Snapdragon 845 processor is still relevant for medium tasks), but in the features of MIUI and user habits. The system actively caches data, applications create temporary files, and background processes accumulate โ€œjunkโ€ that is not always visible in the standard file manager.

The main mistake is to try to clear memory through Settings โ†’ Memory by pressing the โ€œCleanโ€ button. This method only removes the surface cache without affecting deep system files, duplicate photos or residual data of remote applications. In this article, we will discuss 7 ways to free up 3 to 15 GB of memory on the Xiaomi 8 Pro without root rights, including hidden MIUI functions and secure ADB commands.

Before you start, check the actual state of memory:

  • ๐Ÿ“ฑ Open the Settings. โ†’ The phone. โ†’ Status of memory.
  • ๐Ÿ” Please note the System Data section - if it is >10GB, problem with accumulated trash.
  • ๐Ÿ“Š Compare free space with data in Settings โ†’ Memory (often inflated numbers are shown there).

Method 1: Deeply clean the cache through the hidden MIUI menu

MIUI hides advanced cleaning settings that are not visible in the standard interface.

  1. Open the phone (calling) application.
  2. Enter the combination: ##4636###.
  3. Select the item Use Statistics โ†’ Memory usage.
  4. Click on the three dots in the top right corner and select Clean All.

This method removes the cache of system applications that is not affected by the standard cleaning, for example, temporary files of Google Play Services (up to 1-2 GB), Mi Cloud data or residues from MIUI updates can be stored here.

โš ๏ธ Note: Donโ€™t confuse this menu with the engineering menu (#3644633##) โ€“ itโ€™s designed to test smartphone modules and can cause malfunctions if used incorrectly.

Once cleaned, restart your phone. If less than 500MB of space is added, move on to the next method, and the problem is deeper.

๐Ÿ“Š How often do you clean your memory on your smartphone?
Once a week.
Once a month
Only when it's slowing down.
Never cleaned.

Method 2: Remove duplicate photos and โ€œdeadโ€ files

The Xiaomi 8 Pro automatically creates copies of photos when editing in the standard Gallery app, and also saves thumbnails for previews. These files take up to 3-5 GB, but do not appear in the main DCIM folder.

To find and remove them:

  1. Install a file manager with support for duplicate search (e.g. Files by Google or SD Maid).
  2. Run a search by criteria: ๐Ÿ“ท Files with the same resolution (e.g., files with the same resolution, 4032ร—3024). ๐Ÿ“ Folders: /storage/emulated/0/Pictures/.thumbnails and /DCIM/.thumbnails. ๐Ÿ” Name files. IMG_20230515_123456_edit.jpg or Screenshot_2023..._markup.png.

_edit

_markup

Additionally, check the /storage/emulated/0/Android/data/com.miui.gallery folder โ€“ temporary gallery files up to 1-2 GB can be found here.

๐Ÿ’ก

Before mass deleting photos, turn on the display of hidden files in the file manager settings. Often, the โ€œjunkโ€ is hidden in folders with a dot at the beginning of the name (for example,.nomedia).

Method 3: Cleaning Application Data Through ADB (without root)

If standard methods didnโ€™t work and System Data in Settings โ†’ Memory takes >10 GB, use ADB (Android Debug Bridge), which allows you to delete the cache and data of applications that MIUI โ€œforgetsโ€ to clean.

Instructions:

  1. Enable USB Debugging in Settings โ†’ About Phone โ†’ MIUI Version (click 7 times on the line with the version, then go back to Additional Settings โ†’ For Developers).
  2. Connect your phone to your PC and execute commands in the terminal (or PowerShell): adb shell pm list packages -f | grep 'miui' | cut -d= -f2 | xargs adb shell pm clear adb shell cmd package bg-dexopt-job
  3. Reboot your smartphone.

The first command cleans the data of all Xiaomi system applications (including Mi Browser, Mi Video, Security), the second โ€“ optimizes background processes, after which you may need to re-enter passwords in some applications.

โš ๏ธ Note: Do not use the command adb shell pm uninstall -k --user 0 [name packet to remove system applications on Xiaomi 8 Pro. This can lead to a bootloop cycle due to dependencies MIUI 10/11.

Type of dataSize (example)Can I remove it without consequences?
Google Play Services Cash500 MB - 1.5 GBYes (restores automatically)
Mi Browser data200-800 MBYeah (bookmarks drop)
Residual files of remote applications100MB - 3GBYes (folder /data/app-lib)
Logs of the system (logcat)50โ€“500 MBYes (removed by adb logcat -c)

Method 4: Transfer applications to memory card (if supported)

Xiaomi 8 Pro does not officially support microSD cards in the SIM2 slot, but some users use USB-C โ†’ microSD adapters to expand memory. If you have such an adapter, transfer some of the applications to an external drive:

  1. Connect the card through the adapter.
  2. Open Settings โ†’ Applications โ†’ Application Management.
  3. Select an app (such as Telegram or Spotify) โ†’ Storage โ†’ Change โ†’ Specify a memory card.

Limitations of the method:

  • โŒ Not all apps support portability (such as WhatsApp or banking programs).
  • โŒ Applications with a card are faster than internal memory (especially on microSD Class 10).
  • โœ… Suitable for media files: music, videos, photos.

How to check the speed of a memory card?
Connect the card to your PC and use the CrystalDiskMark utility. Minimum speed for comfortable application operation: reading > 40 MB / s, writing > 10 MB / s.

Method 5: Disabling the automatic caching of MIUI

MIUI aggressively caches data to speed up work, but this often leads to overflows of memory.

  1. Open Settings โ†’ Additional settings โ†’ Privacy.
  2. Select Special Permissions โ†’ AutoRun and disable AutoRun for unnecessary applications (e.g. Mi Video, Mi Music, Cleaner).
  3. Return to Settings โ†’ Memory โ†’ Settings and turn off the Caching option in the background.

It is also recommended to limit background activity:

  • ๐Ÿ”„ B Settings โ†’ Battery and productivity โ†’ Battery Management Select Energy Saving Mode for Unnecessary Applications.
  • ๐Ÿšซ B Settings โ†’ Annexes โ†’ Permits โ†’ Background activity disable background work for social networks and instant messengers (except for the main ones).

These actions will reduce memory load, but can increase the load time of applications on the first run.

Disable autorun of unnecessary applications |Limit background social media activity |Stop caching in the background |Remove widgets from the home screen |Disable animation in the developer settings-->

Method 6: Reset the partition cache (wipe cache partition)

If your smartphone starts to โ€œglutchโ€ (spontaneous reboots, application errors), and the memory is filled with unknown things, reset the cache of the cache partition. This will not delete your data, but will clear the temporary files of the system.

Instructions:

  1. Turn off the phone.
  2. Press the Power button + Volume up until the Mi logo appears.
  3. From the Recovery menu, select Wipe & Reset โ†’ Wipe Cache.
  4. Confirm the action and restart.

After this procedure:

  • โœ… 1-3 GB of memory is freed.
  • โœ… Errors like โ€œThe app has stoppedโ€ will disappearยป.
  • โš ๏ธ The first download will take up to 5-10 minutes (the system will restore the cache).

โš ๏ธ Warning: Don't confuse Wipe Cache with Wipe Data (full reset)!The second option will delete all your data, including photos and apps.

Method 7: Manually remove unnecessary system applications (for experienced)

MIUI installs a lot of pre-loaded applications (bloatware) that can't be removed by standard means, and if you're willing to take a chance, they can be deactivated via ADB:

List of safe packets to remove (checked on Xiaomi 8 Pro with MIUI 10-12):

pm uninstall -k --user 0 com.miui.videoplayer  # Mi Video


pm uninstall -k --user 0 com.miui.player       # Mi Music




pm uninstall -k --user 0 com.miui.weather #Weather




pm uninstall -k --user 0 com.xiaomi.scanner # Scanner




pm uninstall -k --user 0 com.android.browser # Standard browser

How it works:

  1. Connect your phone to a PC with USB debugging enabled.
  2. Enter commands one by one, checking the result after each.
  3. Reboot your smartphone.

Warnings:

  • ๐Ÿšจ Do not delete packages with the names com.android, com.qualcomm or com.xiaomi.finddevice, this will cause the key functions to fail.
  • ๐Ÿ”„ After updating MIUI Remote applications can be restored.

๐Ÿ’ก

Removing system applications via ADB does not require root rights, but it can disrupt some MIUI features (such as dark theme or gestures).

FAQ: Frequent questions about cleaning the memory Xiaomi 8 Pro

Can I clean my memory without losing data?
Yes, all the methods in this article (except for a complete reset) save your files, but before any manipulations, it is recommended to back up photos and contacts through Mi Cloud or Google Photos.
Why does the memory re-energize in a few days?
This is due to background activity of apps (especially Facebook, Instagram, TikTok) and automatic caching of MIUI. Solution: Limit background activity in battery settings. Turn off autoload media in instant messengers. Install the Greenify app to freeze unnecessary processes.
How to clear your memory if your phone is not switched on?
If the Xiaomi 8 Pro is stuck on the logo or doesnโ€™t react, plug it into your PC and use Fastboot: fastboot erase cache If it doesnโ€™t help, youโ€™ll need a full reset (fastboot -w), but it will delete all data.
How much memory should be free for normal operation?
Minimum recommended stock: ๐Ÿ“ฑ For MIUI 10/11: 3โ€“5 GB is free. ๐Ÿ“ฑ For MIUI 12+: 5โ€“8 GB (due to increased system file size) If free <2 GB, smartphone will slow down and spontaneously close applications.
Can I increase memory on Xiaomi 8 Pro?
No, the Xiaomi 8 Pro does not support replacement of the built-in drive (memory soldered to the motherboard), the only option is to use external drives via USB-C or cloud services.