Locking Mi Account on Redmi 6A is a common problem that users face after resetting or buying a used device. The system requires you to enter the username and password of the previous owner, but what if you can not contact him? One effective way to bypass is to remove Xiaomi system services responsible for linking an account. In this article, we will discuss legal and technically secure methods for removing Mi Account, Find Device and other components that block access to a smartphone.
It is important to understand that the procedure requires care. Incorrect actions can lead to a "brick" (complete inoperability) of the device or loss of warranty. We will consider options for users with root rights and without them, including the use of ADB, Fastboot and custom TWRP Recovery. Particular attention will be paid to the Redmi 6A model (code name cactus), since its firmware has specific features.
Why is Mi Account blocked on Redmi 6A and how to get around it?
The Mi Account lock mechanism is built into Xiaomi's firmware at the core level. When you reset or flash it, it checks the account status through Xiaomi servers. If the device was tied to the account and the data is not entered, the smartphone is blocked. On Redmi 6A, this is implemented through:
- π com.xiaomi.account β the main module of authorization.
- π Find Device (com.miui.analytics) β geolocation service associated with an account.
- π Mi Cloud (com.miui.cloudservice) β Data synchronization.
- π‘οΈ Anti-Rollback protection β blocks the firmware rollback to the old version.
Bypassing the lock can be done by deleting or deactivating these services. However, Xiaomi regularly updates the protection, so methods that worked in 2020-2022 may not be effective for current versions of MIUI. For example, MIUI 12+ added system integrity check (dm-verity), which complicates the modification.
β οΈ Note: Removal of system services violates Xiaomiβs license agreement, which may result in loss of functionality (such as Mi Cloud or Theme failure) and warranty cancellation.On Anti-Rollback 3 devices+ (Firmware after 2021 β high risk of permanent locking of the loader.
Preparing for the removal of services: what will be required
Before starting the procedure, make sure you have:
- π Charged smartphone (at least 70%) β interruption of the process can lead to a breeze.
- π» Windows computer 10/11 or Linux (for the ADB/Fastboot).
- π Original. USB-cable (preferably from the set).
- π₯ Xiaomi Drivers (Official Website).
- π οΈ Tools: ADB and Fastboot (Android) SDK). TWRP Recovery for Redmi 6A (version 3.5.2_9-0 Mi Flash Tool (for disaster recovery).
For Redmi 6A models with MIUI 10-12 firmware, the ADB method without root rights will work. On MIUI 13+, you will need to unlock the bootloader and install TWRP. Check the firmware version in the Settings menu β About Phone β MIUI version.
| Deleting method | Requires unlocking of the loader | TWRP is required. | Risk of a brick | Compatibility with MIUI |
|---|---|---|---|---|
| Through ADB (no root) | β No. | β No. | β οΈ Low. | 10β12.5 |
| Through TWRP (with root) | β Yes. | β Yes. | β οΈβ οΈ Medium. | Anybody. |
| Removal via Fastboot | β Yes. | β No. | β οΈβ οΈβ οΈ High-pitched | 10-14 (with reservations) |
| Patch dm-verity | β Yes. | β Yes. | β οΈβ οΈβ οΈβ οΈ critical | 12+ |
Method 1: Delete Mi Accounts via ADB (no root rights)
This is a good way to do Redmi. 6A on MIUI 10-12.5 and does not require unlocking the bootloader, the essence of the method is to disable Mi Account services through the debugging bridge. ADB recovery.
Enable Developer Mode (7 times click on MIUI version in settings)|Activate USB Debugging in Settings β Additional β For developers |Plug your phone to your PC and confirm your trusted device |Confirm the connection with adb devices command (serial number should be displayed)
-->
Steps of implementation:
- Transfer the smartphone to Fastboot mode: adb reboot bootloader Or turn off the device and press Power + Volume Reduction.
- Launch it. ADB Shell Recovery Mode: Fastboot Boot twrp-3.5.2_9-0-cactus.img (Replace the twrp-... with the current version for your model).
- V TWRP Choose Advanced β File Manager and go to the folder /data/system. Delete the files: account_db.xml account_db.xml.bak miui_analytics_db
Return to the main TWRP menu and execute the command via ADB:
adb shell
rm -rf /data/system/gesture.key
rm -rf /data/system/locksettings.db
rm -rf /data/system/locksettings.db-wal
rm -rf /data/system/locksettings.db-shmReset the device:
adb rebootAfter the reboot, the Mi Account lock should disappear. If not, try resetting through Settings β Restore and Reset.
β οΈ Attention: On some firmware MIUI 12+ After such a reset, the error "This device is locked" may appear. TWRP Continuously (not temporarily) repeat the steps.
Method 2: Completely remove services via TWRP (root rights)
If the previous method didnβt work or you have MIUI 13+, youβll need to unlock the bootloader and install TWRP.
- π Unlocking the bootloader erases all data.
- π‘οΈ Anti-Rollback breach could lead to bric.
- π Requires a backup of persist and nvram.
Step-by-step:
- Unlock the bootloader via Mi Unlock Tool (the official Xiaomi tool). To do this: Link the device to Mi Account in Settings β Additional β For developers β Mi Unlock status. Wait 72β168 hours (depending on Xiaomi policy). Launch Mi Unlock Tool on your PC and follow the instructions.
Install TWRP for Redmi 6A:
fastboot flash recovery twrp-3.5.2_9-0-cactus.img
fastboot boot twrp-3.5.2_9-0-cactus.imgIn TWRP, make a backup of the persist, nvram, modem partitions (in the Backup menu).
Delete the Mi Account system services through ADB Shell:
adb shell
mount /system
rm -rf /system/priv-app/MiAccount
rm -rf /system/priv-app/FindDevice
rm -rf /system/priv-app/MiCloudService
rm -rf /system/app/Analytics
umount /systemSweep the patch to disable dm-verity (required for MIUI 12+):
adb push disable_dm-verity_forceencrypt.zip /sdcard/
adb shell twrp install /sdcard/disable_dm-verity_forceencrypt.zipCritically, after deleting services, do not update the firmware through OTA. This will return deleted files and restore the lock.
π‘
If the phone does not boot after deleting services, try flashing clean firmware through the Mi Flash Tool in clean all mode. MIUI, appropriate to your region (for example, cactus_global_images_... global version).
Method 3: Bypassing locks via Fastboot (for power users)
This method is suitable if the TWRP is not installed or the device is not booting.It is based on modifying the userdata partition via Fastboot, but requires strict adherence to the commands.
Warning: Mistakes will result in loss of IMEI or inoperability of the communication module!
For Redmi 6A models with Anti-Rollback 3+ (firmware after 2021), self-unlocking is almost impossible without specialized equipment.
What is Anti-Rollback and why does it block the device?
FAQ: Frequent questions about unlocking Mi Account on Redmi 6A
Can I delete my Mi Account without a computer?
Why is the mobile network not working after the service is removed?
How to check if Mi Account services have been deleted?
Can I update my firmware after deleting my Mi Account?
Is it legal to delete your Mi Account?
π‘
On the Redmi 6A with MIUI 13+ and Anti-Rollback 3+, self-unlocking Mi Account without specialized hardware is almost impossible.