Remove Mi Services on Redmi 6A: Unlock Mi Account without losing data

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.

πŸ“Š What version? MIUI installed on your Redmi 6A?
MIUI 10 or older
MIUI 11
MIUI 12
MIUI 13 or newer
I don't know.
Deleting methodRequires unlocking of the loaderTWRP is required.Risk of a brickCompatibility 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-pitched10-14 (with reservations)
Patch dm-verityβœ… Yes.βœ… Yes.⚠️⚠️⚠️⚠️ critical12+

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:

  1. Transfer the smartphone to Fastboot mode: adb reboot bootloader Or turn off the device and press Power + Volume Reduction.
  2. 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).
  3. 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-shm

Reset the device:

adb reboot

After 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:

  1. 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.img

In 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 /system

Sweep 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.zip

Critically, 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?
    Anti-Rollback (ARB) is Xiaomi's protection mechanism to prevent firmware from rolling back to an older version. For example, if Redmi 6A has firmware running ARB 3, trying to flash the ARB 2 version will lead to a permanent lockdown of the bootloader. Check the current level of ARB in Fastboot command: fastboot getvar anti If the value is anti=3 or higher, be extremely careful with the firmware.

    FAQ: Frequent questions about unlocking Mi Account on Redmi 6A

    Can I delete my Mi Account without a computer?
    No, all working methods require a PC connection to use ADB, Fastboot or TWRP. Manual methods (e.g., via ##3646633##) on MIUI 10+ do not work.
    Why is the mobile network not working after the service is removed?
    This is due to damage to the nvram or modem partition when modifying system files, restore the backup of these partitions via TWRP or reflash them using the Mi Flash Tool.
    How to check if Mi Account services have been deleted?
    Run ADB Shell and execute the commands: ls /system/priv-app/ | grep -i miaccount ls /system/priv-app/ | grep -i finddevice If commands do not return results, services are deleted.
    Can I update my firmware after deleting my Mi Account?
    No, an update via OTA or Mi Flash Tool will return the deleted services and restore the lock. If you need to update, return the original Mi Account files first, then update, and then repeat the deletion procedure.
    Is it legal to delete your Mi Account?
    Xiaomi’s license agreement does not, but it is technically possible because the user has full control over their device (if unlocked), and in some countries (e.g. the EU), such restrictions may be considered a violation of the right to repair (Right to Repair).

    πŸ’‘

    On the Redmi 6A with MIUI 13+ and Anti-Rollback 3+, self-unlocking Mi Account without specialized hardware is almost impossible.