How to find the codename of Xiaomi devices: all working methods

The codename of Xiaomi devices is a unique model identifier used by the manufacturer for internal classification. Unlike a commercial name (such as the Redmi Note 12 Pro+ or POCO X5 Pro), the codename consists of a short set of characters, usually associated with mythology, animals or abbreviations (such as rubens, vili or monet), Knowledge of this name is critical for advanced users who want to install custom firmware, unlock the bootloader or find compatible software modifications.

In this article, we’ll look at 4 proven ways to learn the codename of your Xiaomi device, from standard methods through settings to using developer tools, and why a typical user might need this information and where to put it into practice. If you plan to stitch your phone, install TWRP, or search for root rights, this guide will be your starting point.

Why do I need a codename for Xiaomi devices?

At first glance, a code name may seem like an unnecessary technical detail, but it actually solves several key problems:

  • πŸ”§ Custom firmware installation: Firmware files (such as those for LineageOS or Pixel Experience) are often named by codename rather than by the model's commercial name. K20 Pro, you're at risk of getting a brick".
  • πŸ”“ Unlock bootloader: Tools like the Mi Unlock Tool can request codename to confirm device compatibility.
  • πŸ› οΈ Search for modifications and patches: Camera Mods (GCam), kernels or recovery (TWRP) They're tied to a specific codename. For example, davinci is Mi. 9T Pro, and grus - Mi 9 SE.
  • πŸ“‘ Debugging and Development: When Working with ADB Fastboot codename helps identify the device in logs and scripts.

Moreover, some Xiaomi services (such as the Mi Flash Tool) use codename to determine firmware compatibility. If you try to flash a device with a file intended for another model with the same chipset but a different code name, the process will end up with a invalid image error.

⚠️ Note: Do not confuse codename with model number (e.g., codename, M2007J3SY The model number indicates hardware revision and region, and the codename indicates the platform of the device. One codename can correspond to several model numbers (for example, joyeuse is the Redmi Note 11 Pro). 5G, and POCO X4 Pro 5G).

Method 1: Recognize codename through phone settings (without PC)

The easiest method is to use built-in MIUI tools. It does not require you to connect to a computer or install additional programs, but does not work on all versions of the firmware.

Instructions:

  1. Open the Settings app on your device.
  2. Go to the About Phone (or About Tablet) section.
  3. Find the MIUI version and tap it 7 times in a row to activate the Developer Mode.
  4. Return to the main settings menu and open a new Developer section (usually at the bottom of the list).
  5. Scroll down to the Device Information block – the Device Codename line may be displayed here.

If you don’t have a codename, try an alternative path:

  1. In Settings β†’ About the phone, find all the characteristics.
  2. Scroll to the Model block – sometimes the codename is listed next to the model number in the M2101K7AG format (alioth).

⚠️ Note: On some devices (especially with MIUI 14+) The code name may be hidden, in which case use the following methods.

Developer mode is on

The device is charged at least 50%

VPN and proxy are disabled (can block access to system data)

Backup of important data (in case of resetting settings)-->

Method 2: Used ADB-Teams (for experienced users)

If the codename doesn’t appear in the settings, it can be pulled out via Android Debug Bridge (ADB) β€” Android Debugging Tool: This method requires connecting the phone to a PC and installing it. ADB-driver.

Step-by-step:

  1. Download and install Platform Tools (includes adb.exe and fastboot.exe).
  2. Activate USB Debugging in Settings β†’ For developers.
  3. Connect your phone to your PC through USB-cable (preferably original).
  4. Open the command line (cmd) in the folder with the platform-tools and do:
adb devices

(Your device should show up with a serial number. If not, check the drivers or cable.)

adb shell getprop ro.product.device

In the answer, you will see the codename, for example:

vili

Alternative commands for verification:

adb shell getprop ro.product.name


adb shell getprop ro.product.model

If the command returns an empty line, try:

adb shell cat /system/build.prop | grep "ro.product.device"

πŸ’‘

If ADB doesn’t recognize the device, try switching USB connectivity mode to File Transfer (MTP) in the phone’s notification curtain.

Method 3: Viewing through MiFlash or Fastboot

If the phone doesn’t turn on or you prefer to work with Fastboot, codename can be learned through the MiFlash Tool or command line in bootloader mode.

Instructions for MiFlash:

  1. Download and install the MiFlash Tool (the official tool from Xiaomi).
  2. Turn off the phone and press Volume Down + Power to log into the Fastboot.
  3. Connect the device to the PC.
  4. Run MiFlash – Codename will appear in the Device field (e.g. tucana for Mi 10).

Instructions via command line:

  1. In Fastboot mode, open the cmd in the folder with the platform-tools.
  2. Follow the command:
fastboot getvar product

The answer will be in the format:

product: alioth


finished. total time: 0.001s

