Have you ever accidentally deleted an important file on a Xiaomi smartphone and then realized with horror that it was gone forever? Fortunately, the manufacturer has a mechanism to protect against such situations โ Trash Bin (or "Basket"). This function works similar to the basket on the computer: deleted files are not erased immediately, but sent to a temporary storage facility from where they can be restored.
However, many users are unaware of the existence of Trash Bin in their devices, and in this article we will discuss what a shopping cart in Xiaomi is, where to find it, how to use it, and what to do if the files are lost. We will pay special attention to the nuances of working with different types of data - photos, videos, documents and even messages in the data. MIUI.
If you want to learn how to manage your smartphone memory efficiently and never lose important data, read on.We will also reveal hidden shopping cart settings that are not dokumented in official instructions, but can save your files in a critical situation.
What is Trash Bin and Why is it Necessary?
Trash Bin (from English "garbage bucket") is a system folder in the firmware MIUI, It works on the principle of "soft deletion": instead of completely erasing data from the memory of the device, the system simply moves it to the basket, where it is stored for a limited time (usually 30 days).
The main objectives of Trash Bin:
- ๐ก๏ธ Accidental Deletion Protection โ the ability to recover files if you change your mind or make a mistake.
- ๐๏ธ Memory optimization โ Automatically clean the cart after a predetermined period to avoid clogging the storage.
- ๐ Easy search โ files in the basket save the original tags (date of creation, name, folder of origin).
It is important to understand that Trash Bin in Xiaomi is not a universal shopping cart for all types of files.
- ๐ท Photos and videos (from Mi Gallery or Google Photos if sync is enabled).
- ๐ Documented (PDF, Word, Excel, etc., deleted via Files by Google or Mi File Manager.
- ๐ฌ Some messages (in Mi Messages or in Mi Messages) SMS, if the appropriate setting is enabled).
But here are files deleted through third-party applications (for example, Telegram, WhatsApp or WhatsApp). VLC), Trash Bin doesn't get into it, and the cart doesn't save it:
- ๐ต Music and audio files (unless deleted via Mi Music).
- ๐ System files and application cache.
- ๐ง Application settings or game data.
Where is the basket on Xiaomi: step-by-step instructions
Trash Bin location depends on file type and version MIUI. We will look at all possible ways of access.
1. Photo and video basket
If you have deleted a photo or video through the standard Mi Gallery, you can restore it as follows:
- Open the Gallery app (an icon with colored squares).
- Slip on three horizontal lines (โฐ) lower-right.
- Select the Cart item (or Trash in English version).
- Click on the file, then select Restore (or Restore).
In some versions MIUI (for example, MIUI 12.5 and later) the path may differ:
Gallery โ Albums โ Scroll Down โ Cart2. Document and File Recycle Bin
To recover deleted documents, use Mi File Manager:
- Open the Files app (folder icon).
- Go to the Categories (or Browse) section.
- Scroll down and select the basket.
- Select the files you need and click Restore.
If you have Files by Google installed, the path will be different:
Files by Google โ Menu (โฐ) โ Recycle BinOpen the gallery and find the "Baskbasket" section
Check the File Manager for Trash folder
Make sure that backup is enabled in the storage settings
Try to delete the test file and see if it appears in the cart-->
3. Hidden messaging basket
Few people know, but in MIUI It is possible to restore the remote SMS And the messages from Mi Messages:
- Open the Messages app.
- Tap on three points (โฎ) top-right.
- Select Settings โ Backup and Restore.
- Click Restore Messages (if backup was previously enabled).
Note: this method only works if you have backed up in your message settings beforehand. SMS will not be possible.
๐ก
If you don't find a shopping cart in the Gallery, try updating the Mi Gallery app via Google Play. In older versions, the feature could have been hidden or disabled.
How to recover files from Trash Bin: a step-by-step algorithm
The process of recovering files from the Xiaomi Recycle Bin seems simple, but there are a few nuances that few people know about.
1. Photo and video recovery
To return deleted media files:
- Open the Gallery and go to the Recycle Bin (as described above).
- Select files by holding your finger on one of them (a tick will appear).
- Click on the Restore button at the bottom of the screen.
- Select the folder to restore (by default - the original folder).
Important points:
- ๐ Recovered files do not save the original date of creation โ it is replaced by the current one.
- ๐ If the original folder has been deleted, the files will be restored to the folder. DCIM/Camera.
- โณ Recycle bin storage time โ 30 days (configured in Gallery Settings) โ Basket).
Recovery of documents
For the return of deleted documents:
- Open the File Manager and go to the Recycle Bin.
- Select the files you want (multiple selection mode can be used).
- Click Restore and confirm the action.
Features:
- ๐ Files are restored to the Download folder if the original folder is deleted.
- ๐ Some system files (for example, APK) They may not recover due to security restrictions.
3. Computer-assisted recovery
If the basket on the phone does not work or files are missing from it, you can try to restore them via the PC:
- Connect Xiaomi to your computer via USB (in File Transfer mode).
- Open the folder. MIUI/Trash or MIUI/Recycle (It can be hidden โ turn on the display of hidden files).
- Copy the files to a safe place on your PC.
If there is no Trash folder, try searching along the way:
Internal Storage โ Android โ data โ com.miui.gallery โ files โ trashWhat if the cart is empty, but the files have been deleted?
Trash Bin Settings: How to Change Storage Time and Turn Off the Recycle Bin
By default, Trash Bin files are stored for 30 days and then automatically deleted, but you can change that value โ or disable the cart altogether if it takes up too much space.
1. Change in the retention period
To adjust the life time of files in the basket:
- Open the gallery.
- Go to Settings (cog in the upper right corner).
- Pick the basket.
- Click on Clean the Cart after and set the desired time: 7 days, 15 days, 30 days or Never.
Mind you:
- โ ๏ธ The option can never cause memory overflow if you delete files frequently.
- ๐ Minimum period - 7 days, maximum - 30 days (in some versions) MIUI 60 days available).
2. Completely shutting down the basket
If you want to delete files immediately (without getting into the basket):
- Go to the Gallery Settings โ Recycle Bin.
- Turn off the switch. Turn on the basket.
- Confirm the action in the dialog window.
โ ๏ธ Warning: Once the Recycle Bin is disabled, all files in the Recycle Bin when the settings change will be permanently deleted.
3. Manual cleaning of the basket
To make room manually:
- Open the Gallery or Files and go to the Recycle Bin.
- Press three points (โฎ) top-right.
- Choose Clear the basket.
- Confirm removal.
Alternative method (through settings):
Settings โ Storage โ Cleaning โ Cart โ Clean๐ก
If you frequently delete large files (such as videos in the 4K), Reduce the shelf life of the basket to 7 days or manually clean it.
What to do if files are missing from the cart or it does not work
Sometimes people find that Trash Bin is empty, even though the files have been deleted, or the cart does not open at all.
1. Files deleted irretrievably
If files are missing from the recycle bin, the following scenarios are possible:
- โณ Expired storage period (30 days by default).
- ๐งน The basket was cleaned manually or automatically (with a lack of memory).
- ๐๏ธ Files deleted through a third-party application (for example, ES A conductor or Total Commander that does not use Trash Bin.
- ๐ง There was a breakdown in work. MIUI (for example, after updating).
The first three cases are not recoverable by standard means, and the last one will help:
- ๐ Phone reboot.
- ๐๏ธ Cleaning the cache Gallery (Settings) โ Annexes โ gallery โ Warehouse โ Clear the cache).
- ๐ฅ Reinstall the update for Mi Gallery via Google Play.
2. the basket does not open or gives an error
If you try to open Trash Bin with an error (for example, โBasket is emptyโ or โCanโt downloadโ), try:
- Check if the cart is included in the settings (Gallery settings) โ Basket).
- Update the Mi Gallery app to the latest version.
- Clear the Gallery data (Settings) โ Annexes โ gallery โ Warehouse โ Clear the data. Attention: this will delete all application settings!
- Check the free space on the device (if the memory is less than 500 MB, the basket may not work).
3. Recover deleted files without a basket
If the files are not included in the basket or it is disabled, the following options remain:
| Method | When it works | Deficiencies |
|---|---|---|
| Backups of Google Photos | If you have synced with Google Photos | Internet needs to take up space in the cloud |
| Recovery Programs (DiskDigger, Recuva) | For files that have been deleted recently (before being rewritten) | You need root or PC, not always effective. |
| Cloud Storage (Mi Cloud, Yandex Drive) | If the files are synced to the cloud | Limited space, not all files are saved |
| Local backups | If you did backup through Mi Backup | Recovers all data, not individual files |
โ ๏ธ Note: Data recovery software (e.g., DiskDigger) only works until deleted files are overwritten with new data. The more you use your phone after deletion, the lower your chances of recovery.
The hidden possibilities of Trash Bin, which not everyone knows
The shopping cart in Xiaomi has some undocumented features that can be useful in non-standard situations.
1. File recovery after resetting settings
Many users mistakenly believe that after a Hard Reset, all data is lost forever, but if the basket was active before the reset, some files can be returned:
- After resetting, do not connect your phone to the Internet (so that you do not start an automatic update).
- Connect the device to the PC and check the folder MIUI/Trash conductor.
- Copy the necessary files to the computer.
This method doesnโt always work, but in 30% of cases it saves at least some data.
2. Repositioning of the basket
By default, Trash Bin stores files in the device's internal memory, MIUI 13 for Xiaomi 11T) can be moved to SD-map:
- Put it in. SD-phone-card.
- Open the Settings โ Storage โ Recycle Bin.
- Select a storage location โ SD-map.
Advantages:
- ๐ฑ Internal memory is released.
- ๐ The storage period of files is increased (SD-maps are usually larger in volume).
3. Restore the cart after the update MIUI
After major updates (e.g., with the MIUI 12 on MIUI 14) The basket may be "reset" - files will disappear in it, and the settings will be reset:
- Before updating, make a backup copy of the folder MIUI/Trash PC-only.
- After updating, return the folder to its place (if the structure has not changed).
- Reboot the phone.
If the files in the cart are critical, it is recommended to disable automatic updates. MIUI until you have them moved to a safe place.
4. Access to the basket through ADB
For advanced users: if the shopping cart does not open through the interface, you can access it through the interface. ADB (Android Debug Bridge:
- Connect your phone to your PC and enable USB Debugging (Settings โ About Phone โ MIUI version โ tap 7 times, then Additional โ For developers โ USB debugging).
- Open the command line on the PC and type:
adb shell ls /storage/emulated/0/MIUI/TrashThis command will show the contents of the basket, so you can copy the files to the PC:
adb pull /storage/emulated/0/MIUI/Trash/ C:\Backup\โ ๏ธ Attention: Working with ADB The wrong commands can cause the system to fail. If you're not sure what you're doing, you better use other recovery methods.
How to protect files from accidental deletion: prevention
The best way to avoid losing data is to prevent it from being deleted. Here are some proven methods:
1. Configuring backup
Enable automatic backup of important files:
- ๐ท For photos: Google Photos (up to 15GB free) or Mi Cloud (5GB free).
- ๐ For documents: Yandex Disk or Dropbox.
- ๐ฌ For messages: Settings โ Communications โ Backup.
How to enable backup in Mi Cloud:
- Go to Settings โ Xiaomi Account โ Mi Cloud.
- Turn on the gallery synchronization switch.
- Select Autoboot and install only over Wi-Fi so as not to waste mobile traffic.
2. Use of third-party baskets
If the standard Trash Bin doesnโt suit you, you can install alternative apps with advanced features:
| Annex | Features | Cons |
|---|---|---|
| Dumpster | Stores all types of files, including APK | It takes up a lot of space, advertising. |
| Recycle Bin | Support for cloud redundancy | Paid version for full functionality |
| ES File Explorer | Built-in basket + cloud | A complex interface, intrusive advertising |
3. Protection against children and accidental pressing
If you often give your phone to your children or are afraid of accidentally deleting your files:
- ๐ Enable Application Blocking for Gallery and Files (Settings) โ Annexes โ Application lockdown).
- ๐ถ Use the Mode for Children (Settings) โ Special facilities โ Regime for children).
- ๐ฒ Set a password to delete files (in some file managers, such as Solid Explorer).
4. Regular check of the basket
The habit of checking Trash Bin once a week will help you avoid data loss.
- ๐๏ธ Keep a reminder in your calendar or Google Keep.
- ๐ Use the Warehouse widget on the home screen to track the occupied space.
- ๐ Periodically sort files in the shopping cart, removing unnecessary ones (such as screenshots or duplicates).
๐ก
The most reliable way to protect data is a combination of backup to the cloud + basket + There's no method by itself that gives you 100% guarantee.