[RECOVERY][3.3.1-17][laurel_sprout]Unofficial TWRP recovery for Xiaomi Mi A3 (Test)

Search This thread

mauronofrio

Recognized Developer
Jun 29, 2012
4,359
13,747
25
Castellana Grotte
toolaio.tk

moyses

Senior Member
Dec 6, 2013
281
61
Finally succeeded to install twrp with this method
Thank you mauro

PS: can iminstall the last fastboot zip as Recovery zip one or i mustbto download a recovery rom zip?
 

moyses

Senior Member
Dec 6, 2013
281
61
you have to install recovery zip rom

Finaly i suffer from encryption data on b slot and my phone want to boot, always restart to twrp

I were on stock and i have not backup my data because just wanted to update stock with last recovery rom

Even with last fastboot rom does not resolve my issue

Is there any solution please
 
Last edited:

draiyan

Senior Member
Dec 5, 2011
429
44
Cebu City
Redmi Note 10 Pro
Just root d my wife's phone. But seems like magisk broke safetynet? She needs to install a banking app, and Netflix and it's not showing in playstore. So I guess it's safetynet?

Any way around this?
 
Oct 23, 2016
41
3
Hello!

Since the install steps provided on OP maybe confusing I thought on sharing here the steps I've made in order to get TWRP working....let's call it a "noob friendly guide", ok?

Here he we go:

