yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi A3 ROMs, Kernels, Recoveries, & Other De] Golbinex:
You can't update with root? I can't help you with that. Try to ask in Question category. But it could work after uninstalling magisk.
[Xiaomi Mi A3 ROMs, Kernels, Recoveries, & Other De] epirater:
Will this recovery work with the new official Android 10 rom?
[Xiaomi Mi A3 ROMs, Kernels, Recoveries, & Other De] Golbinex:
Yes, you can flash stock Android 10 ROM with this recovery.
[Xiaomi Mi A3 ROMs, Kernels, Recoveries, & Other De] teloklavo:
thanks for your time, excellent work, the question is: can you install once you have installed android 10 by miflash
[Xiaomi Mi A3 ROMs, Kernels, Recoveries, & Other De] diogoc17:
I'm having this problem flashing twrp.

I dont understand whats wrong. Can you Help me?

Thanks

Sending 'recovery' (39780 KB) OKAY [ 0.925s]

Writing 'recovery' FAILED (remote: '(recovery_a) No such partition')

fastboot: error: Command failed
[Xiaomi Mi A3 ROMs, Kernels, Recoveries, & Other De] Golbinex:
Follow install instructions, you flash to the boot partition, Mi A3 doesn't have recovery partition.
[Xiaomi Mi A3 ROMs, Kernels, Recoveries, & Other De] Robin>Hood:
I have the exact same problem. I followed the guide, everything went fine, flashed SuperiorOS, then wanted to change to Havoc I believe and somehow TWRP told me no OS was installed all the time, updated to Android 10 first (per the instructions with the rom). Nothing. Used Miflash to get back to how I got it from the retailer, even locking it again, but nothing seems to help. Everytime I try to flash TWRP it boots into fastboot.

Also, when flashing with miflash now the progress bar keeps running and I just have to reboot it manually most of the time, sometimes it shows "pause" and its finished, sometimes it flashes like it should. Really strange behaviour which I have not seen before.

So simply put, after first succesfully flashing TWRP and a custom ROM now the same steps will not get me into TWRP and I can just get into Fastboot or the Stock rom. Can't seem to find a solution for that, I am hoping somebody here can help me out.

Looking at [MENTION=5057272]Typhus_[/MENTION] and [MENTION=7284748]Sapper Morton[/MENTION] especially since you guys really seem like the ones who totally get it. I think I do get but apparently I am missing something critical here :confused:

SOLUTION:

https://xdaforums.com/showpost.php?p=82087765&postcount=3
[Xiaomi Mi A3 ROMs, Kernels, Recoveries, & Other De] epirater:
If I flash stock rom with fastboot, will my user data be affected? Does it matter which slot?
[Xiaomi Mi A3 ROMs, Kernels, Recoveries, & Other De] ron. r:
Hi.

Can i flash twrp without deleting internal storage?
[Xiaomi Mi A3 ROMs, Kernels, Recoveries, & Other De] Golbinex:
Your internal storage will be wiped after flashing stock rom.
[Xiaomi Mi A3 ROMs, Kernels, Recoveries, & Other De] PodiApps:
Hi, Is it worked for you ?
[Xiaomi Mi A3 ROMs, Kernels, Recoveries, & Other De] Typhus_:
TWRP.img compatible with Android 10

Download HERE!

MD5: 4c0cde511d333d38267a9aa90257e17f

This img file is the latest Android 10 stock boot.img (11.0.14) patched with official TWRP.

Cheers!
[Xiaomi Mi A3 ROMs, Kernels, Recoveries, & Other De] papafan:
How unistall the previous q- base twrp.img? I am rooted with magisk and I use the twrp recovery. Which is the right installing order all of them I mean the OTA updated, the root and the new twrp image?
[Xiaomi Mi A3 ROMs, Kernels, Recoveries, & Other De] Typhus_:
The TWRP img I've shared is only meant to be used by users who still don't have TWRP installed on Android 10 stock ROM or by anyone who decides to reflash stock Android 10 ROM after being on any other ROM.

