Xiaomi Secret Codes & USSD Dial Codes (2026)

MIUI / HyperOS engineering codes

Xiaomi secret codes cover both MIUI and the newer HyperOS builds, and the ecosystem is unusually generous with engineering access. The central entry point is the CIT hardware test suite, which walks through the display, touch panel, speakers, receiver, microphones, vibration motor, proximity and light sensors, gyroscope, cameras, Wi-Fi, Bluetooth and fingerprint reader in sequence, marking each subsystem pass or fail.

Alongside CIT, Xiaomi keeps standard Android diagnostic strings for battery and usage statistics, plus firmware and hardware version screens that tell you the exact ROM channel your device is running. That is useful before an update, a region switch or a bootloader unlock request, because Xiaomi's global, EEA, Indian and Chinese builds behave differently.

One warning specific to Xiaomi: several engineering menus on older MIUI versions expose write operations for the modem and calibration data. Reading values is harmless, but committing changes in those screens can degrade cellular performance in a way that only a full flash will repair. Stick to the codes marked safe on this page unless you are following manufacturer service documentation.

Checking a used Xiaomi handset? Run its IMEI through our free IMEI checker — dial *#06# to reveal the 15-digit number.

Full Xiaomi secret code list (43 codes)

Every code below is documented from public device and service documentation. None of these codes erase user data, but always read the risk column first.

Xiaomi secret codes with description, category and risk level
CodeWhat it doesCategoryRisk level
Testing & Usage Menu. Phone info, battery and usage statistics.diagnosticsSafe — read only
IMEI Number. Displays the device IMEI / MEID.infoSafe — read only
Build & Version Info. Shows PDA, CSC and build-time information.infoSafe — read only
Service Info. Displays service info including SIM and RF details on Xiaomi devices.infoSafe — read only
Engineering Menu. Opens the deep engineering menu (some regions) for background debugging.diagnosticCaution — changes settings
Hardware Test (CIT). Opens Xiaomi's full component test suite (screen, sensors, camera, speaker).hardware-testSafe — read only
Hardware Test (legacy). Older hardware test menu on some MIUI versions.hardware-testSafe — read only
Bug Report / Dumpstate. Generates a diagnostic bug report (dumpstate/logcat) on supported builds.diagnosticsSafe — read only
Touchscreen Test. Tests touch response across the display.hardware-testSafe — read only
Hardware Test (alt). Alternative component test menu on some MIUI/HyperOS builds.Community-reported · unverifiedhardware-testSafe — read only
Call Forwarding Status. Shows whether all-call forwarding is active and to which number.networkSafe — read only
Call Waiting Status. Shows whether call waiting is currently enabled.networkSafe — read only
Forwarding When Unanswered. Shows the number that receives calls you don't answer.networkSafe — read only
Forwarding When Unreachable. Shows where calls go when your phone is off or has no signal.networkSafe — read only
Forwarding When Busy. Shows the number that receives calls while you're on another call.networkSafe — read only
Cancel All Forwarding. Turns off every type of call forwarding on the line.networkCaution — changes settings
Caller ID Status. Shows whether your number is hidden or shown on outgoing calls.networkSafe — read only
Factory Data Reset (partial). Clears app data, downloaded apps and accounts. Keeps system apps. Back up first.resetCaution — changes settings
Wi-Fi MAC Address. Displays the device's Wi-Fi MAC address.infoSafe — read only
GPS Test. Runs a quick GPS test to verify satellite lock and location performance.diagnosticsSafe — read only
Wireless LAN Test. Opens the Wi-Fi / wireless LAN test screen.hardware-testSafe — read only
Vibration & Backlight Test. Runs a test cycle for the vibration motor and screen backlight.hardware-testSafe — read only
LCD Display Test. Opens the screen test suite (colors, dead pixels, touch).hardware-testSafe — read only
Proximity Sensor Test. Verifies the proximity sensor used to blank the screen during calls.hardware-testSafe — read only
Audio / Melody Test. Runs a speaker and audio playback test.hardware-testSafe — read only
Bluetooth Test. Opens the Bluetooth hardware test screen.hardware-testSafe — read only
Camera Information. Shows camera firmware details. Avoid the firmware-update option unless you know what you're doing.diagnosticsCaution — changes settings
Field Test (GSM). Runs a GSM field/signal test.diagnosticsSafe — read only
Service Mode. Opens the service/test mode menu on many devices. Advanced — for diagnostics only.diagnosticsCaution — changes settings
Call Barring Status. Shows whether outgoing/incoming call barring is switched on.networkSafe — read only
Enable Call Waiting. Turns on call waiting so a second caller can reach you mid-call.networkCaution — changes settings
Disable Call Waiting. Turns off call waiting.networkCaution — changes settings
Touchscreen Firmware Version. Displays the touchscreen controller firmware version.hardware-testSafe — read only
RAM Version. Shows the device RAM type/version.infoSafe — read only
Packet Loopback Test. Runs an audio/packet loopback hardware test.hardware-testSafe — read only
Melody / Audio Test. Plays a test melody to check the speaker.hardware-testSafe — read only
Bluetooth Address. Displays the device's Bluetooth MAC address.infoSafe — read only
Advanced GPS Test. Opens a detailed GPS/location diagnostics screen.diagnosticsSafe — read only
PDA / Phone / RF Info. Shows PDA, phone, hardware and RF firmware version details.infoSafe — read only
Power-Button Behaviour. Changes what the power button does on long-press (end call vs menu). Changes a setting.diagnosticsCaution — changes settings
Backup Media Files. Opens a file-copy screen to back up media (photos, videos, audio).diagnosticsCaution — changes settings
MediaTek Engineer Mode. Opens the engineer menu on MediaTek (MTK) chipset phones. Advanced — changing values can affect radios.diagnosticsCaution — changes settings
Google Talk Service Monitor. Legacy GTalk service monitor screen (older Android).Community-reported · unverifieddiagnosticsSafe — read only

