yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] DhiGeKu:
otg doesn't work. I'm using Mi A2 4/64. Did anyone has tried using wired headset with adapter? i get this device secondhand and I don't get the 3.5 to type c adapter with it. I'm planning on buying this small dac that connect via usb type c. If its working i'll go and buy it. I borrow my brother's adapter, it doesn't work. Looks like its time to invest in TWS then...
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] Shotg1:
Qored headset and otg not worling its been a long time, i dont know if dev. Are seriously wanted to fixed the major issue although its usable
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] DhiGeKu:
what about bluetooth headset?
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] Shotg1:
Bluetooth is working
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] psshirke.shirke@gmail.com:
Which gapps is to be flashed with rom so that we get play store device certification?
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] evertonjcorreia:
Read the entire thread and will find answers for your question, this was discussed too many times already.
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] mikeioannina:
Google apps issue should be solved in next build, I had forgotten to pick this commit in new kernel: https://review.lineageos.org/c/LineageOS/android_kernel_xiaomi_sdm660/+/281870
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] gaurav713:
Screenrecorder Crash

[MENTION=3839575]mikeioannina[/MENTION] the system screen recorder always crashes. I mean it works for very small clips but when I try to record gameplays, it crashes when stopping the recording, maybe it records it all but fails to finalize and save it, I don't know. I tried third party recorders but they can't record system audio (probably permission thing). It works fine on other roms, at least its fine in Corvus. Would you mind looking into this?

Thank you for your effors so far. Keep up the good work!
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] Ifaisalabid1:
Can anyone confirm if the latest build require root to run gapps or not?
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] Ifaisalabid1:
I can now myself confirm that gapps does not require root anymore. Thanks dev
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] Tbcdevil:
I can also confirm that open gapps nano + latest nightly build lineage-17.1-20200725 is now working.

I did follow the instructions to the teeth, so thank you.
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] Lautaro Mondaca:
Also confirmó nos gapps works well, no root is necessary. Thanks to the dev ROM runs fast as F..
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] androshanki:
OTA UPDATE failed and stuck at recovery... while system reboots after update it changes the boot slot and tries to boot to system.. when I change the slot it boots back to system but the update never installed.. need a proper procedure for installation and updation from the community developers
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] vaibhavdangayachvd:
You need to install magisk to retain gapps before first boot
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] Tbone69:
Just installed latest nightly, with opengapps nano, coming from latest stock ROM, and I can confirm that gapps are working without magisk. No bugs found yet, wired headphones are working. The ROM is very fast. Thanks dev.
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] 04.jeremiah:
Otg also works? ..
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] devilsworkshop:
This is incorrect, the only bug that has been fixed is the Magisk one.

The wired headphones and OTG bug remain.
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] Raskaipika:
Hi mates:

I want to install this fantastic Custom ROM, I've understood all the process, but I've a few questions:

1.- My Mi A2 is at the June stock rom, could be a problem install the lastest nightly version above the June stock rom (at the instructions: recomended May stock rom)?

2.- Do I have to backup the persist partition (and/or any other) from a TWRP recovery booted at fastboot mode.

3.- Other things to do? (Problems related after the flash this Custom ROM).

Thanks for your time and help, regards.
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] arkzifar:
Anyone facing issues with booting into TWRP in the latest build?

In my device, it gets stuck at TWRP splash screen everytime i boot into recovery.

I'm using omni version of Nik gapps.
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] arkzifar:
Yes, I used the first one. Now if i use the scond one, i mean if i use 'flash' instead of 'boot', will it replace the LOS recovery in the active slot? Will i able to boot into TWRP recovery directly using any reboot apps normally?

I normally follow these steps to flash any rom:

1. Flash Rom

2. Flash TWRP (it gets installed in both A and B slots)

3. Switch slot and reboot into recovery

4. Flash Gapps

6. Flash Force encryption disabler

7. Flash Magisk

Using this proceedure i didn't face this issue with TWRP in the 20.06.2020 build of this rom.
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] arkzifar:
You suggest flashing it on the slot that doesn't have LOS recovery. But what i need is to replace the LOS recovery with TWRP so that i can boot into TWRP recovery from installed OS and i don't have to use fastboot to boot into TWRP. So if i want to do this, won't i have to flash the TWRP into the slot that have the LOS recovery. I'm assuming here LOS recovery is installed on the active slot.

And another question.. In my procedure, i flash TWRP after The Rom which gets installed in both slots. So why is LOS recovery still on the phone and interfering with the TWRP recovery?

I just want to get rid of LOS recovery and dunno why they've added it in the rom when we have user friendly recovery like TWRP.
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] devilsworkshop:
1. June stock firmware is fine.

