How to Restore a Factory Theme on Xiaomi: From Reset to Manual Editing

You've installed a custom theme on your Xiaomi, Redmi or Poco, but it's too bright, slows down the system or just doesn't fit into your style? There are a number of ways to bring back the original MIUI factory theme, from standard resetting through settings to manually deleting files via ADB or specialized utilities. In this article, we'll take all the working methods into account the features of different versions of firmware, including MIUI 14 and HyperOS.

The main problem when restoring a standard theme is that not all users know that simply resetting themes in the settings does not always work. Often, after installing third-party themes, artifacts remain: modified icons, fonts or even system sounds, we will show you how to completely clear the system of traces of custom themes, including hidden files in the /data/system/theme/ folder, and return the smartphone to its original appearance.

Important: the procedure is different for devices with unlocked bootloader and root rights. If you have never worked with ADB or Fastboot, start with the simplest methods - they will work for 90% of users. For experienced enthusiasts, we have prepared advanced instructions using Mi Theme Editor and the command line.

1. Standard reset theme through MIUI settings

The safest and most recommended way is to use the built-in tools, which works on all Xiaomi devices running MIUI 12-14 and HyperOS, does not require superuser rights and takes less than a minute.

Open the Themes app (Brush Icon) and follow the following steps:

  • πŸ“± Go to My Themes section (the tab at the bottom of the screen).
  • πŸ”„ Click on the three dots in the upper right corner and select Reset to the factory theme.
  • βœ… Confirm the action in the dialog window.
  • πŸ”„ Restart the device to apply changes.

If the item Reset to the factory theme is not on the menu, try an alternative way:

  1. Open the settings β†’ About the phone β†’ version of MIUI.
  2. Tap 7-10 times on the MIUI version to activate the developer mode.
  3. Go back to the basic settings, find a new section for developers.
  4. Activate the debugging option over USB and connect the phone to the PC.
  5. Follow the command in ADB: adb shell pm clear com.android.themes

⚠️ Note: On some firmware (for example, MIUI Global for Redmi Note 10 Pro) reset via settings does not remove custom fonts. To return a standard font, additionally follow the command: adb shell pm clear com.miui.systemFont

πŸ“Š What version? MIUI You're using it?
MIUI 12
MIUI 13
MIUI 14
HyperOS
I don't know.

2. Remove themes via Mi Theme Editor (no root)

If a standard reset doesn't work, use Xiaomi's official Mi Theme Editor utility, which allows you to manually manage set themes, including removing system files without superuser rights. MIUI 13/14 HyperOS.

Download Mi Theme Editor from APKCombo or APKMirror (version must be at least 1.3.0).

  • πŸ“² Launch the application and provide access to the storage.
  • πŸ” In the list of topics, find the one you want to remove (including custom).
  • πŸ—‘οΈ Click on three dots next to the topic and select Delete.
  • πŸ”„ For the factory theme, select Restore by default.

After removing all third-party themes, restart the device. If the icons or fonts remain changed, perform an additional cache cleanup:

adb shell pm clear com.miui.home


adb shell pm clear com.android.launcher3

β˜‘οΈ Preparation for manual resetting of topics

Done: 0 / 5

3. Manual removal of themes via ADB (for experienced)

This method requires command line skills and is suitable for devices where standard methods have failed.We will delete the theme files directly from the system folders, which ensures a complete cleanup.

Connect your phone to your PC, activate USB Debugging, and execute the following commands in ADB:

adb shell


su




