If your Xiaomi Mi A1 is rooted and installed TWRP recovery on it, but want to get everything back to how your phone was before, the simplest solution is unrooting and reinstalling stock firmware on it. In this guide we let you know how to unroot Xiaomi Mi A1 runs Android 8.0 Oreo completely and returned to stock Oreo ROM.
Official TWRP recovery and root access is available on Mi A1. If your phone is rooted with Magisk, but want to completely unroot it, the following guide will help you get your Mi A1 back to the stock. However, since Mi A1 uses dual partitioning system (A/B system), you should identify the boot partition before going on the steps given below.
Xiaomi recently rolled out Android 8.0 Oreo for its first Android One phone Mi A1. If you have not updated to your phone to Oreo, check this guide to know how to manually update.
Now, if you have rooted your Mi A1 using Magisk and installed any Magisk module follow below step-by-step guide to unroot it. Unrooting Mi A1 is not a complicated process. All you need Oreo boot image file.
How to Unroot and Get Your Xiaomi Mi A1
1. First, uninstall any Magisk module installed on your phone (Open Maisk Manager, untick all modules and the tap on delete button) and the reboot your phone.
2. Launch Magisk Manager, and uninstall it using Uninstall option
3. Download Oreo boot.img file for Mi A1 from here and save it on your PC, where ADB is installed.
4. Switch off your phone and boot into fastboot mode (press Volume Down + Power buttons together).
5. Now, type the below command to unlock your phone:
fastboot oem unlock
6. Check the current slot by using below command:
fastboot getvar current-slot
7. Now, type the below command (if ‘a’ is current slot) to flash boot.img file:
fastboot flash boot_a boot.img
fastboot flash boot_b boot.img
(if ‘b’ is the current slot)
?8. Now, you need to lock your device using the below command:
?fastboot oem lock
9. Finally, reboot your phone, by using the command:
You have now successfully unrooted your Xiaomi Mi A1. Leave your views in the comment section below. (Source – XDA)