2. Not necessary. (unless you personally want a backup)

3. Go through the thread and read about the various minor bugs this ROM has.

I've had this happen with me using official LOS and official TWRP. Doesn't happen on any other ROM, I can't figure it out. Try using an unofficial build, I use the 4pda one, it works every time.

It should not make a difference whether the recovery is flashed or run directly. Whether loaded over USB via fastboot or whether loaded from the phone's internal memory, it's loading and running the same thing either way.

If you flash the recovery to boot using fastboot, it will replace the ROM's kernel, so the ROM won't boot unless you flash it again. The "proper" way to flash the recovery is to use the recovery .zip installer, that patches the boot image instead of overwriting it.

However, it should not be necessary to flash a recovery at all. I have flashed ROMs hundreds of times on different A/B devices and have never flashed a recovery because it just makes things more complicated.

Remember, A/B devices do not have a recovery partition, so by flashing a recovery using a recovery .zip, you're basically squishing it alongside the kernel by patching the boot image. You can never really install a recovery.
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] devilsworkshop:
No.

You are thinking about non-A/B devices. On those, the recovery gets flashed into the recovery partition.

On A/B devices, there is no recovery partition

LOS does not "flash" any recovery. There is nowhere to flash the recovery, because there is no recovery partition.

The recovery is simply a part of the LOS boot image.

TWRP does not require the encryption password to install or update any ROM.

ROMs are installed in the /system partition, which is not encrypted.

The LOS recovery is not used for updating LOS.

LOS updates are carried out from inside LOS.

If you are new to A/B devices, please read about them and try it out yourself before spreading misinformation.
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] Badotti:
I tried to install following the official tutorial, with the recovery itself ... But the error in 47%, the cell shows step 2/2 and adb shows an error ... I tested it with another cable, another USB port, without success ... Installing through TWRP I fall right into the fastboot screen after installation ... Can anyone help me?
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] Lautaro Mondaca:
maybe your zip are corrupted, try download again
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] devilsworkshop:
I read your post very carefully, and you do not mention any such thing.

I did not suggest using the unofficial ROM, I suggested using an unofficial recovery.
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] Manosdocpap:
The ROM is absolutely FANTASTIC! Thank you thank you thank you for the effort to build and compile it
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] k.stahanov73:
Have you fixed the problem of broken headphones and OTG?
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] archienesss:
Rom is now installing without any issues using the official guide. No magisk needed for gapps. Any gcam recommendation? Kudos to the developer and this community ?
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] Manosdocpap:
The dise's one
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] archienesss:
thank you sir! would you also happen to know why netflix is not working for LineageOS? Same thing is also happening with my older phone with LOS14 in it :(
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] Raskaipika:
Thanks for the info mate, I'm not able to install a driver wich make my A2 be recognized by the Xiaomi Flashtool, because I want to install the stock ROM recommended to install LineageOS.

I've tried everything that I've read at XDA developers forum and internet, I've tested the Xiaomi Flashtool drivers and others found at Internet with no luck (installing them with and wothout signature drivers requeriment), I don't know what more to do. I got everything ready to begin with the flashing process, but I'm stuck at the Xiaomi Flashtool process, it doesn't matter which driver and/or how ti install it, the program doesn't "see" my smartphone.

Can you help me guys??

EDIT: I've unlock the bootloader, I've made a backup of all stock partitions (June stock rom) booting TWRP from fastboot command (fastboot boot "twrp...img", and of course, I've checked if USB debbuging was enabled (it was), but like I said before, I can't make recognized my smartphone at Xiaomi Flashtool.

EDIT2: At this moment I set like active partition the slot B, which has installed the June stock ROM, can I procced or do I have to make something more to begin the install process?
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] Raskaipika:
No, I don't have tried that, because I prefer don't make manually, call me dumb, but...

I want to flash the June stock rom (recommended to install this custom ROM).
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] azakosath:
If you already unlocked your bootloader, then you have the required drivers.

You can download the fastboot image for stock ROM from here, extract it, first the tgz file and then the tar file (use 7zip), enter the folder, connect your phone in fastboot mode and then click on the flash_all_except_data.bat or the flash_all.bat file (in these batch files are all the fastboot commands for flashing all partitions). Boot once, enable USB debugging and continue with the official instructions. DO REMEMBER, always use USB 2.0 port and a PC without Ryzen CPU.

Good Luck!
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] Raskaipika:
Thanks mate, I've read that thread (which has the Fastboot images), I got the May stcok rom (V11.0.10.0.QDIMIXM) downloaded to flash it, because is the stock rom recomended. I think the same than you, that I have the required driver installed already (installed from Xiaomi Flashtool without the signed requeriment), because I've been able to make everything (adb and fastboot commands works well) like boot TWRP 3.3.1-0 at fastboot mode to make the backups of all partitions, unlock the bootloader...