If you already have TWRP permanently installed on your device and running Android 10 (stock or custom) you don't need this.

Cheers!
[Xiaomi Mi A3 ROMs, Kernels, Recoveries, & Other De] Frank.G:
Hi [MENTION=5057272]Typhus_[/MENTION]

What's the difference if I follow this step?

Thank you.
[Xiaomi Mi A3 ROMs, Kernels, Recoveries, & Other De] Typhus_:
I've wrote why on the end of that post you've just quoted. Anyway, it's not needed if your goal is only to work on the active slot. That's meant to be used by people who like to experiment things like changing boot slots between reboots. On other words....you may ignore it.

Cheers!
[Xiaomi Mi A3 ROMs, Kernels, Recoveries, & Other De] Frank.G:
I see, thanks for the explanation :)

One more quick question, both ways won't affect OTA right?

I'm from samsung devices, this is a new world to me, thanks for your time.
[Xiaomi Mi A3 ROMs, Kernels, Recoveries, & Other De] Typhus_:
OTA's get affected if you tamper with system and/or vendor partitions. TWRP permanently installed can break OTA (or not, i dependes if you allow system modifications when installing it).

Either way the subject you were talking about has got nothing to do with OTA updates.

Whenever I install TWRP is exactly to change a lot of stuff, so, yeah, I really tamper everything. Therefore the only way I can get OTA's is to flash the OTA zip file through TWRP or (if the OTA zip file wasn't captured by anyone) I have to do what I've explained HERE.

Cheers!
[Xiaomi Mi A3 ROMs, Kernels, Recoveries, & Other De] ceylas:
How can i flash persist image, my fingerprint driver are erased because downgrade

Mi A3 cihazımdan Tapatalk kullanılarak gönderildi
[Xiaomi Mi A3 ROMs, Kernels, Recoveries, & Other De] oseraphaels:
Please help me.

I updated a custom ROM and noticed that my TWRP changed to SHRP, I tried flashing the TWRP and got stuck in fastboot.

After many futile attempt I resorted to fastboot flashing a stock ROM, now I'm stuck on bootloop, please what can I do?
[Xiaomi Mi A3 ROMs, Kernels, Recoveries, & Other De] Typhus_:
Since you've flashed stock ROM through fastboot probably your active slot is b. On that slot you just have a "dummy" system image.

Change to slot a and reboot.
[Xiaomi Mi A3 ROMs, Kernels, Recoveries, & Other De] Abdou.rk:
Hello,

Is this version of TWRP fully compatible with android 10 (for people who tried flashing it on stcok A10 rom)
[Xiaomi Mi A3 ROMs, Kernels, Recoveries, & Other De] arifqur:
Yup the installer works great with Android 10 but fastboot'ing the recovery image is not reliable, if flashing over the A10 stock 11.0.15 May update
[Xiaomi Mi A3 ROMs, Kernels, Recoveries, & Other De] shlok_01:
---------- Post added at 10:22 AM ---------- Previous post was at 10:22 AM ----------

[/COLOR]Hello!

I am running A10 v11.0.14 QFQMIXM on my Mi A3.

I have been trying to install Twrp Recovery but every time I flash it on slot B(fastboot set_active b), and try to force reboot the phone pressing Vol+ key before entering "fastboot reboot" command , the phone always boots up in bootloader(Fastboot) mode and never into recovery.

Previously when I was running Android 9, this process seemed to work perfectly but now after updating to A10 it does not.

Please help.
[Xiaomi Mi A3 ROMs, Kernels, Recoveries, & Other De] msatyanarayana:
Use TWRP 3.3.1-17 Unofficial by mauronofrio (Guide included in the link). After rebooting to recovery, flash any other Recovery installer.
[Xiaomi Mi A3 ROMs, Kernels, Recoveries, & Other De] shlok_01:
followed these steps and successfully installed TWRP 3.3.1-17 Unofficial by mauronofrio. However, is this recovery stable for flashing latest A10 based roms? Please suggest any stable recovery for flashing A10 roms! :)

