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.
| Code | What it does | Category | Risk level |
|---|---|---|---|
| Testing & Usage Menu. Phone info, battery and usage statistics. | diagnostics | Safe — read only | |
| IMEI Number. Displays the device IMEI / MEID. | info | Safe — read only | |
| Build & Version Info. Shows PDA, CSC and build-time information. | info | Safe — read only | |
| Service Info. Displays service info including SIM and RF details on Xiaomi devices. | info | Safe — read only | |
| Engineering Menu. Opens the deep engineering menu (some regions) for background debugging. | diagnostic | Caution — changes settings | |
| Hardware Test (CIT). Opens Xiaomi's full component test suite (screen, sensors, camera, speaker). | hardware-test | Safe — read only | |
| Hardware Test (legacy). Older hardware test menu on some MIUI versions. | hardware-test | Safe — read only | |
| Bug Report / Dumpstate. Generates a diagnostic bug report (dumpstate/logcat) on supported builds. | diagnostics | Safe — read only | |
| Touchscreen Test. Tests touch response across the display. | hardware-test | Safe — read only | |
| Hardware Test (alt). Alternative component test menu on some MIUI/HyperOS builds.Community-reported · unverified | hardware-test | Safe — read only | |
| Call Forwarding Status. Shows whether all-call forwarding is active and to which number. | network | Safe — read only | |
| Call Waiting Status. Shows whether call waiting is currently enabled. | network | Safe — read only | |
| Forwarding When Unanswered. Shows the number that receives calls you don't answer. | network | Safe — read only | |
| Forwarding When Unreachable. Shows where calls go when your phone is off or has no signal. | network | Safe — read only | |
| Forwarding When Busy. Shows the number that receives calls while you're on another call. | network | Safe — read only | |
| Cancel All Forwarding. Turns off every type of call forwarding on the line. | network | Caution — changes settings | |
| Caller ID Status. Shows whether your number is hidden or shown on outgoing calls. | network | Safe — read only | |
| Factory Data Reset (partial). Clears app data, downloaded apps and accounts. Keeps system apps. Back up first. | reset | Caution — changes settings | |
| Wi-Fi MAC Address. Displays the device's Wi-Fi MAC address. | info | Safe — read only | |
| GPS Test. Runs a quick GPS test to verify satellite lock and location performance. | diagnostics | Safe — read only | |
| Wireless LAN Test. Opens the Wi-Fi / wireless LAN test screen. | hardware-test | Safe — read only | |
| Vibration & Backlight Test. Runs a test cycle for the vibration motor and screen backlight. | hardware-test | Safe — read only | |
| LCD Display Test. Opens the screen test suite (colors, dead pixels, touch). | hardware-test | Safe — read only | |
| Proximity Sensor Test. Verifies the proximity sensor used to blank the screen during calls. | hardware-test | Safe — read only | |
| Audio / Melody Test. Runs a speaker and audio playback test. | hardware-test | Safe — read only | |
| Bluetooth Test. Opens the Bluetooth hardware test screen. | hardware-test | Safe — read only | |
| Camera Information. Shows camera firmware details. Avoid the firmware-update option unless you know what you're doing. | diagnostics | Caution — changes settings | |
| Field Test (GSM). Runs a GSM field/signal test. | diagnostics | Safe — read only | |
| Service Mode. Opens the service/test mode menu on many devices. Advanced — for diagnostics only. | diagnostics | Caution — changes settings | |
| Call Barring Status. Shows whether outgoing/incoming call barring is switched on. | network | Safe — read only | |
| Enable Call Waiting. Turns on call waiting so a second caller can reach you mid-call. | network | Caution — changes settings | |
| Disable Call Waiting. Turns off call waiting. | network | Caution — changes settings | |
| Touchscreen Firmware Version. Displays the touchscreen controller firmware version. | hardware-test | Safe — read only | |
| RAM Version. Shows the device RAM type/version. | info | Safe — read only | |
| Packet Loopback Test. Runs an audio/packet loopback hardware test. | hardware-test | Safe — read only | |
| Melody / Audio Test. Plays a test melody to check the speaker. | hardware-test | Safe — read only | |
| Bluetooth Address. Displays the device's Bluetooth MAC address. | info | Safe — read only | |
| Advanced GPS Test. Opens a detailed GPS/location diagnostics screen. | diagnostics | Safe — read only | |
| PDA / Phone / RF Info. Shows PDA, phone, hardware and RF firmware version details. | info | Safe — read only | |
| Power-Button Behaviour. Changes what the power button does on long-press (end call vs menu). Changes a setting. | diagnostics | Caution — changes settings | |
| Backup Media Files. Opens a file-copy screen to back up media (photos, videos, audio). | diagnostics | Caution — changes settings | |
| MediaTek Engineer Mode. Opens the engineer menu on MediaTek (MTK) chipset phones. Advanced — changing values can affect radios. | diagnostics | Caution — changes settings | |
| Google Talk Service Monitor. Legacy GTalk service monitor screen (older Android).Community-reported · unverified | diagnostics | Safe — read only |
How to use Xiaomi codes
- Open the Xiaomi dialer and go to the keypad, exactly as if you were dialling a number.
- Type the code precisely as shown, including the leading
*and the trailing#. Autocorrect and paste can drop characters, so type it out. - Most sequences fire the moment the final character is entered — you usually do not press call.
- If the screen does not change, press the call button once; a few USSD strings need it.
- Back up photos, messages and app data before running anything marked destructive, then confirm you are on the right device.
- 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 سلسلہ بلاک کر دیا ہے، یا اس مخصوص سلسلے کے لیے ڈائلر میں کال کا بٹن دبانا ضروری ہے۔ کوڈ کو کسی دوسری SIM کے ساتھ یا ہوائی جہاز کے موڈ میں آزمائیں، اور ہر علامت کی تصدیق کریں، بشمول شروع کے ستارے اور آخر کے ہیش کے نشان کے۔
کیا ان کوڈز کے استعمال سے میری Xiaomi وارنٹی ختم ہو جائے گی؟
صرف تشخیصی معلومات پڑھنے سے وارنٹی ختم نہیں ہوتی۔ تاہم، ریڈیو بینڈ کی ترتیبات بدلنے، انجینئرنگ مینو میں ڈیٹا لکھنے والی کارروائیاں چلانے یا فیکٹری فارمیٹ کرنے سے آپ کا آلہ ایسی حالت میں آ سکتا ہے جسے سروس سینٹر صارف کی پیدا کردہ خرابی سمجھے۔ جب تک آپ مرمت کی سرکاری ہدایات پر عمل نہ کر رہے ہوں، صرف معلومات پڑھنے والے کوڈز تک محدود رہیں۔
کیا یہ کوڈز نیٹ ورک پر مقفل Xiaomi فون کا لاک کھول سکتے ہیں؟
نہیں۔ نیٹ ورک کا لاک کھولنے کے لیے موبائل کمپنی کا جاری کردہ اَن لاک کوڈ یا اپنے آپریٹر کے ذریعے لاک کھولنے کی باضابطہ درخواست درکار ہوتی ہے۔ کوئی بھی سائٹ جو مفت، ہر فون پر کام کرنے والے اَن لاک ڈائل کوڈ کا وعدہ کرے، آپ کو گمراہ کر رہی ہے۔ یہاں درج کوڈز صرف تشخیصی معلومات، نیٹ ورک کی کیفیت، فرم ویئر کی معلومات اور فیکٹری ری سیٹ کی کارروائیوں تک رسائی دیتے ہیں۔
میں Xiaomi آلے پر اپنا IMEI کیسے تلاش کروں؟
Xiaomi کے ہر ماڈل سمیت کسی بھی GSM یا LTE فون پر *#06# ڈائل کریں، IMEI فوراً ظاہر ہو جائے گا۔ آپ ہمارے IMEI جانچنے والے ٹول سے بھی نمبر کی درستی جانچ سکتے ہیں، جو Luhn چیک سم استعمال کرتا ہے۔ GSMA بھی غلط ٹائپ کیے گئے یا من گھڑت IMEI نمبروں کی شناخت کے لیے یہی طریقہ استعمال کرتا ہے۔
Xiaomi کے مسائل حل کرنے کے رہنما مضامین
- Xiaomi Overheating — Causes & Fixes (2026)
- Xiaomi Battery Draining Fast — Causes & Fixes (2026)
- Xiaomi Charging Slowly — Causes & Fixes (2026)
- Xiaomi Touchscreen Not Working — Causes & Fixes (2026)
- Xiaomi Screen Not Working — Causes & Fixes (2026)
- Xiaomi Wi-Fi Not Connecting — Causes & Fixes (2026)
