The work profile on Xiaomi smartphones is a separate protected space that is created for corporate tasks or device management through the use of a device. MDM-Mobile Device Management allows you to distinguish between personal and work data, but often users face the problem of how to delete it if it is no longer needed or interferes with the operation of the phone. This is especially true for hand-buyed devices where the previous owner has not removed the link to the corporate account.
In this article, weโll look at all the ways you can delete your Xiaomi work profile, including official methods through settings, ADB workarounds, and radical measures like factory resets. Separately, weโll look at the risks of locking your device if you do something wrong, and explain why some methods might not work on newer versions of MIUI. If youโre trying to get rid of an unnecessary profile or unlock your phone after you leave work, hereโs a solution.
What is a Xiaomi Work Profile and Why You Should Delete It
A work profile (or managed profile) is an isolated environment on Android that is created by a device administrator (usually a company) to control corporate data, and can appear on Xiaomi in three ways:
- ๐ข The device was issued by the company for work and tied to MDM-Systems (e.g. Microsoft Intune or VMware Workspace) ONE).
- ๐ฑ You activate your profile through an app like Android Device Policy or Xiaomi Enterprise Manager.
- ๐ The phone is bought with hands and the previous owner did not delete the profile before the sale.
Why does it have to be removed?
- โ ๏ธ Feature limitations: Some applications (e.g. banking) may be blocked or not work properly.
- ๐ต Tracking: The profile administrator can track your activity even if you are no longer working for the company.
- ๐ Device lock: When resetting, the phone may require administrator account details.
โ ๏ธ Note: If a profile is set by a company, deleting it may violate corporate security policies, in some cases equating to data theft.
On newer versions of MIUI 14/15, the working profile is integrated deeper into the system, so standard removal methods (via settings) may not work. Below we will look at alternative methods, including ADB and bypass locking via Fastboot.
Method 1: Delete your work profile through Xiaomi settings
The easiest and safest method is to remove the settings from the settings menu, and it works if:
- ๐ You have the rights to admin the profile (for example, you created it yourself).
- ๐ฑ Profile not blocked by company policies (no ban on deletion).
- ๐ฒ The device is not tied to MDM-server (no remote management).
Instructions:
- Open Settings โ Accounts and Synchronization.
- Select the Work Profile tab (or Managed Profile on older versions of MIUI).
- Click on the profile icon (usually with the company name or "Work").
- In the upper right corner, tap on โฎ โ Delete profile.
- Confirm the action by entering a password or PIN-code.
If you don't have a Delete profile or it's inactive, you're protected by the administrator's policies, and then try the following.
๐ก
Before deleting your work profile, copy important data (contacts, files) from it to the main storage, and after deleting it, it will be lost without recovery.
Method 2: Delete via Android Device Policy
If a work profile was created through Googleโs Android Device Policy, it can be removed directly from that application, a method that often works even when standard deletion through settings is blocked.
Step-by-step:
- Open the Android Device Policy app (if not, download it from Google Play).
- In the upper right corner, click on the account icon (or โฎ โ Settings).
- Select Deactivate this device admin app or Deactivate this device admin app.
- Confirm the deletion by following the instructions on the screen.
If the application requires administrator account data (like a corporate email) and you don't have it, it won't work, so move on to ADB or reset.
โ ๏ธ Note: On some Xiaomi devices (especially with the MIUI 14+) After deleting Android Device Policy, a โghostโ profile may remain.
โ๏ธ Preparation for the removal of the profile through ADB
Method 3: Delete your work profile via ADB (for advanced)
If standard methods don't work, you can try removing a profile through ADB (Android Debug Bridge), which requires access to a computer and basic command-line knowledge, and is suitable for devices where the profile is not protected by an administrator password.
Instructions:
- Activate Developer Mode on Xiaomi: Go to Settings โ About Phone. Tap 7 times on MIUI Version. Go back to Settings โ Additional โ For Developers. Turn on USB Debugging.
Command line.
Terminal
platform-tools
adb devicesThe name of your device should appear.
adb shell pm uninstall -k --user 0 com.android.managedprovisioningIf it doesn't work, try:
adb shell dpm remove-active-admin com.android.managedprovisioning/.ManagedProvisioningAdminReceiverReboot the phone.
If the profile remains after the reboot, try to delete it through Settings โ Apps by finding Android Device Policy or Xiaomi Enterprise Manager and selecting Remove Updates โ Disable.
| ADB Team Team | What's he doing? | When to use |
|---|---|---|
| adb shell pm list packages | Shows all installed packages | To find a profile ID (look for managedprovisioning) |
| adb shell dpm list admins | List of device administrators | Checking which profile is active |
| adb shell pm uninstall --user 0 PAKET | Remove the application for the current user | If the standard removal is blocked |
What if the ADB canโt see the device?
Method 4: Reset to factory settings (radical method)
If all previous methods failed, the last option is a complete reset of the device, which will delete all data, including the working profile, but there are nuances:
- ๐ On some devices, after the reset, a request may appear for the entry of profile administrator data (if it was associated with the reset). MDM).
- ๐ฆ Backup data is mandatory โ after reset everything will be erased.
- โ ๏ธ On Xiaomi with a blocked bootloader, a reset may not help if the profile is protected at the firmware level.
How to reset:
- Go to Settings โ About the phone โ Reset settings.
- Select to erase all data (reset to factory).
- Enter a password (if required) and confirm the action.
- After restarting, set your phone as new.
โ ๏ธ Warning: If the phone requires administrator account information (such as a corporate email) after resetting and you donโt have it, the device may be locked, in which case only unlocking via Fastboot or contacting a service center will help.
๐ก
Resetting to factory settings is the most reliable way to delete a work profile, but it erases all data. If the profile is protected by MDM, you may need to enter administrator credentials after the reset.
Method 5: Unlocking via Fastboot (for locked devices)
If the phone requires profile administrator data after resetting and does not allow you to continue setting up, you will have to use Fastboot mode. This method is suitable for devices with an unlocked bootloader. If the bootloader is locked, it must first be unlocked through the official Mi Unlock Tool tool (this will take 7-30 days to wait for unlocking).
Instructions for devices with unlocked loader:
- Turn off your phone and press the Power button + Volume down to log into the Fastboot.
- Connect your phone to your PC and open the command line in the folder with the platform-tools.
- Check the connection: fastboot devices
- Run the command to reset protection: fastboot erase userdata fastboot erase metadata
- Reboot the device: fastboot reboot
If the phone still requires profile data, try flashing a clean version of MIUI via Fastboot:
fastboot flash all firmware.zipโ ๏ธ Warning: Fastboot misuse can turn your phone into a brick. If you're not sure you can, call the service center.
What to do if nothing helps
If none of the methods worked, the following reasons are possible:
- ๐ Profile is protected at the firmware level (found on corporate devices).
- ๐ฑ The device is tied to MDM-The server that blocks all attempts to delete.
- ๐ ๏ธ The phone has custom firmware with modified security policies.
In such cases, there are three options:
- Contact the profile administrator (if it is a corporate device) with a request to remove the binding remotely.
- Reflash the phone to custom firmware (for example, LineageOS), but this will require unlocking the bootloader and may deprive you of warranty.
- Contact the service center โ some workshops are able to bypass such locks through specialized software (for example, UFi Box or Octoplus).
If the phone is bought with hands and the previous owner has not removed the profile, try contacting him. MDM-systems (e.g. Microsoft Intune) administrator can remotely remove control even without access to the device.