Thanks and Cheers!: good:
[Xiaomi Mi A3 ROMs, Kernels, Recoveries, & Other De] msatyanarayana:
I have no idea about TWRP 3.3.1-17. I use always SHRP Recovery, to flash A10 based Roms, as per the instructions given in OP either Stock or Custom Roms.
[Xiaomi Mi A3 ROMs, Kernels, Recoveries, & Other De] pablog_86:
From which base ROM are you coming? Pie or Q?

If it's Pie you can use 3.3.1-2 (Nik001). If you come from Q you would prefer to use 3.3.1-17 (mauronofrio). This is because every recovery has its own kernel inbuilt to work.
[Xiaomi Mi A3 ROMs, Kernels, Recoveries, & Other De] Jhon_Locke:
This image didn't worked for me. My phone updated to Android 10 after I finally rebooted it (was trying to avoid that) and whenever I flashed this my phone didn't wanted to boot to recovery nor system only booted to fastboot. Flashed twrp image on OP and it worked well.

Edit: OK, don't mind what I wrote up there, I was doing it on the wrong slot lol, this image works like a charm.

One question about that image, can it decrypt phone data? Because I don't see an option
[Xiaomi Mi A3 ROMs, Kernels, Recoveries, & Other De] Typhus_:
It should. If the data storage is encrypted, as soon as TWRP boots up it should ask you for your pattern/pin/password.
[Xiaomi Mi A3 ROMs, Kernels, Recoveries, & Other De] Jhon_Locke:
Well, that's weird, it didn't asked me for my PIN when I booted to recovery, it did asked me when I booted to OP's recovery. I swear this phone hates me lol

I tried to flash a ROM but it doesn't want to boot, it goes directly to fastboot. Could be the recovery?

I've wiped everything on the phone on both slots, flashed the ROM, flashed TWRP, rebooted and... boot to fastboot.

Edit: Got it working in the end, don't know why now works but it booted OK so the recovery is fine.
[Xiaomi Mi A3 ROMs, Kernels, Recoveries, & Other De] ViboraNegra:
Hi Guys,

A direct question: Has anybody been able to apply an OTA update to this phone once this TWRP is installed (and the phone rooted with Magisk)?

Here is the long version of the story: I asked a similar question in this thread around December, but nobody was really able to give specific instructions. There are a number of references, but everything is very scattered. A few weeks ago (mostly nagged by the constant "security update available" messages in the phone) I tried an update, following the instructions in this web site (The Custom Droid), which seemed to align with what I have read here and in other sites:

https://www.the***********.com/install-ota-update-rooted-android-device-guide

It did not go well. The procedure itself seemed to work fine, but upon reboot it entered a sort of boot loop in which I could only boot to either fastboot or the twrp recovery (depending on whether I changed the slot from A to B in twrp). No way to boot normally. In the end, I bit the bullet and simply reinstalled the full updated ROM again (the full *.zip file was available) from TWRP. Fortunately, I had backed up the most important stuff, but it was still a bit of work.

So, now I find myself with a full working A3 (again), rooted with Magisk and with TWRP installed (again) and with Android 10. I have already started to see popus with the "update available", and I find myself in the same situtation as before regrading OTA updates. Actually, this Android 10 ROM from Xiaomi has a number of annoying bugs, so the update seems more necessary than it was at the end of the Android 9 line.

So... has anybody who has the rooted&TWRPd phone been able to install an OTA update, and if so could he or she go over the detailed procedure? I would be very thankful, and I am sure many other people who are in the same boat would also appreciate it.

Thanks!
[Xiaomi Mi A3 ROMs, Kernels, Recoveries, & Other De] rgnicholas:
TWRP / Encryption / Proper method... Q

Hello all, let me start by saying that I have done some research and reviewed a LOT of posts and even some other sites. I am not a complete newbie, but I am a bit new to the A / B slot thing. I waited patiently until I received the stable Xiaomi official "Q" update, because I thought it would be best. That said, much of the discussion on the various threads across the MI A3 forums are focused on Pie (understandably so). So, when a newcomer starts looking for answers, you have to be very careful to not follow the wrong train of thought.

