TWRP is stuck at the boot screen when trying to flash twrp on Mi A2 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?
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 or here
and then in twrp recovery mode, select Wipe-&gt;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.