rm -rf /data/system/theme/*




rm -rf /data/resource-cache/*




reboot

If you do not have root rights, use an alternative method via pm uninstall:

adb shell pm uninstall -k --user 0 com.android.theme.icon_pack.rounded


adb shell pm uninstall -k --user 0 com.android.theme.icon_pack.filled

What if the ADB can’t see the device?
1. Make sure that Xiaomi drivers are installed (download from [official website](https://new.c.mi.com/global/miuidownload/index)). 2. Check if File Transfer is enabled (MTP) plug-in. 3. Try another one. USB-cable (preferably original). 4. In the developer settings, activate Allow debugging by USB (safe-haven). 5. Restart your PC and phone.

After restarting, the system will automatically restore the factory theme. If the icons remain changed, then do the following:

adb shell cmd overlay list | grep -i theme


adb shell cmd overlay disable [name overlay]

⚠️ Note: On some devices (e.g. Xiaomi) 12T POCO F4) file-deleting /data/system/theme/ In this case, reboot your phone in Safe Mode (hold the power button). β†’ Reboot to Safe Mode and repeat the procedure.

4.Recovery through reset to factory settings

If all the previous methods didn't work, the radical solution is to completely reset your settings, which will completely return the factory theme, but delete all the data from the device. Make sure to back up before you start!

Instructions for MIUI and HyperOS:

  1. Go to Settings β†’ About Phone β†’ Backup and Reset.
  2. Select Settings Reset.
  3. Check to clear internal memory (optional if the themes are stored in internal storage).
  4. Confirm the action and wait for the reboot.

Once reset, the device will boot with a clean firmware and factory theme. If you want to avoid total data loss, use a selective reset:

adb shell pm clear --user 0 com.miui.home


adb shell pm clear --user 0 com.android.themes

πŸ’‘

Before resetting, write down your device's IMEI (type *#06# in the dialer). In rare cases, IMEI recovery may be required via the engineering menu after reset.

5. Features for HyperOS and New Devices

In HyperOS (which replaced MIUI since Xiaomi 14 and Redmi K70), theme management has changed, and the factory theme is now integrated deeper into the system, and resetting it requires other commands.

For HyperOS, use the following algorithm:

  • πŸ“± Open the Settings. β†’ Personalization β†’ Topics.
  • πŸ”„ Click on the gear icon in the upper right corner.
  • πŸ—‘οΈ Choose Remove All Uploaded Themes.
  • πŸ”„ Reset the device.

If the interface remains changed, do the following in ADB:

adb shell cmd overlay disable-all


adb shell settings put global theme_customization_version 0

For HyperOS devices, hidden recovery mode is also available to activate:

  1. Open the Topic app.
  2. Slip 5 times on the top bar (where the current theme is displayed).
  3. The Restore System Settings menu will appear - select it.

πŸ’‘

On HyperOS, it is not recommended to use older versions of Mi Theme Editor - this can cause the system interface to crash. Use only official tools or ADB.

6. Frequent errors and their solutions

Even with the instructions, users often face problems, and let's look at the common mistakes and how to fix them.

Problem.Reason.Decision
After the reset, there were custom iconsOverlay icons weren't turned off.Execute adb shell cmd overlay disable com.android.theme.icon_pack.rounded
The theme is reset, but after rebooting it returns.Launcher cache not clearedDelete com.miui.home data via settings or ADB
The "Subjects" app leaves after resettingDamaged files in /data/system/theme/Remove the folder manually through ADB or Root Explorer
No item "Dumping to factory theme"Restriction of regional firmwareUse Mi Theme Editor or reflash the device to the global version

On devices with unlocked loader and custom recaveri (TWRP) You can restore the factory theme by asking for the original file miui_themes.apk Download it from the firmware archive for your model and run it through the ADB Sideload:

adb sideload miui_themes.apk
Can I return the factory theme without resetting the settings?
Yes, 90% of the time, resetting via settings or Mi Theme Editor helps. Only if the theme was installed via Magisk or Xposed, you may need to manually remove modules.
Why are there black icons after the theme is removed?
This is a dark theme overlay. Disable it with the command: adb shell cmd overlay disable android.theme.dark Or return the light theme in the display settings.
How do I know what topic is currently being set?
Open Settings β†’ About Phone β†’ MIUI version and tap 5 times on the logo. From the menu that appears, select Topic Information. Alternatively use the command: adb shell dumpsys activity service com.android.themes
Will the reset themes work on Poco Launcher?
Yes, but after a reset, you may need to reinstall the Poco Launcher.Use the commands: adb shell pm clear xiaomi.eu.pocolauncher adb shell pm install -r pocolauncher.apk
Can I restore a remote factory theme?
If you manually deleted theme system files, the only way is to reflash the device via Fastboot or restore the backup via TWRP. To do this, download the stock firmware for your model from the Xiaomi Firmware Updater site.