I finally decided to flash a custom recovery and root my phone. It seemed successful but I ended up with encrypted data, which I do not prefer. So, I hope someone can give me some insight as to why this happened. I stayed with my stock ROM, but soon I am sure I will start flashing some custom ROMs and I do not want to make the same mistake over and over. Plus, it is a pain to be forced to use a password to access TWRP and make a proper backup.

I unlocked the bootloader and successfully changed slots

I used the "twrp-3.3.1-17-laurel_sprout-Q-mauronofrio.img" in the process of gaining TWRP, then flashed the "twrp-3.3.1-2-unofficial-installer-laurel_sprout.zip", changed slots and now have TWRP

immediately upon re-entering recovery, I was asked for a password... at this point, I believe I simply clicked cancel to get into TWRP and could flash Magisk ok

so, can I assume that when I flashed the mauronofrio image, this is when things got encrypted? If so, how can I make sure this does not happen again? I am not complaining about the hard work of devs who help create images, mods, ROMs, etc... I just want to increase my knowledge to prevent future mistakes.

lastly, what is the easiest way to decrypt my data at this point... and if I flash another ROM (Evolution X, for example), will it encrypt my data again?

Again, thanks for sharing your knowledge and maybe some of you might write new comprehensive tutorials (or add to old ones) for the people who have moved up to Q? Just a thought.
[Xiaomi Mi A3 ROMs, Kernels, Recoveries, & Other De] garylawwd:
The device is encrypted by default. You have to format your data partition which will erase all your data and then in twrp flash an encryption disabler zip to disable it.

It's not a huge deal with the device being encrypted. The lock in twrp for decryption is the same as your lock screen password in the os.

It's alot safer to have encryption enabled especially with a custom recovery like twrp because if you ever lost your device people would have root access to the whole device through twrp and some passwords and things stored locally on the device could be stolen but with encryption enabled they would still need a password to access these files.

What is the reasoning behind disabling encryption anyway?
[Xiaomi Mi A3 ROMs, Kernels, Recoveries, & Other De] rgnicholas:
In a way, it is not a big issue... it is just different than my "habit" and occasionally I dabble in building ROMs, etc. So, mostly I am gaining info for the future. I know it is safer to keep the encryption. Heh, I'm not a young guy anymore, so I suppose I am just set in my ways. :) Thank you for the feedback.

Again, for my own knowledge, you say the device is encrypted by default... I did not enable encryption while it was pure stock... so, at what point did the encryption happen? When I used the modified boot image?
[Xiaomi Mi A3 ROMs, Kernels, Recoveries, & Other De] garylawwd:
Encryption happens the very first time you boot your brand new mi A3 and set a lock screen pin.

