[ALTERNATIVE] Root Mi A1 with TWRP Without disabling Ota

H.A.L. 9000

Member
Jul 5, 2015
28
42
0
As you may imagine this simple guide will show you how to root your device with magisk from twrp recovery.
I know, there is already a guide by jashancheema that shows how to root this device, however it's difficult to update the system once you are rooted. In my opinion the way i'm about to show you is faster and easier.

Disclaimer: I am not responsible for ANY damage done to your phone, act at your own risk.

That's how you can root your phone with magisk and recovery without disabling ota.

1. First download magisk manager and magisk flashable zip from here (official thread)
Install magisk manager and copy the magisk flashable zip somewhere in your device or sd.

2. Download mohancm twrp recovery (recovery-3.2.1-2-oreo) from here (official thread)
NOTE: do not download the installer, you need the .img file bootable from fastboot (recovery-3.2.1-2-oreo.img)

3. Copy recovery-3.2.1-2-oreo.img into the fastboot folder.

4. Enable developer option from in the device, enable OEM unlocking.

5. turn off your device and enter into fastboot mode by holding voume down + power button, then connect your device to the pc.

6. now open fastboot and type this to check the connection, if the terminal return an andress your phone is correctly configured.
Code:
fastboot devices
7. type this from fastboot to unlock your bootloader.
Code:
fastboot oem unlock
8. now type this to boot your recovery (REMEMBER TO COPY THE RECOVERY IMG INTO THE FASTBOOT FOLDER)
Code:
fastboot boot recovery-3.2.1-2-oreo.img
9. once your recovey boot flash the magisk zip and reboot.
NOTE: do not install or flash twrp into your device or you won't be able to update through ota.


---------------------HOW TO UPDATE-----------------------------------------------------------------------------------------------------

When you will receive the update the only thing you need to do is boot twrp, flash magisk unistaller (that you can find here ) and update.

1. type this to boot your recovery (REMEMBER TO COPY THE RECOVERY IMG INTO THE FASTBOOT FOLDER)
Code:
fastboot boot recovery-3.2.1-2-oreo.img
2. flash magisk unistaller from recovey

3. Update your system

4. Repeat the same procedure to root again your device.

If you are italian and you need any help you can find it here, the serious telegram community.
https://t.me/XiaomiMiA1Italia
Special thanks to @samuele94 and @TheRealajeje from the telegram group.
 
Last edited:

manpildo

Senior Member
Dec 21, 2011
1,953
1,078
143
Thank you, the rooting part worked flawlessly. :good: Now waiting for the next OTA to see if that will work well too.
 

Tiemichael

Senior Member
May 10, 2013
364
89
48
I did exactly the same (as nicely outlined in MP) for the last few updates, and can confirm it's working perfectly. I was using this as the 'normal' way failed due to unknown reasons.
This approach does not required a patched boot-image available, so imho it's more robust and reliable than the 'normal' method.
 

ncar123

Senior Member
Mar 16, 2018
134
10
0
As you may imagine this simple guide will show you how to root your device with magisk from twrp recovery.
I know, there is already a guide by jashancheema that shows how to root this device, however it's difficult to update the system once you are rooted. In my opinion the way i'm about to show you is faster and easier.

Disclaimer: I am not responsible for ANY damage done to your phone, act at your own risk.

That's how you can root your phone with magisk and recovery without disabling ota.

1. First download magisk manager and magisk flashable zip from here (official thread)
Install magisk manager and copy the magisk flashable zip somewhere in your device or sd.

2. Download mohancm twrp recovery (recovery-3.2.1-2-oreo) from here (official thread)
NOTE: do not download the installer, you need the .img file bootable from fastboot (recovery-3.2.1-2-oreo.img)

3. Copy recovery-3.2.1-2-oreo.img into the fastboot folder.

4. Enable developer option from in the device, enable OEM unlocking.

5. turn off your device and enter into fastboot mode by holding voume down + power button, then connect your device to the pc.

6. now open fastboot and type this to check the connection, if the terminal return an andress your phone is correctly configured.


7. type this from fastboot to unlock your bootloader.


8. now type this to boot your recovery (REMEMBER TO COPY THE RECOVERY IMG INTO THE FASTBOOT FOLDER)


9. once your recovey boot flash the magisk zip and reboot.
NOTE: do not install or flash twrp into your device or you won't be able to update through ota.


---------------------HOW TO UPDATE-----------------------------------------------------------------------------------------------------

When you will receive the update the only thing you need to do is boot twrp, flash magisk unistaller (that you can find here ) and update.

1. type this to boot your recovery (REMEMBER TO COPY THE RECOVERY IMG INTO THE FASTBOOT FOLDER)


2. flash magisk unistaller from recovey

3. Update your system

4. Repeat the same procedure to root again your device.

If you are italian and you need any help you can find it here, the serious telegram community.
https://t.me/XiaomiMiA1Italia
Special thanks to @samuele94 and @TheRealajeje from the telegram group.
Can't I just install syst update through twrp?
 

freekarol

Senior Member
Feb 27, 2015
84
2
0
Rooting Mi A1 using this method worked. But the guide needs updating:
1.You must enable usb debugging
2.You must install magisk manager after unlocking bootloader. Installing it before is useless because unlocking bootloader will wipe all data.
 

pmagall

Member
Dec 22, 2010
8
0
0
Porto
Rooting Mi A1 using this method worked. But the guide needs updating:
1.You must enable usb debugging
2.You must install magisk manager after unlocking bootloader. Installing it before is useless because unlocking bootloader will wipe all data.

Well, that happened to me.. Total WIPE... So, i decide to stop. But this night i'll try again, after a full backup. For me this is important because i need to use Android Auto, with aamirror.
 

freekarol

Senior Member
Feb 27, 2015
84
2
0
I do regular backups so it was ok with me. It also should be in the guide as a first step: backup your phone. It seems like the guide is not for beginners... After rooting, you can face two problems:

1. From time to time, Magisk crashes. Just open it again.
2. There will be a camera lag. Installing a Magisk module should solve it(I haven't tried it yet): https://www.youtube.com/watch?v=UqcQKqhL3ok
 
Last edited:

Tiemichael

Senior Member
May 10, 2013
364
89
48
there is some indication that 'fastboot boot twrp.img' wipes all the data!
Not sure when it started and if there is a way to avoid it - any idea?