My problem with Xiaomi Flashtool is that the program doesn't recognize my smartphone, by the way, if I execute the command "fastboot device -l", my device is detected and I can send commands without problems, but ever that I click-in in the "fresh button", the program show the next message:

"Length can not be less than zero".

I've tried three different versions with the same results, and for your info, the drivers installed with Xiaomi Flashtool program are from Xiaomi (2016) and the device appears at the device manager as "Android bootloader interface" which is correct without codes like code 10 etc

I don't know what more I can do to flash the May stock rom to begin with the installation procedure.

P.S.: Following this guide [GUIDE] Flashing and updating custom ROMs, after unlock the bootloader with the fastboot command "fastboot oem unlock" and rebooting to the system and enter again at the fastboot mode, I typed the next commands (watched at the comments) to be sure that the problem isn't related with a "manufacturer's protection":

fastboot flashing get_unlock_ability

P.S.S: One last thing, the TWRP version that I've used to make the backups of all partitions was the 3.3.1-0 because the lastest doesn't work for me, I though that this version is for Android 10, no??
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] azakosath:
[MENTION=7467444]Raskaipika[/MENTION], to be honest mate, I've never used the Mi Flash Tool for flashing, I just got the drivers from it. As I can see you are familiar with command line and fastboot, just do it manually, the flashtool is doing just the same (runs the batch files). One thing I could think about is to use an older version of the MiFlashTool, or to run it "as Administrator". An other thing is the path to folder of the ROM, use a short path, without spaces "e.g C:\Users\user\Download\ROM".

Cheers.
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] Ifaisalabid1:
Use mi flash beta. Just Google it. It works
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] luciouslawliet:
How about OTG and Dongle Earphone? Still no detect or fixed?

And please check CTS with Safetynet Test
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] luciouslawliet:
CTS still failed I see.

If you have Type-C OTG to Type-A e.g. flashdisk you can check.
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] arkzifar:
Don't you guys think microphone audio is too low in this rom? I tried recording in both LOS default and Google camera. And I get the same result.
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] Ifaisalabid1:
Is anyone facing random reboots?
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] evertonjcorreia:
After 3 or 4 successful otas today I got the infamous "Can't load Android system. Your data may be corrupt" error. Phone boots if I change slots manually, but I tried reaplying the update and the error persists. Any way I can fix this problem?
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] k.stahanov73:
Yes.

Are your headphones & OTG working for you?
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] Lautaro Mondaca:
No

Im in latest 08-01 clean flashed
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] Ifaisalabid1:
Yeah! Power off your device and then power it on. It will work
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] archienesss:
hello sir,

May I please know what it means that CTS failed?
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] hazman.haniff:
Same here, on latest havoc and pixel experience is all the same..
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] devilsworkshop:
Yes, this is a known bug on this ROM. The microphone audio is not only low, but weirdly distorted.

HavocOS does not have this bug, but PE is now based on the LOS sources and therefore shares this bug.
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] PHPoenX:
OTG dont work on latest build
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] jskeletti:
Do you plan to fix the headphones issue? I need them very often.

Do I still have to flash magisk to the inactive slot after ota update?
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] Tbone69:
lineage-17.1-20200808-nightly-jasmine_sprout-signed.zip, installed fine, no problems here
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] Ifaisalabid1:
Are random reboots fixed in latest build?

---------- Post added at 03:47 PM ---------- Previous post was at 03:44 PM ----------

Headphone issue is not there. Just power off your device and then power it on. It will work. Don't click the restart option.
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] johnthreesixteen:
Hey!

I got 2 Mi A2 phones for me and my wife, because we wanted to go de-google, so we got these and installed LineageOS. It all worked fine, but as some stated alrdy, there is a microphone bug. So as a mobile-customizing noob i wonder: will there be a fix for that or should i sell them and get another phone for LineageOS without such bugs?

Thanks for your advice!
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] eonden:
updated via OTA from a previous version (back from july) to the latest one (8th august) and no problems till now. I installed gapps and magisk the first time, this time I didn't need to do any further installation.

I was also facing random reboots. hope it is fixed now.
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] Lautaro Mondaca:
Been using this for two weeks without bugs or random reboots (no magisk) maybe the problem is some magisk module
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] eonden:
could be. but i've read some previous comments from users that say they are having this issue too. nevertheless, if you have been here for two weeks, it means you have a more recent build than i do, before updating today.