Also if you flash a ROM you must format data afterwards to remove encryption (if that's what you want) and then flash an encryption disabler. The patch_no fde zip you see floating around these threads does disable encryption but also does a couple more things I'm not all too aware of so I try stay away from it. I know there is a zip for just disabling encryption but I cannot remember where I seen it (hopefully someone else can help you there)

Anytime thereafter when you format your data the encryption gets re-enabled and the encryption disabler must be flashed again or upon booting your data will be encrypted once again once you set a lock screen password
[Xiaomi Mi A3 ROMs, Kernels, Recoveries, & Other De] rgnicholas:
Hey, thanks again sir for the good info. I will claim a "duh" moment about initial encryption. I have always used a passphrase for lock-screen security. I suppose I just never looked at the settings to verify.
[Xiaomi Mi A3 ROMs, Kernels, Recoveries, & Other De] Fred98TJ:
Ok, just found this forum.

Phone is stuck in fastboot mode. I was trying to install the crDroid custom rom and there are too many ways when searching around the web.

Anyway:

bootable slot a = no

Bootable slot b = yes

Retry-count on slot a and b are both at 6

However I can’t seem to get TWRP to boot.

Getvar current slot =b

Fastboot flash boot TWRP.img

Reboot (holding the vol+) and just goes to fastboot

I have a backup of the phone on my pc (TWRP nano backup)

Note: I had TWRP working a while ago but fastboot -w while on slot a seems to have started this problem

Any suggestions or just use as a colorful paperweight and get another A3 ?

Thanks all.
[Xiaomi Mi A3 ROMs, Kernels, Recoveries, & Other De] Rajendran Rasa:
Flash stock ROM in fastboot

Then flash shrp recovery in fastboot
[Xiaomi Mi A3 ROMs, Kernels, Recoveries, & Other De] Fred98TJ:
Thanks.

Is the stock RAM going to be in one of the folders from the Nano (TWRP) backup that I did before I started messing around with everything .

Also does shrp flash to slot b then .
[Xiaomi Mi A3 ROMs, Kernels, Recoveries, & Other De] Sami Devo:
Best twrp !! Using on 9?
[Xiaomi Mi A3 ROMs, Kernels, Recoveries, & Other De] whirlwind.bonobo:
Unable to change partition with latest platform tools

Dear Typhus,

I am a noob to xda and this is my first post, but have been using custom ROMs for the past 3 years. Using the recovery partition was fairly easy, but A/B is driving me nuts.

I have tried to follow these instructions to the T, unfortunately my MiA3 is refusing to behave. I have the latest platform tools, but I am simply unable to change my partition to b. getvar current-slot works and tells me I am on partition 'a'.

I have tried various combination of fastboot commands such as:

fastboot set_active=b

fastboot set_active b

fastboot -ab

fastboot --set-active=b (when I use double hyphens, the text grays out in PowerShell)

I almost always get this error, and the commands list pops up.

usage: fastboot [ <option> ] <command>

(or) in case of the last command I get this error "unknown option -- set_active=b"

I also tried the method of erasing the boot partition and flashing twrp to the boot partition. I am unable to boot into recovery. I press Vol + and then execute 'fastboot reboot', but it always boots back into fastboot mode after the android One logo. Am I supposed to wait till the Android One logo flashes, before I execute the command in PowerShell? I waited for up to 20 seconds and nothing happened.

I don't know what I am doing wrong. I have been trying to get this to work for the last four hours and am really sleepy - hope I have not missed something elementary in the process. Let me know if you need screenshots (I can't find an attachment button to upload files from my PC, do I have to host the images somewhere to be able to post it? - sorry I have never used XDA before)
[Xiaomi Mi A3 ROMs, Kernels, Recoveries, & Other De] garylawwd:
Try putting .\ before like this

.\fastboot --set-active=b

And if that's not it make sure you typed it correctly it's

fastboot --set-active=b

And NOT

fastboot --set_active=b
[Xiaomi Mi A3 ROMs, Kernels, Recoveries, & Other De] Sami Devo:
Its because u r using old platform tools.. use version 30... And check install all drivers.
[Xiaomi Mi A3 ROMs, Kernels, Recoveries, & Other De] whirlwind.bonobo:
Thank you!! ".\fastboot --set-active=b" worked for me!!
[Xiaomi Mi A3 ROMs, Kernels, Recoveries, & Other De] whirlwind.bonobo:
Booting into twrp after flashing - Vol up?

Hi- I have managed to flash twrp into partition b now, but I am still unable to boot into recovery. Before executing fastboot reboot, I pressed the vol up key for around 30 seconds, but the android one logo did not appear. After that I tried rebooting and then immediately pressing volume up key, it still did not boot into twrp and instead went into fastboot. Then i tried just pressing the vol up key for ten seconds and then tried to reboot (while pressing the vol up key), it still just reverted to fastboot and did not boot into twrp. Am i doing something wrong? Screenshots for my commands are posted with various permutations and combinations that I have tried. I am using official twrp 3.4.0 [IMG="Screenshot 1"]https://img.techpowerup.org/200707/screenshot-237.png[/IMG][IMG="Screenshot 2"]https://img.techpowerup.org/200707/screenshot-238.png[/IMG]
[Xiaomi Mi A3 ROMs, Kernels, Recoveries, & Other De] garylawwd:
Because you flashed twrp to slot a and then tried to reboot slot b.

