Smartphones Xiaomi, Redmi and Poco based on the proprietary shell MIUI They allow you to customize the interface deeply, from wallpaper to app icons, but what if the themes you're using on the Theme don't reflect your style? Creating your own theme is a way to stand out, add uniqueness, or even make money selling your work in a store. In this guide, we will discuss the entire process: from design preparation to installing a theme on the device, including bypassing restrictions. MIUI and solving typical errors.
It is important to understand that MIUI It uses its own theme format (.mtz), which includes not only graphic elements, but also configuration files for system components, which means that creating a complete theme will require not only artistic taste, but also basic knowledge of working with archives, XML-file-and-sometimes ADB. But donβt worry: weβll cover each stage in detail, including simplified methods for beginners.
This article is relevant for devices on MIUI 12-15 (including hyper-based versions) and covers both manual creation of themes through modification of system files, and the use of specialized tools such as: MIUI Theme Editor or MT Manager: If youβve never done this before, start with simple changes (wallpaper, icons) and then move on to complex elements like animations or system fonts.
What's the subject? MIUI and what it is
Subject in MIUI β This is a file package with the.mtz extension that contains:
- π¨ Graphic elements: wallpaper, application icons, notification icons, lock screensavers.
- π Configuration files: XML-documents describing colors, fonts, styles of system menus.
- π Animations: transitions between screens, effects when pressing on elements.
- π± System modifications: changing the shape of notification panels, keyboard style, or even sounds.
The.mtz file is essentially repackaged. ZIP-It can be opened by any archiver (e.g., by an archiver, 7-Zip Or WinRAR) and manually edit content, but it's important to keep the folder structure and file names intact to work properly. MIUI They just ignore your changes.
Xiaomi Officially Provides a Tool MIUI Theme Editor (available only for Chinese versions) MIUI), But it's limited in functionality. MT Manager or manual editing through ADB give more freedom, but require caution β incorrect changes can lead to interface failures.
Preparation: tools and requirements
Before you start creating a theme, make sure you have everything you need:
The device Xiaomi/Redmi/Poco on MIUI 12β15
Computer with Windows/Linux/macOS
Archivator (7-Zip, WinRAR)
Image Editor (Photoshop, GIMP, Paint.NET)
Text editor (Notepad)++, VS Code)
Tools: MT manager or MIUI Theme Editor (optional)
The debugging bridge ADB (for advanced change)
Backup of device data
-->
For most tasks, a basic set of archivers and graphics editors will suffice, but if you plan to change system elements (for example, the style of the notification bar), you will need to:
- π§ ADB-Access: Enable Debugging by USB In Settings β The phone. β Version. MIUI (Click 7 times on the version to unlock Developer Settings).
- π¦ MT Manager: file manager with root rights (requires an unlocked bootloader).
- π₯οΈ MIUI Theme Editor: Official tool (available only on Chinese firmware or via workarounds).
β οΈ Warning: Changing system files without a backup may result in an interface failure or reboot cycle.Before any manipulation, create a backup via Settings β Additionally. β Backup and reset or use TWRP (if established).
| Tool. | Appointment | Level of difficulty | Need root? |
|---|---|---|---|
| MIUI Theme Editor | Official topic editor | Low. | No. |
| MT Manager | Editing system files | Medium. | Yes. |
| ADB + Notepad++ | Manual modification XML/config | High-pitched | No (but ADB rights are needed) |
| 7-Zip + GIMP | Editing graphics and packaging.mtz | Low. | No. |
Method 1: Creating a Theme Through MIUI Theme Editor (for beginners)
If your device is running on Chinese firmware MIUI, You can use the built-in MIUI Theme Editor: This is the simplest method, but it has limitations: for example, you can not change system fonts or animations.
Instructions:
- Open the Themes app and go to the Theme Editor section (if not, install it). APK from the Chinese forum Xiaomi).
- Select a basic theme for modification (e.g. standard Default).
- Edit the elements: πΌοΈ Wallpaper: upload your images (resolution at least) 1080Γ2340 full HD+). π± Icons: Replace app icons (recommended size) 192Γ192 px). π¨ Colors: Change the accent color palette (affects buttons, notifications).
.mtz
β οΈ Note: Theme editor may not save the changes if you use global firmware (non-China). ROM). In this case, apply the topic through ADB:
adb shell am start -n com.android.themes/.activity.ThemePreviewActivity -d file:///sdcard/Download/your_theme.mtzπ‘
If MIUI Theme Editor is not available, try installing it APK forum XDA Developers or use an alternative β the Hex Editor application for manual editing of.mtz files.
Method 2: Manually create a theme through editing.mtz
To get a complete control of the subject, you'll have to work with the.mtz file structure manually.
Step 1 Download the basic theme
- Open the Themes app and download any free theme (like Default).
- The subject file will be saved in /sdcard/MIUI/theme/.data/ (File name: A random set of characters with the.mtz extension).
- Copy it to a computer and rename it to base_theme.mtz.
Step 2: Unpack and edit the files
- Open up. base_theme.mtz through 7-Zip and extract the contents into the folder.
- Main directories: icon/ β app icons. wallpaper/ β wallpaper. values/ β XML-color-file. drawable/ β graphical elements.
- Replace your files with your own (observe the original names and permissions!).
Step 3: Pack and set the theme
- Archive the folder back to.zip, then rename the extension to.mtz.
- Transfer the file to the device and install through: Theme App (if supported). ADB (see previous section). MT Manager (if there is a root).
How to change the system fonts in the topic?
Advanced Changes: Animations, Sounds and System Elements
If the basic changes are not enough, you can modify:
- π¬ Animations: files in drawable/anim/ (xml or.png sprites).
- π Sound: Replace files in media/audio/ (ogg.mp3).
- π± Notification panel: edit values/styles.xml (colours).
- π±οΈ Cursor and allocation: files in drawable/cursor/.
Such changes often require:
- Unlock the bootloader on the device.
- Get root rights through Magisk.
- Use it. MT Manager to replace system files in /system/.
β οΈ Warning: Incorrect modification of system files can lead to loss of warranty and locking of the device (especially on models with Anti-Rollback like Xiaomi Mi 11 or Redmi). K50). Before experimenting, check your modelβs compatibility on forums. XDA or 4PDA.
π‘
For safety, always test custom themes on a backup device or through an emulator (e.g., a customized one, MIUI Emulator on PC) before installation on the main smartphone.
Installation of a custom theme without root and ADB
If you do not have root rights or do not want to use ADB, escaping:
Method 1: Through the "Themes" appendix
- Place the.mtz file in the /sdcard/MIUI/theme/ folder.
- Open the Topics app, go to My Topics β Local.
- Choose your theme and apply it.
Method 2: Through third-party launchers
- Install a launcher with themes support (like Nova Launcher or Hyperion Launcher).
- Import icons and wallpaper from your.mtz theme manually.
- Customize colors and styles through launcher settings.
Limitation: These methods will not change system elements (notification panel, lock screen), but will allow customization of the main interface.
Typical errors and their solution
When creating and installing themes, users often face problems:
| Mistake. | Reason. | Decision |
|---|---|---|
| Subject not applicable | Incorrect.mtz structure or lack of rights | Check the folder names in the archive. ADB forced-installation |
| Icons don't change. | Disambiguation of file names with original | Compare the structure to the basic theme of Default.mtz |
| Colors do not apply | Mistakes in values/colors.xml | Check the syntax. XML (For example, the colors should be in the format #FF0000) |
| The topic disappears after the reboot | MIUI Resets uncertified themes | Set the theme through MT Manager in /data/system/theme/ |
If the theme is partially applied (for example, wallpaper changes, but not icons), check:
- π Folder structure: Compare it to the original theme.
- π€ Register of file names: MIUI case sensitive (e.g. Icon.png) β icon.png).
- π Image resolution: icons should be 192Γ192 px, wallpaper - not less 1080Γ2340 px.