0 - Your bootloader must be unlocked. If it's not, then follow step 1 of the instructions provided HERE.
1 - Download both twrp-3.3.1-15-laurel_sprout-mauronofrio.img and twrp-3.3.1-15-laurel_sprout-mauronofrio-installer.zip files present on OP
2 - Download latest Magisk Installer, Magisk Uninstaller and Magisk Manager from HERE.
3 - Copy all of the above to your phone internal memory (since current TWRP doesn't allow sdcard nor USB OTG yet...)
4 - Connect the phone to your PC
5 - Reboot to bootloader
Code:
adb reboot bootloader
6 - Check your current active slot
Code:
fastboot getvar current-slot
7 - Flash TWRP image into the current inactive slot (we do this just to leave the current active slot with no changes...at least for now)
If your current active is slot b, then run:
Code:
fastboot --set-active=a
Or, if your current active is slot a, then run:
Code:
fastboot --set-active=b
And afterwards, run:
Code:
fastboot flash boot twrp-3.3.1-15-laurel_sprout-mauronofrio.img
(of course that img file must be on the same path where you have adb and fastboot...)​
8 - Reboot to TWRP:
Code:
fastboot reboot
NOTE: Long press Vol+ button before hitting "ENTER" and leave it pressed until you see the Android One logo (just to force boot into recovery)​

Just a heads up:
Now we are on TWRP booted on the "previously inactive slot". The "previously active slot" continues unchanged. Nothing "bad" really happened until what we decide to do next. If we want, we can just make a TWRP backup of the current slot and nothing else. Afterwards, we could always reboot to bootloader, change to the "previously active slot" again and boot system. If we do this, we continue without TWRP and root but we would now have a TWRP backup of the system present on the "inactive slot". Anyway let's presume you really want to permanently install TWRP and ROOT your device....so let's continue.

9 - While on TWRP, install twrp-3.3.1-15-laurel_sprout-mauronofrio-installer.zip
Note that, by doing this, TWRP will be permanently installed into both slots. This means that, if someday, you want to revert to stock, you'll need to reflash stock boot.img on, at least, one of your slots.​
10 - After installing TWRP zip, go to reboot menu, change to the active slot (the one you had on the beginning of these steps) and reboot to TWRP
11 - After TWRP reboots, install Magisk installer zip
12 - Finally, reboot to system
13 - Enjoy

Thank you @mauronofrio and Jyotiraditya Panda for your work on bringing TWRP to Mi A3 (laurel_sprout).

I just hope you're able to fix USB OTG and SDCard bugs and, of course, make this TWRP official.

Cheers!

LISTEN! Noobs like me need people like you! Thank you so much. I was confused about those slot a slot b things. Continue writing noob friendly guides. The Noob Community thanks you.
 

Insomniac05

Senior Member
Aug 31, 2020
80
13
Error flashing recovery to Mi A3

Hello!

Since the install steps provided on OP maybe confusing I thought on sharing here the steps I've made in order to get TWRP working....let's call it a "noob friendly guide", ok?

Here he we go:

0 - Your bootloader must be unlocked. If it's not, then follow step 1 of the instructions provided HERE.
1 - Download both twrp-3.3.1-15-laurel_sprout-mauronofrio.img and twrp-3.3.1-15-laurel_sprout-mauronofrio-installer.zip files present on OP
2 - Download latest Magisk Installer, Magisk Uninstaller and Magisk Manager from HERE.
3 - Copy all of the above to your phone internal memory (since current TWRP doesn't allow sdcard nor USB OTG yet...)
4 - Connect the phone to your PC
5 - Reboot to bootloader
Code:
adb reboot bootloader
6 - Check your current active slot
Code:
fastboot getvar current-slot
7 - Flash TWRP image into the current inactive slot (we do this just to leave the current active slot with no changes...at least for now)
If your current active is slot b, then run:
Code:
fastboot --set-active=a
Or, if your current active is slot a, then run:
Code:
fastboot --set-active=b
And afterwards, run:
Code:
fastboot flash boot twrp-3.3.1-15-laurel_sprout-mauronofrio.img
(of course that img file must be on the same path where you have adb and fastboot...)​
8 - Reboot to TWRP:
Code:
fastboot reboot
NOTE: Long press Vol+ button before hitting "ENTER" and leave it pressed until you see the Android One logo (just to force boot into recovery)​

Just a heads up:
Now we are on TWRP booted on the "previously inactive slot". The "previously active slot" continues unchanged. Nothing "bad" really happened until what we decide to do next. If we want, we can just make a TWRP backup of the current slot and nothing else. Afterwards, we could always reboot to bootloader, change to the "previously active slot" again and boot system. If we do this, we continue without TWRP and root but we would now have a TWRP backup of the system present on the "inactive slot". Anyway let's presume you really want to permanently install TWRP and ROOT your device....so let's continue.

9 - While on TWRP, install twrp-3.3.1-15-laurel_sprout-mauronofrio-installer.zip
Note that, by doing this, TWRP will be permanently installed into both slots. This means that, if someday, you want to revert to stock, you'll need to reflash stock boot.img on, at least, one of your slots.​
10 - After installing TWRP zip, go to reboot menu, change to the active slot (the one you had on the beginning of these steps) and reboot to TWRP
11 - After TWRP reboots, install Magisk installer zip
12 - Finally, reboot to system
13 - Enjoy

Thank you @mauronofrio and Jyotiraditya Panda for your work on bringing TWRP to Mi A3 (laurel_sprout).

I just hope you're able to fix USB OTG and SDCard bugs and, of course, make this TWRP official.

Cheers!

So i did what was written here step by step my active slot was a so i changed it to b and them flashed the twrp img however when i hit enter after fastboot reboot (along with pressing the the vol up button) it still booted into the fastboot mode and twrp didn't show up I even tried flashing orange fox recovery img that too lead to the same rebooting into fastboot mode

Any idea what could solve this??
 

Sami Devo

Senior Member
May 30, 2015
192
14
Dhaka
Xiaomi Mi A3
Hello!

Since the install steps provided on OP maybe confusing I thought on sharing here the steps I've made in order to get TWRP working....let's call it a "noob friendly guide", ok?

Here he we go:

0 - Your bootloader must be unlocked. If it's not, then follow step 1 of the instructions provided HERE.
1 - Download both twrp-3.3.1-15-laurel_sprout-mauronofrio.img and twrp-3.3.1-15-laurel_sprout-mauronofrio-installer.zip files present on OP
2 - Download latest Magisk Installer, Magisk Uninstaller and Magisk Manager from HERE.
3 - Copy all of the above to your phone internal memory (since current TWRP doesn't allow sdcard nor USB OTG yet...)
4 - Connect the phone to your PC
5 - Reboot to bootloader

6 - Check your current active slot

7 - Flash TWRP image into the current inactive slot (we do this just to leave the current active slot with no changes...at least for now)
If your current active is slot b, then run:
Or, if your current active is slot a, then run:
And afterwards, run:
(of course that img file must be on the same path where you have adb and fastboot...)
8 - Reboot to TWRP:


So i did what was written here step by step my active slot was a so i changed it to b and them flashed the twrp img however when i hit enter after fastboot reboot (along with pressing the the vol up button) it still booted into the fastboot mode and twrp didn't show up I even tried flashing orange fox recovery img that too lead to the same rebooting into fastboot mode

Any idea what could solve this??
becoz the file isn't right.. i flashed from sourge site it worked but recommendations is to flash SHARP
 

Insomniac05

Senior Member
Aug 31, 2020
80
13
Yeah I got that flashed an unofficial img as the boot.img on the inactive partion and then using that ran the official installer it worked fine
 

kroxaBOB

New member
Nov 12, 2020
2
0
8 - Reboot to TWRP:
Code:
fastboot reboot
NOTE: Long press Vol+ button before hitting "ENTER" and leave it pressed until you see the Android One logo (just to force boot into recovery)​
!

Hi!
I do everything step-by-step like you said, but I keep coming back to the Fastboot screen with that f*king bunny. I've already tried dozens of guides from all over the Net and the result is the same. Only once did I manage to get into custom recovery using SHRP_v2.3.1_laurel_sprout-STOCK_PATCHED.img from original site. In other cases, I always end up on the Fastboot screen. What am I doing wrong?
 

Insomniac05

Senior Member
Aug 31, 2020
80
13
Hi!
I do everything step-by-step like you said, but I keep coming back to the Fastboot screen with that f*king bunny. I've already tried dozens of guides from all over the Net and the result is the same. Only once did I manage to get into custom recovery using SHRP_v2.3.1_laurel_sprout-STOCK_PATCHED.img from original site. In other cases, I always end up on the Fastboot screen. What am I doing wrong?

I had a similar case none of the twrp imgs would boot except an unofficial one I found so I flashed the one which was booting and then using that recovery flashed the official recovery img
I guess you could try the same boot into the recovery that worked once and then use it to flash the one you want
 

kroxaBOB

New member
Nov 12, 2020
2
0
I had a similar case none of the twrp imgs would boot except an unofficial one I found so I flashed the one which was booting and then using that recovery flashed the official recovery img
I guess you could try the same boot into the recovery that worked once and then use it to flash the one you want

I hadn't thought of that. Thanks man. Will try it tonight
 

@kitokit

Senior Member
Mar 15, 2017
356
68
i followed all the steps but i end up always in fastboot mode. please, can someone help me
 

Anorak87

New member
Mar 23, 2021
1
0
I am having big trouble on completing the tutorial. The last step that is reboot to recovery mode simply don't work. I reboot and it get stuck on fastboot. Don't matter what I do, it always start on fastboot. The phone system do not boot too, I have tried do shutdown the phone with the buttons on the side but it start on fastboot again. Please help me, I can't do anything.
 

garylawwd

Forum Moderator
Staff member
I am having big trouble on completing the tutorial. The last step that is reboot to recovery mode simply don't work. I reboot and it get stuck on fastboot. Don't matter what I do, it always start on fastboot. The phone system do not boot too, I have tried do shutdown the phone with the buttons on the side but it start on fastboot again. Please help me, I can't do anything.
You have android 11?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 24
    Install method explained

    Hello!

    Since the install steps provided on OP maybe confusing I thought on sharing here the steps I've made in order to get TWRP working....let's call it a "noob friendly guide", ok?

    Here he we go:

    0 - Your bootloader must be unlocked. If it's not, then follow step 1 of the instructions provided HERE.
    1 - Download both twrp-3.3.1-15-laurel_sprout-mauronofrio.img and twrp-3.3.1-15-laurel_sprout-mauronofrio-installer.zip files present on OP
    2 - Download latest Magisk Installer, Magisk Uninstaller and Magisk Manager from HERE.
    3 - Copy all of the above to your phone internal memory (since current TWRP doesn't allow sdcard nor USB OTG yet...)
    4 - Connect the phone to your PC
    5 - Reboot to bootloader
    Code:
    adb reboot bootloader
    6 - Check your current active slot
    Code:
    fastboot getvar current-slot
    7 - Flash TWRP image into the current inactive slot (we do this just to leave the current active slot with no changes...at least for now)
    If your current active is slot b, then run:
    Code:
    fastboot --set-active=a
    Or, if your current active is slot a, then run:
    Code:
    fastboot --set-active=b
    And afterwards, run:
    Code:
    fastboot flash boot twrp-3.3.1-15-laurel_sprout-mauronofrio.img
    (of course that img file must be on the same path where you have adb and fastboot...)​
    8 - Reboot to TWRP:
    Code:
    fastboot reboot
    NOTE: Long press Vol+ button before hitting "ENTER" and leave it pressed until you see the Android One logo (just to force boot into recovery)​

    Just a heads up:
    Now we are on TWRP booted on the "previously inactive slot". The "previously active slot" continues unchanged. Nothing "bad" really happened until what we decide to do next. If we want, we can just make a TWRP backup of the current slot and nothing else. Afterwards, we could always reboot to bootloader, change to the "previously active slot" again and boot system. If we do this, we continue without TWRP and root but we would now have a TWRP backup of the system present on the "inactive slot". Anyway let's presume you really want to permanently install TWRP and ROOT your device....so let's continue.

    9 - While on TWRP, install twrp-3.3.1-15-laurel_sprout-mauronofrio-installer.zip
    Note that, by doing this, TWRP will be permanently installed into both slots. This means that, if someday, you want to revert to stock, you'll need to reflash stock boot.img on, at least, one of your slots.​
    10 - After installing TWRP zip, go to reboot menu, change to the active slot (the one you had on the beginning of these steps) and reboot to TWRP
    11 - After TWRP reboots, install Magisk installer zip
    12 - Finally, reboot to system
    13 - Enjoy

    Thank you @mauronofrio and Jyotiraditya Panda for your work on bringing TWRP to Mi A3 (laurel_sprout).

    I just hope you're able to fix USB OTG and SDCard bugs and, of course, make this TWRP official.

    Cheers!
    19
    Team Win Recovery Project 3.x, or twrp3 for short, is a custom recovery built with ease of use and customization in mind. Its a fully touch driven user interface no more volume rocker or power buttons to mash. The GUI is also fully XML driven and completely theme-able. You can change just about every aspect of the look and feel.

    Code:
    #include <std_disclaimer.h>
    /*
     *
     * We are not responsible for bricked devices, dead SD cards,
     * thermonuclear war, or you getting fired because the alarm app failed. Please
     * do some research if you have any concerns about features included in this ROM
     * before flashing it! YOU are choosing to make these modifications, and if
     * you point the finger at us for messing up your device, we will laugh at you.
     *
     */

    Features:
    - TWRP boots
    - TWRP seems has problems with external sdcard and otg
    - Magisk Flash works

    Install guide :
    Remember to use the appropriate .img version
    https://forum.xda-developers.com/showpost.php?p=80168528&postcount=16

    Other Install guide :
    1. Follow this guide to root your device
    2. Flash the TWRP installer like a magisk module
    3. Flashing the TWRP installer you will lose the root, so you will need to flash magisk again from magisk manager before reboot the device or you can reboot the device and flash magisk in twrp


    HOW TO UPDATE a ROM and KEEP TWRP and ROOT:
    Before all Disable all magisk modules for boths methods

    - Put rom.zip, twrp installer.zip and magisk.zip on your internal storage;
    - Flash Rom;
    - Flash TWRP Installer;
    - Flash magisk;
    - Reboot.

    If you want you can also update a stock rom from phone settings with local upgrade:
    - Update the Rom WITHOUT REBOOT;
    - Open Magisk Manager;
    - Menu/modules/+ button/select the twrp installer.zip and flash it;
    - Always in Magisk Manager, click on Install/Install/Direct Install;
    - Again in Magisk Manager, click on Install/Install/Inactive Slot;
    - Reboot.


    Tips:
    If you alread have a twrp flashed you can only flash the new installer zip or the new installation method to update your TWRP (remember to flash again magisk or your system will not boot).
    If you have some problems with backup, like 255 error or something similar please check this guide: https://forum.xda-developers.com/oneplus-6/how-to/255-error-twrp-backup-restore-999-t3801632
    For the Bacups use always "system_image" and "vendor_image" instead of "system" and "vendor".

    Download:
    TWRP 3.3.1-17 Unofficial by mauronofrio (Guide included in the link)


    Source code:
    https://github.com/mauronofrio/android_bootable_recovery
    https://github.com/mauronofrio/android_device_xiaomi_laurel_sprout
    Precompiled Stock Kernel

    Donations:



    Credits:

    Thanks to Jyotiraditya Panda for the help with the tree
    Thanks to @mdeejay for the hard testing

    Created 2019-08-31
    13
    So i decided to help @Nik001 to make a better TWRP and support this device in the better way, because i'm unable to follow also this device. His TWRP actualy is really stable and soon will be official.

    This is the new thread to follow: https://forum.xda-developers.com/mi-a3/development/recovery-unoffical-twrp-xiaomi-mi-a3-t3987759

    Moderator please close this thread
    11
    I decided to open again this thread and i decided to update the TWRP for android Q compatibility. I update the first post with a guide and a really similar guide can be found at the download link.

    TWRP 3.3.1-17 Unofficial by mauronofrio (Guide included in the link)
    5
    Hello friends,

    I've removed some posts with rude language and off topic discussion.
    Please keep in mind to discuss on topic and without offending others:)

    I recommend to read the FORUM RULES especially those:


    2.3 Flaming / Lack of respect: XDA is about sharing and this does not involve virtual yelling (flaming) or rudeness. Flaming or posting with a lack of respect is unacceptable. Treat new members in the manner in which you would like to have been treated when you were a new member. When dealing with any member, provide them with guidance, advice and instructions when you can, showing them respect and courtesy. Never post in a demanding, argumentative, disrespectful or self-righteous manner.

    2.4 Personal attacks, racial, political and / or religious discussions: XDA is a discussion forum about certain mobile phones. Mobile phones are not racial, political, religious or personally offensive and therefore, none of these types of discussions are permitted on XDA.




    Regards!

    strongst
    Forum Moderator