Why the standard theme removal on Xiaomi Mi 9 doesnโt always work
Xiaomi Mi 9 with a MIUI shell offers users a wide range of options for customizing the interface through themes. However, many people face the problem: after installing a new theme, the old one is not completely removed, leaving artifacts in the form of icons, fonts or animations. In some cases, the themes do not appear in the installed list at all, but continue to affect the system due to the peculiarities of the MIUI Themes application and resource caching.
The main reason for the undelete themes is the MIUI architecture: the shell stores theme elements in several places at the same time โ from custom folders (/storage/emulated/0/MIUI/theme/) to system directories (/data/system/theme/). The standard click on the โDeleteโ menu often cleans only surface files, leaving deeply integrated components. In addition, after the MIUI updates to versions 12.5+ and 13/14, the logic of working with themes has changed โ now they can be โassociatedโ to the Mi Account, which makes it difficult to delete manually.
This article covers all the current ways to remove themes on Xiaomi Mi 9, including hidden methods through ADB, cache cleaning and even radical resetting. We will also break down typical bugs (such as com.android.themes.error) and explain why some topics canโt be deleted without superuser rights.
Method 1: Remove theme through the standard MIUI Themes menu
Let's start with the most obvious method, which works 60-70% of the time, and it doesn't require any additional tools, and it's suitable for those that are installed through the official MIUI Themes store.
Open the Themes app (icon with brush) and follow the steps:
- ๐ฑ Go to the tab "My topics" (in the lower menu).
- ๐ Find the topic you want to delete and hold your finger on its preview.
- ๐๏ธ In the menu that appears, select "Delete" (or the basket icon).
- โ Confirm the action by pressing โOKโ in the dialog window.
If the theme doesnโt appear in the list, but its elements are still active (such as modified icons or lock screen saver), try:
- Apply the standard MIUI theme (usually the first one on the list).
- Reboot the phone.
- Repeat the removal attempt.
โ ๏ธ Attention: Some topics from the store MIUI Themes are protected from removal if they have been installed as โsystemโ (for example, themes from Xiaomi partners.
Method 2: Clearing the cache and data of the "Themes" application
If the theme is not deleted through the menu or its files are stuck in the system, the next step is to reset the settings of the MIUI Themes application itself.
- ๐ผ๏ธ The theme appears in the settings but is not deleted (button is inactive).
- ๐ After removal, theme elements return after rebooting.
- โ ๏ธ Error: "I failed to apply the topic".
Instructions:
- Open Settings โ Applications โ Application Management.
- Find the Themes app (or com.android.themes).
- Select "Storage."
- Click on "Clear Cache" and "Clear Data".
- Confirm the action and restart the phone.
Once rebooted, all non-system themes will be reset and their files deleted from temporary folders, but this method does not affect themes manually installed through.mtz files (they need method 3).
Make a backup copy of important data|Remember the current lock screen settings|Disable theme synchronization with Mi Account|Check the space in the memory (need to be checked) โฅ500MB)|Connect the charger (in case of a long reboot)-->
Method 3: Manually remove themes through file manager
For themes that are manually installed (via.mtz files), or if standard methods donโt work, youโll need to delete the theme files directly, which requires access to the phoneโs root folder, but not necessarily root rights.
You will need any file manager with access to system folders (such as MiXplorer or Solid Explorer).
- Open the file manager and go to /storage/emulated/0/MIUI/theme/.data/ Custom Themes are stored here.
- Find a folder with the title of the theme you are removing (usually a set of numbers and letters, such as com.example.theme123).
- Delete the entire folder.
- Go to /storage/emulated/0/MIUI/theme/.cache/ and delete all files related to the topic (the same names).
- Clear the Themes app cache (as in Method 2) and restart the phone.
If the theme has been installed as a system theme (for example, through ADB or Magisk), its files can be located in:
/data/system/theme/
/system/media/theme/default/Root rights will be required to remove from here.
โ ๏ธ Note: Delete files from the folder /system/ If you're not sure about root, you can have a bootloop. 4 or 5.
What to do if you canโt see the MIUI/theme folder?
Method 4: Remove themes via ADB (without root)
The Android Debug Bridge (ADB) tool allows you to manage system components without obtaining root permissions, a method suitable for removing stubborn themes that do not want to disappear through standard methods.
The work will require:
- ๐ฅ๏ธ Computer with installed ADB Tools.
- ๐ฑ Included debugging by USB Xiaomi Mi 9 (Settings) โ The phone. โ Version. MIUI โ 7 times to unlock the developer menu, then Settings โ Additionally. โ For developers โ Debugging by USB).
- ๐ USB-cable (preferably original).
Instructions:
- Connect the phone to the PC and allow debugging (a request will appear on the smartphone screen).
- Open the command prompt (or Terminal on Mac/Linux) in the ADB folder.
- Enter the command to check the connection: Adb devices must appear serial number of your Mi 9.
- Delete the theme by its batch name (e.g. com.theme.example): adb shell pm uninstall --user 0 com.theme.example Replace com.theme.example with a real theme identifier (can be found in Settings โ Apps).
- Reboot your phone: adb reboot
If you donโt know the batch name of the theme, get a list of all the items that the team has installed:
adb shell pm list packages | grep themeโ ๏ธ Note: Some system themes (e.g. com.android.theme.liveearth) cannot be deleted via ADB โ This will lead to the Failure error. [DELETE_FAILED_INTERNAL_ERROR]. In such cases, only resetting the settings (the method) will help. 5).
1. Reinstall Xiaomi USB Drivers drivers.
2. Use a USB 2.0 port (on some PCs, USB 3.0 is unstable for ADB).
3. Enable the option "Debugging by" in the developer settings USB (security parameters)โ and โAllow unlocking OEM".-->
Method 5: Extreme measure - resetting settings to factory
If all previous methods failed, and the theme continues to โghostโ the interface, the last option is a complete reset. This is a radical solution, but it is guaranteed to remove all user themes and return the Xiaomi Mi 9 to its original state.
Important: Reset will remove all data from your phone, including:
- ๐ธ Photos and videos (if not saved to the cloud).
- ๐ฑ Contacts, SMS, call-in.
- ๐ฎ Installed applications and their data.
- ๐ Wi-Fi passwords and account settings.
How to perform the reset:
- Back up important data via Settings โ About Phone โ Backup or manually.
- Open Settings โ About the phone โ Reset settings.
- Select "Erase all data."
- Enter the password (if installed) and confirm the action.
- Wait for the process to be completed (it will take 5-10 minutes).
Once reset, the phone will reboot in factory condition, all themes, including system ones, will be deleted, but note: MIUI 12.5+ can automatically apply the theme attached to your Mi Account to avoid this, before reset:
- Turn off the themes sync in Settings โ Xiaomi Account โ Sync.
- Delete your Mi Account (optional, but recommended).
| Deleting method | Do you need root rights? | Removes systemic themes? | Implementation time | Risk of data loss |
|---|---|---|---|---|
| Through the MIUI Themes menu | โ No. | โ No. | 1-2 minutes | โ No. |
| Cleaning the app cache | โ No. | โ No. | 3-5 minutes | โ No. |
| Manual deletion of files | โ ๏ธ Sometimes. | โ ๏ธ Partially. | 5-10 minutes | โ No. |
| Through ADB | โ No. | โ ๏ธ Only user-generated | 5 minutes. | โ No. |
| Reset to factory | โ No. | โ Yes. | 10-15 minutes. | โ High-pitched |
๐ก
Resetting is the only way to remove themes installed through firmware or system updates, but this is an extreme measure: use it only if other methods have failed.
Solutions to problems after removal of topics
Even after successfully removing the theme, Xiaomi Mi 9 users may experience side effects, and here are the most common problems and solutions:
1. app icons left behind from an old theme
This is due to the icon caching in Launche (standard launcher MIUI) to bring back the original icons:
- ๐ Reboot the phone.
- ๐งน Clear the launcher's cache: Settings โ Annexes โ Launcher โ Warehouse โ Clear the cache.
- ๐ฅ Set a standard theme MIUI And apply it.
2. โTheme is not supportedโ error when trying to install a new one
The com.android.themes.unsupported error is caused by conflicting MIUI versions and themes.
- ๐ง Update. MIUI last-minute.
- ๐๏ธ Remove all custom themes (through method 2 or 3).
- ๐ Reset the settings of the application Themes (mode 2).
3 The theme itself comes back after the reboot
This is a sign that the theme is linked to a Mi Account or saved to the cloud to disable automatic application:
- Open Settings โ Xiaomi Account โ Synchronization.
- Turn off the "Themes" option.
- Remove the topic manually (method 1 or 3).
- Apply the standard MIUI theme.
4.After deleting the theme, the wallpaper or fonts disappeared
Some themes replace system fonts and wallpapers that don't automatically recover, to bring back standard ones:
- ๐ผ๏ธ For wallpaper: download the original wallpaper MIUI official website.
- ๐ค For fonts: Set a standard font through Settings โ Screen. โ font.
๐ก
If after removing the theme, the phone began to slow down, clear the Dalvik cache through TWRP (root required) or perform optimization in Settings โ About Phone โ Optimization.