Just flash the boot.img and the very next command is fastboot reboot and hold vol up.

Don't flash twrp to slot b and then switch back to slot a. Boot twrp from whatever slot you flashed it on
[Xiaomi Mi A3 ROMs, Kernels, Recoveries, & Other De] whirlwind.bonobo:
Thank you for your response.

Yes- I tried that. If you see the screenshots - every time I have tried fastboot reboot I have tried to restart with the vol button help up. I tried with both partition a using 'fastboot flash boot twrp.img' as well as './fastboot flash boot twrp.img'. In both cases it is rebooting to fastboot.

I think I am not understanding the precise sequence of key pressing. Should I press vol button immediately after executing reboot, before executing reboot? or simultaneously? Also how long should I keep vol button + pressed?

Also is there any other combination of keys that I can shut down directly from fastboot and then try to boot into recovery? I googled, but I could not find any solution - I have tried vol down + power to shut down, but it doesn't work, it just restarts and goes back to fastboot mode.
[Xiaomi Mi A3 ROMs, Kernels, Recoveries, & Other De] garylawwd:
Press vol up as you enter the command and don't let it go untill you see twrp.

If you are on Android 10 make sure the twrp.img is for Android 10. Same goes for Android 9 it has its own twrp.
[Xiaomi Mi A3 ROMs, Kernels, Recoveries, & Other De] Tharun Namboothiri:
Unable to force boot to recovery after flashing TWRP

[MENTION=5057272]Typhus_[/MENTION] and [MENTION=6569827]Nik001[/MENTION] : SO, I downloaded the latest Official TWRP from website and followed your instructions exactly as you have mentioned. However, after flashing the TWRP to slot b and then forcing reboot to recovery, my phone jumps back to fastboot :( Please help me asap as I don't have any other phone as of now and really need to fix this.
[Xiaomi Mi A3 ROMs, Kernels, Recoveries, & Other De] Muda42:
Is there a backup option for the EFS Partition ?
[Xiaomi Mi A3 ROMs, Kernels, Recoveries, & Other De] batata004:
I am having this same exactly problem. This TWRP for MI A3 is ****! PIECE OF ****! Tried everything, all possible commands and no luck. Complete waste of time. Incredibly, using skyhawk recovery everything works fine. Someone should delete this thread cause many people will waste their time flashing this TWRP in MI A3 and it's impossible to boot to recovery, everytime it boots to fastboot.

Terrible thread, this should be deleted.

Just so you know, I have pixel experience (android 10) on my phone and I messed up something. Than I executed tons of commands combination on fastboot (changing slots, not changing slots, flashing boot stock.img, not flashing boot stock, then after that flashing twrp.img...). Every single time I reboot, it comes back to fastboot (I am holding the volume up button, I am not doing anything stupid because the same exactly thing works perfectly with skyhawk).
[Xiaomi Mi A3 ROMs, Kernels, Recoveries, & Other De] garylawwd:
Because this twrp is built with android 9 kernel and won't boot on Android 10. Mentioned numerous times in the thread also. You have to be on Android 9 for this recovery.
[Xiaomi Mi A3 ROMs, Kernels, Recoveries, & Other De] batata004:
I never saw anyone mention that TWRP does not work on XIAOMI MI A3 with Android 10. Also, in the official page at https://twrp.me/xiaomi/xiaomimia3.html it does not say ANYTHING that TWRP would only work on Android 9. This makes lots of people waste time trying to use TWRP, following tons of different tutorials online... just to discover at the end that TWRP does not work on ANDROID 10 and there is absolutely no warning in the official download page of TWRP specific for xiaomi mi a3? I cant believe this is right.

Also at https://xdaforums.com/mi-a3/development/recovery-twrp-3-4-0-0-patched-boot-img-t4123287 there are download links to ANDROID 10 VERSION and none of them work!

So what is the truth?