If you are faced with the need to find MSA-Mi Service Auth on Xiaomi Redmi, most likely, you need to unlock the bootloader, flash the device through Mi Flash or restore access to your Mi Account. This unique identifier is tied to the phoneβs hardware and required to log into Xiaomiβs service tools. Without it, many firmware or recovery operations are simply impossible.
The problem is that Xiaomi doesnβt make MSA prominent in the interface β it canβt be found in standard settings like IMEI or serial number. Moreover, with the release of new versions of MIUI (especially after MIUI 12), the ways of getting code changed, and the old instructions stopped working. In this article, we will discuss 5 current methods, including hidden commands, ADB and third-party utilities that are guaranteed to work on the Redmi Note 10/11/12, Redmi 9/10/13C and other models from 2020-2026.
Before you start, consider: some methods require debugging permission over USB or root permission. If your phone is locked (for example, after being reset via Fastboot), try ways without connecting to a PC first.
What is MSA on Xiaomi and why is it necessary?
MSA (Mi Service Auth) is a hardware identifier that Xiaomi uses to authorize service operations. It's essentially an analogue of IMEI, but for the company's internal systems. The code is generated during the manufacturing phase and is tied to the device's motherboard.
MSA is required in the following cases:
- π Unlock the bootloader through the official Mi Unlock Tool - without MSA The program will not allow you to link the account to the device.
- π± Restore access to Mi Account if phone is locked after reset or theft.
- π§ Fastboot firmware (e.g. Mi Flash utility) β some software versions request MSA to confirm the legality of the operation.
- π οΈ Service repair β Xiaomi authorized centers may request a code for diagnostics.
The difference between MSA and other identifiers (IMEI, serial number, Android ID): it does not change when you reset, flash or replace the battery, but if you replace the motherboard, the code will be updated.
β οΈ Attention: Don't confuse MSA Mi Account Token (used to bypass locks via Mi Cloud) or Auth Key (needed to firmware through Mi Cloud) EDL). These codes are obtained in different ways!
Method 1: Getting MSA through the Engineering Menu (code ##)
The easiest method that works on most Redmi models (including the Redmi Note 8/9/10/11/12 and Redmi 13C) is to use a hidden engineering menu.It doesn't require PC connection or root rights, but it may not work on some MIUI 14+ firmware.
Instructions:
- Open the phone (calling) application.
- Enter the combination: ##4636## or #36446337## (for new models).
- In the menu that appears, select Phone Information (or Phone Information).
- Scroll down to the MSA or Mi Service Auth block, and there will be a string with a 16-digit code.
If the menu doesnβt open or the MSA isnβt listed, try the alternative code: ##6484## (powered by Redmi Note 10 Pro and Redmi K40).
What to do if the engineering menu is not opened?
Method 2: Extract MSA through ADB (without root)
If the engineering menu doesn't work, you can get an MSA via ADB (Android Debug Bridge), which is universal and works on all versions of MIUI, but requires a computer and enabled USB debugging.
Step-by-step:
- Activate Developer Mode: Go to Settings β About Phone and click on MIUI Version 7 times.
- Return to Settings β Additional β For developers and enable USB debugging.
- Connect the phone to the PC, confirm the debugging permission.
- Download ADB Tools and unpack it into a folder.
- Open the command line (cmd) in this folder and type: adb shell getprop ro.boot.msa Or alternative command: adb shell cat /proc/msa_info
If the teams return an empty result, try:
- π Reboot the phone and reconnect.
- π± Use the other USB-cable (preferably original).
- π₯οΈ Update the drivers ADB on PC (through SDK Platform Tools).
β οΈ Note: Some Redmi models (e.g. Redmi Note) 12 Pro+) access /proc/msa_info In this case, move on to the method. 3.
βοΈ Preparation for extraction MSA through ADB
Method 3: Use of Mi Account Unlock Tool
If previous methods didnβt work, you can use third-party utilities, one of the most reliable is the Mi Account Unlock Tool (not to be confused with the official Mi Unlock!). The app reads MSA directly from system files, but requires permission to install from unknown sources.
How to use:
- Download. APK-file XDA Developers (check reviews!).
- Install the application by allowing installation from unknown sources (Settings β Applications β Special Access).
- Open the tool and press Get MSA Code.
- Wait for the scan (it can take up to 30 seconds) and the code will be displayed in the MSA field.
Advantages of the method:
- β It works without a PC and ADB.
- β Supports new models (Redmi) 13C, Redmi Note 12 Turbo).
- β Shows additional information (IMEI, serial number, loader status).
Risks:
- β οΈ Possibility of installing malware (download only from verified sources!).
- β οΈ On some firmware MIUI 14+ The app may not see MSA security constraints.
π‘
Before installing an APK, check the hash file on VirusTotal. If you suspect a virus, do not install it!
Method 4: Extract MSA from nvram file (for advanced)
This is a method that works if you have root access or TWRP. MSA is stored in the nvram section, and it can be manually extracted. It's more complicated than the previous ones, but it works on 100% of devices.
Instructions:
- Install Root Explorer or any file manager with access to root folders.
- Follow the path: /data/nvram/APCFG/APRDEB/MSA.
- Open the msa.dat file or msa_info text-edit.
- Find the MSA= string, and then it will be a 16-digit code.
Alternative (via ADB root):
adb shell
su
cat /data/nvram/APCFG/APRDEB/MSA/msa_infoIf there is no nvram folder, try the path: /persist/msa/msa.dat (relevant to Redmi K50 and POCO F4).
β οΈ Note: Do not edit or delete files in /nvram β This can lead to loss. IMEI brick-device!
Method 5: Calling for Xiaomi Support (Official Way)
If none of the methods worked (for example, a phone in a hard brick state), you can request MSA from official support Xiaomi.
How to make a request:
- Go to the Mi Account website and log in.
- Select Support β Call support.
- Enter the subject line: "Device Access Lost" or "MSA Needed to Unlock".
- Attach a photo of the box (with the serial number) and the purchase check (if any).
- Wait for a response (usually 1-3 days) and the code will be sent to the mail associated with the Mi Account.
Important:
- π Support can request proof of ownership (check, warranty card).
- β³ Some regional sites (e.g. Xiaomi India) take up to 7 days to process a request.
- π If you buy a phone with your hands, chances are you will get it. MSA officially minimal.
| Method | Difficulty | PC required | It works at MIUI 14+. | Risks. |
|---|---|---|---|---|
| Engineering menu | β (simple) | β No. | β οΈ Partially. | Low. |
| ADB | ββ (middle-of-the-road) | β Yes. | β Yes. | Medium (requires debugging) |
| Mi Account Unlock Tool | β (simple) | β No. | β Yes. | High (virus risk) |
| Nvram file | βββ (difficult) | β Yes, or root) | β Yes. | Very high (risk brick) |
| Official support | ββ (middle-of-the-road) | β No. | β Yes. | Low (long) |
Frequent Mistakes and How to Avoid Them
When searching for MSA, users often encounter typical problems, and here are the most common ways to solve them:
1.The ADB team returns "permission denied"
Reason: no root or insufficient rights. Solution:
- π§ Try the command with su: adb shell su getprop ro.boot.msa
- π± Turn it on. USB-Debugging in Charging Mode (Settings) β Additionally. β For developers β Debugging by USB (security)).
2.There is no MSA item in the engineering menu
Reason: Xiaomi has removed the code output in the new firmware.
- π Try the alternative codes: ##6484## or #36446337##.
- π² Use the method with ADB or third-party.
3 Mi Account Unlock Tool App does not show MSA
Reason: Antivirus blocking or an outdated version of the utility.
- π‘οΈ Turn off Google Play Protect (Settings) β Google β Security).
- π Download the latest version APK s XDA.
- π± Restart your phone and start the app again.
MSA-The code on Xiaomi Redmi may change after the motherboard is replaced, but it does not depend on a reset or firmware update.If you buy a phone from hand, be sure to check the match MSA with data on the box β this will help to avoid unlock problems in the future.
π‘
On newer models (Redmi Note 12, Redmi 13C), the engineering menu often does not show MSA, in which case the priority methods are ADB or official support request.