• XDA Forums have been migrated to XenForo. We are aware of several issues including missing threads, logins not working, and more. To discuss, use this thread.
  • If you are experiencing issues logging in, we moved to a new and more secure software and older account passwords were not able to be migrated. We recommend trying to reset your password, then contacting us if there are issues.

Stock Recovery and Bootloader Lock

Qufy

New member
Dec 2, 2018
12
0
0
Hello. I tried flashing TWRP but apparently it doesn't work with Android 9. It says System has been Destroyed and then boots to the OS. If anyone would reply with some instructions to flash the latest stock recovery image and lock the bootloader I will appreciate it very much. Thanks.
 

Kineceleran

Member
Dec 14, 2018
104
37
28
If your bootloader is unlocked you can flash stock rom via mi flash when you get in to fastboot mode.
https://en.miui.com/download-354.html Here is stock rom for mi a2 lite
https://yadi.sk/d/cel5Nm2sE1OpMg Here is the mi flash
Start the phone as fastboot mode (power and volume down)
Extract stock rom archive by right click and extract to folder
Move that extracted folder to desktop open mi flash and select that folder
Connect the phone to pc and click to refresh, select method "clean all"(installs system and stock recovery but doesn't lock bootloader) "clean all and lock"(installs system and stock recovery and locks bootloader)
and flash :)
 
  • Like
Reactions: grish and Qufy

Qufy

New member
Dec 2, 2018
12
0
0
If your bootloader is unlocked you can flash stock rom via mi flash when you get in to fastboot mode.
https://en.miui.com/download-354.html Here is stock rom for mi a2 lite
https://yadi.sk/d/cel5Nm2sE1OpMg Here is the mi flash
Start the phone as fastboot mode (power and volume down)
Extract stock rom archive by right click and extract to folder
Move that extracted folder to desktop open mi flash and select that folder
Connect the phone to pc and click to refresh, select method "clean all"(installs system and stock recovery but doesn't lock bootloader) "clean all and lock"(installs system and stock recovery and locks bootloader)
and flash :)
Thanks I will try
 

Qufy

New member
Dec 2, 2018
12
0
0
If your bootloader is unlocked you can flash stock rom via mi flash when you get in to fastboot mode.
https://en.miui.com/download-354.html Here is stock rom for mi a2 lite
https://yadi.sk/d/cel5Nm2sE1OpMg Here is the mi flash
Start the phone as fastboot mode (power and volume down)
Extract stock rom archive by right click and extract to folder
Move that extracted folder to desktop open mi flash and select that folder
Connect the phone to pc and click to refresh, select method "clean all"(installs system and stock recovery but doesn't lock bootloader) "clean all and lock"(installs system and stock recovery and locks bootloader)
and flash :)
It worked! Thank you very much!
 

amnher

Senior Member
Sep 23, 2011
3,073
584
113
33
Taguig
If your bootloader is unlocked you can flash stock rom via mi flash when you get in to fastboot mode.
https://en.miui.com/download-354.html Here is stock rom for mi a2 lite
https://yadi.sk/d/cel5Nm2sE1OpMg Here is the mi flash
Start the phone as fastboot mode (power and volume down)
Extract stock rom archive by right click and extract to folder
Move that extracted folder to desktop open mi flash and select that folder
Connect the phone to pc and click to refresh, select method "clean all"(installs system and stock recovery but doesn't lock bootloader) "clean all and lock"(installs system and stock recovery and locks bootloader)
and flash :)
Will this also lock critical?
 

marstonpear

Senior Member
May 15, 2016
489
178
43
Bro you don't flash twrp. You need to boot twrp via fastboot and then install twrp.zip through TWRP. Old days of directly flashing is long gone haha
 
  • Like
Reactions: Os_Herdz

Javtor

New member
Sep 16, 2012
39
4
0
Can I only flash recovery partition with miflash and then relock bootloader w/adb fastboot command without cleaning all?
I did have magisk and twrp, but after ota, magisk and twrp was deleted (I can fastboot twrp and magisk-uninstall.zip to be sure).
In case of relock cause a bootloop... can I unlock it again and boot normally without loosing any data?
Thank you!
 
Last edited: