Xiaomi Account ID is a unique digital code that is tied to your profile in the brand ecosystem, and it is not only used to log in to Mi Cloud services, but also to unlock the device after a reset, restore access to a smart home or confirm ownership when selling a gadget, the problem is that this ID does not appear in your personal account on the site β it has to be βpulledβ through hidden menus, system files or special commands.
In this article, we will discuss 5 working ways to find Mi Account ID, from simple (via smartphone settings) to complex (using ADB or engineering menus). Separately, we will focus on the nuances for locked devices where standard methods do not work. All instructions are relevant for MIUI 14/15 and devices from 2020-2026 release, including Xiaomi 13/14 series, Redmi Note 12/13 and POCO F5/X5.
1. How to find out Mi Account ID through smartphone settings
The most obvious way is to look at the ID in the account menu, which works if the device is unlocked and you have access to the basic settings, and important: some firmware may have hidden the item, so move on to the next method.
Instructions:
- π± Open the Settings app (cog icon).
- π€ Go to the Accounts section β Mi Account.
- π Scroll down to the Account Management block β there may be a line ID Account (or Mi Account) ID).
- π If you donβt have a line, tap on the profile avatar β sometimes ID map.
On MIUI 15, the path may be different: Settings β Xiaomi Passport β Account Information. If you donβt see the ID, then your firmware version doesnβt show it β use alternative methods.
π‘
On some devices (e.g. Redmi 10C), the account ID is only displayed after clicking on the "Email" line in your profile. Try tapping the email address 3-4 times in a row.
2. Search ID file-wise mi_account.json
All Xiaomi account data is stored in a system file mi_account.json. It can be opened through any root file manager or standard Explorer application if debugging mode is enabled.
How to find the file:
- Open Explorer (or install Root Explorer if you need root access).
- Cross the path: /data/system/users/0/accounts.db Or alternatively: /data/data/com.xiaomi.account/package_name/shared_prefs/mi_account.json
- Open the file through a text editor (e.g. QuickEdit).
- Find the βuserIdβ line: the numbers after it are your Mi Account ID.
If the file is not on the specified path, try searching through the built-in Explorer search on request. mi_account. On some devices, the file may be called account_info.xml.
What to do if the file is not opened?
3.Use ADB to obtain Mi Account ID
If standard methods donβt work, you can extract the ID via Android Debug Bridge (ADB), which requires a computer, but works even on locked devices (if USB debugging is enabled).
Step-by-step:
- π₯οΈ Install. ADB Tools on PC.
- π± Connect your smartphone to your computer and allow debugging (pop-up window on your phone).
- π Open the command line (Windows) or the terminal (macOS/Linux) file ADB.
- Enter the command: adb shell dumpsys account | find "MiAccount" For macOS/Linux: adb shell dumpsys account | grep "MiAccount"
- π In the conclusion, find the line id= β That's your Mi Account. ID.
If the team is not working, try an alternative request:
adb shell content query --uri content://com.xiaomi.account.provider.account/accounts4. Retrieval of ID through the engineering menu (for advanced)
On some Xiaomi devices, you can find your account ID in the Engineering Mode, a method that is risky because wrong actions can cause your system to crash, and only use it if other methods have failed.
Instructions:
- Open the Phone app and enter the code: ##4636## or alternatively: ##36446337####
- Select Engineer Mode (MTK) or Engineering Menu.
- Go to the Account or Mi Cloud section.
- Find the User ID or Account ID string, which is the identifier you are looking for.
β οΈ Note: On Qualcomm Snapdragon devices, the engineering menu may not contain account information, and do not change other options in this menu, which may result in a loss of warranty or breakdown.
Make a backup copy of the data
Charge your phone at least 50%
Make sure that USB debugging is enabled
Do not touch other menu items other than Account-->
5. How to find Mi Account ID on a locked device
If the smartphone is locked after being reset (Mi Cloud Lock), the standard methods will not work.
- Recovery Mode (if custom recovery is installed as a TWRP): π Enter Restore Mode (Press Power) + Volume Up). π Choose Mount β System. π Through File Manager in TWRP find the file /data/system/accounts.db. π Copy it to your computer and open it with SQLite Browser β ID will be in the account table.
Through the official service of Xiaomi
- π§ Write in support of Mi Account with the topic "Restore access".
- π Attach a purchase check or box with IMEI device.
- β³ Expect a response (usually 3-7 days) β your Mi Account will be sent in the email. ID.
β οΈ Note: Do not use third-party services that promise to "hack" Mi Account ID Xiaomi actively blocks such accounts, and you risk losing access to the device forever.The only legal way is to seek support with proof of purchase.
Comparison of methods: which one to choose?
Not all methods are equally effective. In the table below, you can compare speed, complexity and requirements.
| Method | Speed. | Difficulty | Requirements | Is it working on a locked device? |
|---|---|---|---|---|
| Through settings | β‘ Instantly. | β Very simple. | Unlocked phone | β No. |
| File. mi_account.json | β³ 2-5 minutes | ββ Middle-Average | Conductor with root or debugging | β No. |
| ADB | β³ 5-10 minutes | βββ Hardly. | Computer, USB-cable | β Yes (if debugging is on) |
| Engineering menu | β‘ Instantly. | ββββ Very difficult. | Knowledge of codes, risk of failure | β No. |
| Appeal of support | β³β³ 3-7 days | β Easy. | Purchase check or box | β Yes. |
If your device is locked after a reset and USB debugging has been enabled before locking, use ADB. Otherwise, the only legal way is to contact Xiaomi with proof of purchase.
Frequent Mistakes and How to Avoid Them
When searching for Mi Account ID, users often encounter typical problems, and here are the most common ones and ways to solve them:
- π The device is not determined by ADB: Check if Xiaomi drivers are installed USB Drivers on PC, try another one. USB-cable (preferably original). Enable Debugging on the phone settings USB (security).
- π File. mi_account.json Absent: Some firmware may call the file differently (e.g, account_data.xml). Search system folders through Root Explorer with superuser rights.
- π Engineering menu not open: On new devices (Xiaomi) 13/14, Redmi Note 12) The engineering menu codes can be disabled ##6484## or ##64663##.
- π§ Xiaomi support does not respond: Write in English, attach a photo of the box with the help of the phone IMEI If the email is ignored, try using Xiaomi's Twitter or Mi Community forum.
π‘
If you bought the device with your hands, and the previous owner did not untie the account, you can restore access only through Xiaomi support with proof of ownership transfer (purchase agreement).