mi11
for those of you who get errors in twrp when you want to install update
this worked for me
when your mobile is on turn it off
and press power and volume down so you get into fastboot when you are there press and hold the power button until it turns off
then immediately press volume up...