If the team is not working, try:

fastboot getvar all

Look for product, hw.platform or ro.boot.product.hardware.sku.

Team team.Example of responseExplanation
fastboot getvar productproduct: suryaDirect display of codename
fastboot getvar hw.platformhw.platform: msm8998The chipset platform (not codename!)
fastboot getvar ro.boot.product.hardware.skuro.boot.product.hardware.sku: 198Hardware SKU (may match codename)
What if the fastboot doesn’t recognize the device?
1. Make sure drivers are installed (use Xiaomi Driver Installer). 2. Try another one. USB-port (preferably) USB 2.0). 3. Disable the driver signature in Windows (to do this, type in the command line on behalf of the administrator: bcdedit /set nointegritychecks on, then restart the PC). 4. Use Xiaomi’s original cable – cheap cables may not support Fastboot data transfer.

Method 4: Third-party applications (without root)

If previous methods have failed, you can use Google Play apps that read system information.

  • πŸ“± DevCheck: Shows codename in the Hardware section β†’ Model (e.g. Model: M2007J20CG (curtana)).
  • πŸ” CPU-Z: Device tab β†’ Model (sometimes codename is listed in parentheses).
  • πŸ› οΈ AIDA64: Section System β†’ The device β†’ Model.
  • πŸ“Š MIUI Hidden Settings: Specialized app for Xiaomi, shows codename in Device Info section.

An example of display in DevCheck:

Note that some apps may not show a codename but a model number.

  • Codename is a short word (e.g., cezanne, venus).
  • Model number: A set of numbers and letters (e.g., M2007J3SC).

Through phone settings

ADB-team

MiFlash/Fastboot

Third-party annexes

Another way.-->

Where to find a codename list for Xiaomi devices?

If you want to know your model’s codename in advance (for example, before buying or firmware), use official and unofficial sources:

  1. Xiaomi official website: Go to the support page for your model (e.g. mi.com/support). The Specifications section sometimes indicates codename (rarely, but encountered).

Important: Codename can differ for global (Global), Chinese (China) and Indian (India) versions of the same model, for example, the Redmi Note 10 Pro in the global version is sweet, and in the Indian version is sweetin.

Xiaomi modelCodename (Global)Codename (China)Note
Redmi Note 11 Pro+ 5GveuxpissarroDifferent Chipsets (Snapdragon vs Dimensity)
POCO X3 ProvayuvayuThe same for all regions
Mi 11 UltrastarstarThe exception is the universal codename.

Frequent Mistakes and How to Avoid Them

When defining a codename, users often face the following problems:

  • πŸ”„ Confuse codename with model number: For example, M2007J20CG β€” The Redmi Note 9 Pro is the model number and its codename is joyeuse.
  • 🌍 Ignoring regional differences: China's version of Mi 10 β€” umi, and global β€” umi_eea. The firmware from one version will not fit another!
  • πŸ”§ Not updated. ADB-Drivers: Outdated drivers can lead to error no devices/emulators found out in the execution ADB-team.
  • πŸ“± Do not activate developer mode: Without this, many system data (including codename) will be hidden.

⚠️ Note: If you plan to flash the device, double-check the codename before downloading the firmware. An error can lead to a "brick" (inoperability) of the phone. K20 Pro) not compatible with raphaelin (Indian version of the same model).

πŸ’‘

Always check the codename with official sources before firmware (for example, the compatibility table on the XDA forum).

Can I find the codename without turning on the phone?
Yes, if the device loads into Fastboot mode. Use the command fastboot getvar product (see Method 3). If the phone does not fully respond, the codename can be found by the model number on the box or in the check, then check with the database (for example, on XDA).
Why do you need a codename if you have a model number?
The model number indicates hardware revision and region, and the codename indicates the device platform. For example, the Redmi Note 10 Pro (Global) and Redmi Note 10 Pro Max (India) have different model numbers, but the same codename is sweet, which is important for firmware and modification compatibility.
Can the codename change after the firmware update?
No, the codename is assigned to the device at the manufacturing stage and does not change. MIUI China MIUI Global) may be added a suffix (e.g. umi) β†’ umi_eea).
Where else would you need to know codename?
In addition to firmware, codename is used for: Custom Recovery Installation (TWRP), Modified Core Recovery (e.g., CPU overclocking), Magisk Module Settings (some only work with certain codenames), and Beta Firmware (Xiaomi sometimes requests codename to register).
What if none of the methods worked?
If the codename is not defined: Check if it is hidden by the manufacturer (for example, on some HyperOS devices). Contact the 4PDA or XDA forum - there are themes that analyze specific models. Use service codes (for example, ##4636##), but they do not work on all devices. In extreme cases, you can take the phone apart and look up the code name on the battery sticker (for example, RBGxxxxx is rubens for the Redmi Note 12 Pro+).