talking about magisk modules, I have a bug (i don't know if i'm the only one) i have installed the module that allows to choose between the 2 back cameras in gcam. i also have activated that buttons, but they're not showing.
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] Muthu_IN:
Bug Fixed?

Is 3.5mm Headphone adapter working now for wired audio? Does OTG work now?
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] jskeletti:
Can confirm: no headphones issue after shutting down the phone (NO RESTART!).

Is there no update this week? The phone seems very laggy after last update.
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] Lautaro Mondaca:
I don't feel any lag. The roms is really fast and fluid for me. Maybe there's is some app slowing down your phone
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] Muthu_IN:
Does Indian UPI/Banking Apps work without rooting ?
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] psshirke.shirke@gmail.com:
Getting random reboots and device can't be connect to pc via USB .

Using latest lineage os build with nano gapps and using latest lineage os recovery .

What could be the raeson?
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] mdimarucot:
For random reboots, try flashing latest firmware. Fllashing July firmware solved this for me.

For USB, enable developer options, select default USB configurations, then select file transfer.
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] psshirke.shirke@gmail.com:
What is the exact process to update firmware , do I need to clean flash and flash rom and gapps again?

And another question is , I am not getting play store certified .

And about usb , I get option in notification bar that to choose option about file transfer and other option too but it don't get noticed in pc .
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] mvgjaa02:
flashing latest firmware means flash stock rom for example with miflash - not just os, but also firmware updates are included (for gsm module etc.).

Linage is not certified for play store and they fair clean game (no workaround for fix).
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] mdimarucot:
You can download a firmware only zip (no need to use mi flash or going back to stock). Flashing firmware doesn't need clean flash.

Los doesn't pass playstore certification, so I am using magisk hide props config, of course you need to be rooted.

For USB, yes you have an option in the status bar, but try to select the USB file transfer in the developer options if it works.

PS, since we have lineage recovery, we need to boot TWRP (not install), use the TWRP that supports encryption to install firmware zip. Sadly official TWRP doesn't work well with lineage in our device.
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] psshirke.shirke@gmail.com:
Thanks , so which twrp ?
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] mdimarucot:
This one.

https://drive.google.com/drive/folders/1NRlv58EiQ_YlMjrpLYKzOqIob2Vq3kYE

Check the guide also. https://xdaforums.com/mi-a2/how-to/recovery-mi-a2-jasminesprout-t3941096/amp/
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] sclip:
Do wired headphones work perfectly now without resorting to reboots, etc.? This is critically important to me.
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] enapah:
What are the fingerprints/props you are using?
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] mdimarucot:
Mi A2 Android 10 only.
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] enapah:
[MENTION=6253745]mdimarucot[/MENTION] For some reason, I had messed up my props fingerprint selection. Many thanks for bringing this up, otherwise I would have never fixed my configuration.
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] Lautaro Mondaca:
Two weeks without weekly updates, what happens?
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] Tbone69:
Their infrastructure guy is moving, he houses the signing server witch goes down when he moves. That's the reason buils are failing, next week things should be back to normal.
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] Manosdocpap:
On microG Lineage OS build is 19/08/20 and works flawlessly
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] Viggen66:
It seems my phone has an issue with Lineage 17.1, I have installed latest stock rom from Xiaomi with android 10, to flash latest baseband (modem,etc) based on android 10, after I go to normal procedure, fastboot > twrp > flash rom > change slot > twrp > flash gapps > flash Magisk, (twrp is the recommend one based on 4pda forums) no errors on flashing but when phone boots after a while, just says phone has not able to find system, it goes to some recovery probably lineage recovery, and gives me 2 options, try again or wipe and do factory reset, and it doesn't go behind this, does anyone here knows what's wrong with my phone?

Thanks
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] vasyekv:
What section you use? A or B ? And which section is active? A or B?
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] Viggen66:
To flash main rom I use A, which is B on twrp, then change to B for gapps and magisk, which is A on twrp
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] Phil_Smith:
The slot thing (start in a go to b or vice versa) doesn't matter at all.

Your previous proposition that slots are supposed to be declined as their opposite is simply wrong.

A ROM is always being flashed into the opposite slot is all you need to know and why you need to change slots after flashing the ROM (that is when wanting to flash gapps or Magisk anyway).

I would instinctively say using the twrp version from 4pda might be the issue.

I recently tried it and it was extremely buggy and I had to switch back immediately.

Try the official twrp and I assume you might be good.

(After thinking of external backups!: )

A clean flash (wiping dalvik, cache, boot, system, vendor) including formatting (type "yes" way) of the data partition is recommended coming from such issues always btw.

Best wipe everything in both slots before formatting data and then try again (after rebooting to recovery).
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] Viggen66:
Again and again this happens View attachment 5085087