How to use Xiaomi codes

  1. Open the Xiaomi dialer and go to the keypad, exactly as if you were dialling a number.
  2. Type the code precisely as shown, including the leading * and the trailing #. Autocorrect and paste can drop characters, so type it out.
  3. Most sequences fire the moment the final character is entered — you usually do not press call.
  4. If the screen does not change, press the call button once; a few USSD strings need it.
  5. Back up photos, messages and app data before running anything marked destructive, then confirm you are on the right device.
  6. Nothing at all happening usually means the code is disabled on your firmware or blocked by your carrier — it is not a fault with your handset.

Xiaomi secret codes — FAQ

آیا همه گوشی‌های Xiaomi از کدهای مخفی یکسان پشتیبانی می‌کنند؟

خیر. پشتیبانی از کدها به مدل، نسخه میان‌افزار و در بسیاری از موارد به اپراتوری که گوشی را عرضه کرده بستگی دارد. مدل‌های قدیمی‌تر Xiaomi اغلب منوهای خدماتی بیشتری نسبت به جدیدترین مدل‌ها در دسترس می‌گذارند، زیرا سازندگان به‌تدریج دسترسی به ابزارهای مهندسی را به برنامه‌های عیب‌یابی دارای امضای دیجیتال محدود می‌کنند. اگر کدی هیچ کاری نمی‌کند، تقریباً به‌طور قطع در نسخه نرم‌افزاری شما حذف یا غیرفعال شده است، نه اینکه اشتباه تایپ شده باشد.

آیا شماره‌گیری کدهای مخفی Xiaomi امن است؟

کدهایی که با برچسب «ایمن» مشخص می‌کنیم فقط اطلاعات را نمایش می‌دهند یا منوی آزمون فقط‌خواندنی را باز می‌کنند، بنابراین نمی‌توانند به گوشی شما آسیب بزنند. کدهای دارای برچسب «احتیاط» تنظیمی را تغییر می‌دهند یا فرایند سخت‌افزاری‌ای را آغاز می‌کنند که باید ابتدا آن را بشناسید، و کدهای دارای برچسب «مخرب» داده‌های کاربر را فوراً و بدون پنجره تأیید پاک می‌کنند. همیشه پیش از اجرای هر مورد از دسته مخرب، نسخه پشتیبان تهیه کنید.

چرا وقتی کدی را وارد می‌کنم هیچ اتفاقی نمی‌افتد؟

سه دلیل رایج وجود دارد: کد در میان‌افزار شما پشتیبانی نمی‌شود، اپراتور شبکه رشته USSD را مسدود کرده است، یا شماره‌گیر برای آن توالی خاص نیاز دارد دکمه تماس را بزنید. کد را با سیم‌کارتی دیگر یا در حالت هواپیما امتحان کنید و تک‌تک نویسه‌ها، از جمله ستاره آغازین و علامت مربع پایانی را بررسی کنید.

آیا استفاده از این کدها گارانتی Xiaomi من را باطل می‌کند؟

صرفاً خواندن اطلاعات عیب‌یابی گارانتی را باطل نمی‌کند. بااین‌حال، تغییر تنظیمات باند رادیویی، اجرای عملیات نوشتن در منوی مهندسی یا انجام فرمت کارخانه‌ای می‌تواند دستگاه را در وضعیتی قرار دهد که مرکز خدمات آن را ناشی از اقدام کاربر بداند. فقط از کدهای فقط‌خواندنی استفاده کنید، مگر اینکه راهنمای رسمی تعمیر را دنبال می‌کنید.

آیا این کدها می‌توانند قفل شبکه گوشی Xiaomi را باز کنند؟

خیر. رفع قفل شبکه به کد رفع قفل صادرشده توسط اپراتور یا درخواست رسمی رفع قفل از طریق اپراتورتان نیاز دارد. هر سایتی که وعده یک کد شماره‌گیری رایگان و همگانی برای رفع قفل می‌دهد، شما را گمراه می‌کند. کدهای فهرست‌شده در اینجا فقط عیب‌یابی، وضعیت شبکه، اطلاعات میان‌افزار و فرایندهای بازنشانی کارخانه را در دسترس قرار می‌دهند.

چگونه IMEI خود را در دستگاه Xiaomi پیدا کنم؟

روی هر گوشی GSM یا LTE، از جمله تمام مدل‌های Xiaomi، *#06# را شماره‌گیری کنید تا IMEI فوراً ظاهر شود. همچنین می‌توانید شماره را با ابزار بررسی IMEI ما اعتبارسنجی کنید که مجموع کنترلی لون مورد استفاده GSMA را برای تشخیص شماره‌های IMEI اشتباه‌تایپ‌شده یا ساختگی اجرا می‌کند.

راهنماهای عیب‌یابی Xiaomi

همه راهنماهای Xiaomi ←