2

I am trying to root my Mi A2 android phone. I am following this tutorial. When I try fastboot boot path/to/twrp/image the phone gets stuck on the boot screen. What am I doing wrong?

Is it because a) I don't have required drivers or because b) I have to disable force encryption? If a) I have to install new drivers what are they, where do I get them and how do I install them? If it is b) about disabling force encryption then how to do it?

1
  • Please edit your question and include the command-line text output you get after executing the fastboot command. – Robert Oct 9 '20 at 9:29
2

The twrp-3.3.1-0 works for me, so download the twrp-3.3.1-0-jasmine_sprout.img and twrp-installer-3.3.1-0-jasmine_sprout.zip from here and issue the following commands on fastboot/bootloader mode

fastboot set_active b
fastboot flash boot twrp-3.3.1-0-jasmine_sprout.img
fastboot reboot recovery

or just

fastboot boot twrp-3.3.1-0-jasmine_sprout.img

enable side-loading mode in advance options in twrp recovery mode and issue

adb sideload twrp-installer-3.3.1-0-jasmine_sprout.zip

and download Disable_Dm-Verity_ForceEncrypt_03.04.2020.zip from here and get Magisk-v21.0.zip and MagiskManager-v8.0.0.apk from here and then in twrp recovery mode, select Wipe->format Data and select partition 'a' on reboot tab on twrp menu but do not reboot. Now activate sideload from advance menu and issue

adb sideload Disable_Dm-Verity_ForceEncrypt_03.04.2020.zip
adb sideload Magisk-v21.0.zip    

and then rebooting into system should enable root on your phone. I used this link for the answer. Also you can look into these links, link1, link2 and link3.

2
  • Also you can gain root adb shell from your host machine like this adb root and then adb remount to remount the system partition with write permissions and copy the su binaries into /system/bin/ and also you can get into a root shell on your phone from host machine by issuing adb root and then adb shell. (Perhaps this feature works on LineageOS only for if rooted debugging is checked or may be in some other custom roms) Or you can directly use Magisk patched boot image for MI_A2 to flash to boot from here – Pavel Sayekat Oct 21 '20 at 6:13
  • It works with LineageOS 17.1 unofficial rom , magisk succeeds in rooting the device using this method. – Pavel Sayekat Jan 5 at 14:10
1

A low or dead battery can cause this issue. Before flashing always make sure the phones battery is at least 70%

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.