yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] DhiGeKu:
so this is how I flash this rom

-boot to bootloader then boot to TWRP using fastboot

-install the rom (wait until the rom finished installing and don't reboot, just go back to TWRP homescreen)

-change slot in TWRP reboot menu and boot to bootloader from TWRP reboot menu

-boot to TWRP using fastboot install gapps and magisk if you root is necessary (or you can boot to recovery and install gapps and magisk using lineage included recovery but i don't have any good experience with that)

-reboot to system and done.

hope this will work for you.

PS: I didn't use official TWRP, i use twrp-3.3.1-5-jasmine_sprout-unofficial (that's the filename, i forget who made it or where i find it, in this thread maybe. I downloaded it a long time ago)
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] d_g_m_2000:
sounds to me like is twrp that is failing...

try the official tutorial from lineage wiki.. it works for me with the lineage custom recovery for this device.

Install LineageOS on jasmine_sprout | LineageOS Wiki

wiki.lineageos.org

also, check that you have the xiaomi drivers and the adb properly installed on your pc (intel)
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] azakosath:
@mikeioannina, first of all a huge thanks for bringing LOS 18.1 to Mi A2. Migration was smooth, just the email app is missing, I hope we get it back next week.

Edit: never mind, just read a review saying that email app has been abandoned...

@Bazylsky, the background is black.
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] Bazylsky:
Is the background for the shutdown screen transparent or black for you?
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] Rahul#007#:
Does Lineage os 18.1 contains bugs,or should i wait for some time
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] Tbone69:
Black
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] Tbone69:
The only bug I have found is after a restart sound is gone in apps, fixable with a shutdown. Very stable and fast (dirty flash over 17.1)
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] Rahul#007#:
Ok thanks bro,but is it as smooth as Lineage os 17.1
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] Tbone69:
Geekbench scores are better, I didn't notice any speed change and battery life is similar to 17.1
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] cazkiller:
i can't play Spotify build 18.1-20210424
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] Jd9_:
The gps does not seem to work in google maps, has someone fixed it?
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] Rafinha863:
I have the same problem but on a moto G6 plus xt1926-8
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] charwed:
Had that problem to. Flash latest lineage 18.1 rom again, flash gapps, reset phone. Problem shoud be gone after that.
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] lunalsmojo:
When installing lineage through whichever recovery you "have to" flash gapps before your first full boot. I've done it with and without (the withouts being accidents because I was not being mindful.... move with urgency, but never rush). When I've forgotten, I will typically be able to boot into the main OS. If you ever do forget, you'll know right away because you'll frameworks errors popping up left and right. You can just go back and flash gapps, but I would suggest you just restart the whole installation. Any time I've just flashed it on top I've noticed frequent performance issues. Everything will work, but it will be "choppy," "laggy," things like that. (it is very possible that these performnance issues are nothing more than the placebo effect).

BUUUUUTTTTTTT.... Admittedly, I have absolutely no idea why this works, and I don't know that it will work every time. And I especially don't know that it will work for you. There is inherent risk whenever we flash stuff and things to our devices

With that dislaimer in mind, I'll say that it has worked for me every time that I've been stuck at boot process, whether it be a boot loop or hanging at the logo. That being said, I have only done this via Lineage boot/recovery; never with twrp.

The thing that seems to always be my problem is that I've flashed Lineage boot/recovery into both slots. Probably not at the same time (althought I have don that too... that's how I became pretty certain that Lineage boot/recovery does NOT like being on both partitions. For some reason (again, above my paygrade), it messes up the mounting as the wizard in the bootloader activates the RAM to boot the full image. It tries to mount userland twice. It works the first time, so the second fails. It doesn't recognize that "hey it's already mounted so we're cool" and reports a fatal error and in the case of a bootloop it restarts and in the case of hanging it just stops.

When you use the auto script to reinstall stock, it only flashes the boot to one slot. But that becomes the slot so it all works with stock. But then when you re-flash Lineage boot/recovery, it does the same thing because Lineage boot/recovery is already chillin in the other slot and Lineage boot/recovery HAAAATES it when it is on both slots.

You may be temptedf to just switch slots and use the lineage that's already there. Don't do that. It may work but it will cause problems down the line. Instead, flash both stock boot as well as dtbo into both slots.

fastboot flash --slot all boot boot.img
fastboot flash --slot all dtbo dtbo.img

This will reset the kernel. Then, try again and I hope it works
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] Beast_Power100:
Can someone please share latest android 10 stable build of lineage os.
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] Viggen66:
Nice, plenty of solutions for gapps just pick one and use them as a replacement.
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] Lautaro Mondaca:
But with and without magisk? The basic problem so far with gapps is theres no way to gapps appear after boot except you are rooted with magisk
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] Shotg1:
Yes.. well what's the purpose unlocking ur bootloader and customize ur device or changing rom then people gonna say they dont want root their device, its just simple install magisk even if I don't want root, then if ur ok after bootup, uninstall magisk tru recovery or clear data ur device will boot without magisk and unrootefd i did that many time its sure thing it will boot, there are time that i encounter bootloop in magisk module i made, so to fixed that without reset is to uninstall magisk to recovery then after bootup ur device is not rooted, and all gapps install, but dint ask me if gapps will survive ota update if ur not rooted because i didn't try that before but i think it will since los is supprted of addon.d
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] ghost_0013:
So for using google services and Google play store with LOS have to use magisk, no other way right?

---------- Post added at 05:02 AM ---------- Previous post was at 04:40 AM ----------

Tried the steps thoroughly but not able to install GApps. Please suggest so that can use this rom as daily driver... :)
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] Shotg1:
We already discussed plenty of option to install the rom u can check the thread.
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] ghost_0013:
Already tried those except magisk steps. If there any other way except magisk?
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] Shotg1:
U mean u dont want root? There is 1 way.. 1st flash rom & twrp change slot reboot to recovery flash gapps then magisk then reboot to system after successfully setup boot to twrp flash magisk uninstaller then reboot to system
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] ghost_0013:
No I don't want to root. Ok I will try this method, can you please inform what will be the process to update as this rom is in initial stage and nearly everyday update coming for the bugs fixing. Hope I'm able to explain my query...
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] Shotg1:
U can update tru ota... Simply install it in ota btw headset (wired ) not working, and otg
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] ghost_0013:
You mean if los update shows I can normally download and update thru los updater. Regarding headset and otg I can sacrifice those if bluetooth headset works. And thanks for the guidance.
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] kima09:
What about SafetyNet? Does it pass SafetyNet on this ROM?
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] Shotg1:
Los not passing safetynet because they dont want to lie onnnthe status of the rom

---------- Post added at 09:55 AM ---------- Previous post was at 09:51 AM ----------

Now i have question since well all know force encryption is present inn official rom, what if i don't want force encryption? Of course i will flash dm verity disabler, but my concern is this if i received ota update and install update tru ota or even in recovery dirty flash will be or will be not force encrypt after boot? Will be dm verity disabler still present?
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] manuelsilv:
What if we dump payload.bin, mount system.img and add the nikgapps manually, convert img2simg and flash with fastboot?

Did someone try this? When I have the time I will try to do this.
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] mikeioannina:
Well something must have been broken again in latest opengapps, I'll have to check what's going on :/
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] Shotg1:
Thanks for official rom, hope otg and headset will fixed soon.
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] ghost_0013:
Thanks for the ROM. Please do something so that we can install and boot up with Gapps normally with LOS recovery... without magisk :)
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] Shotg1:
Do what i suggest after u flash gapps and magisk do reboot to system then setup ur device thennflash magisk uninstaller in twrp then boot ur phone it will succeed booting without magisk, but to be honest u need magisk to pass safetynet so magisk is important
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] ghost_0013:
Yes I will try it and let you know if any problem arise. But I want to use Los recovery (as it's new to me) to install LOS & GApps so if the dev do something will be very helpful...
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] Shotg1:
Im not really sure if u can flash gapps in los recovery what i know is u can sideload gapps using los recovery well inform me if u succeed to flash gapps in los recovery tho
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] ghost_0013:
Yes you are right in los recovery we have to sideload not able to flash like TWRP. But I still want to use los recovery to install los and GApps like the way it mentioned in los installation procedure in their website
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] Shotg1:
Question, in some los unofficial depend on devices gapps need to be installed in system, not in product in our offical rom, where should it recommend to installed gapps system or product folder?
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] Popo001:
So, I was quit fed up with these OTA update problems, so I did some tests on my Mi A2 and I can confirm that OTA are fine if :

- OpenGapps NANO is installed

- Magisk is installed (didn't test without though).

What I did :

- Fresh install of LOS 2020-06-05 version (by following exactly the LOS official wiki) after formatting both slots

- Install of OpenGapps last NANO version (via adb sideload in LOS recovery, after having rebooted to recovery of course, still following the wiki)

- Install Magisk (via adb sideload in LOS recovery)

- Booted to system

- Skipped the google install assistant (just to go faster).

- Download and update LOS via the system OTA update manager (update from 2020-06-05 to 2020-06-06)

- Rebooted immediately (didn't even install Magisk in other slot)

- After the reboot, the Google Play store is still here, no FC or whatsoever, the LOS version is indeed updated and Magisk is here (still have root).

Note: just before this test, my OTA update failed (Gapps disappeared, lots of FC) and I was using OpenGapps stock version.

Thus, my recommandation is to strictly stick to the official LOS wiki, which includes the use of NANO OpenGapps !

Cheers
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] Shotg1:
As i said mi a2 have issue in i dont know where exactly, in system, tried ota before in unofficial build, usually gapps store and debloated app back i noticed that only supported gapps is the smallest package, pico or nano for open gapps and core basic or omni in nikgapps my own personal opinion is i used mod. Full package of nikgapps only choose to install which gapps i want to install, but mostly very small variant of gapps i choose, because i dont know, even if we have a lot of space in system partiton we always have issue with no space left in log.txt to gappsi dont know why but better to use small package
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] ghost_0013:
First thanks for this detail info & steps. Now I will get confidence to test with my A2. Before that have a few queries.

1. Did I have to mention in which slot the LOS will get installed from adb side load?

2. How to format the both slots from LOS recovery?

3. Does you done reboot to recovery after installing LOS then u installed GApps or you just installed LOS->GApps-> Magisk in that way...

4. If I remove magisk after update or before update will create problem?
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] Popo001:
you're welcome :)

1. No, it chooses automatically the other one (e.g. if you're on A-slot, it installs on the B one.)

2. I used and booted temporarily into TWRP for that. No sure it's useful though, the factory reset in the LOS recovery must be enough (warning, it deletes everything, including internal storage).

3. Exactly. Install LOS with adb sideload in the LOS recovery, then "Advance/Reboot to recovery" (it actually switches the slot for you, and goes to the one you actually installed LOS), then install Gapps and right after Magisk.

4. I honestly don't know, I should have also tested it. Some people reported that it does. If you're motivated, you can try not to install Magisk and try an OTA update to be sure once for all it's working without it.
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] ghost_0013:
When u select "Advance/Reboot to recovery" after installing LOS does any error come like failed to mount or something? Cause I have seen that many times. Actually I tried to install LOS 7 times on Saturday but not able to boot it up with GApps then again shifted to stock rom so that I can use my phone during working days again I will test on Friday night that's why gathering information..
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] Popo001:
In fact, yes, I forgot about that. Not sure what it is... It works nonetheless.
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] ghost_0013:
Yeah I thought that came to me only.
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] CreateYourDream:
can this instal via twrp?
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] Popo001:
Yes it's possible. However, since the official TWRP does not support encrypted Mi A2, you can have trouble to load your files from the sdcard folder (you won't find them). You can use adb sideload though.
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] devilsworkshop:
Hi everyone,

I'm planning to buy two A2s for the sole purpose of running LOS. If possible, I'd like to know:

- Does LOS work perfectly on this device?

- Do you think it's worth getting this phone just for using LOS?

Thanks a lot for any information!
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] petrena:
I didn't see any problems, only my banking app needs tweaking with Magisk cause the phone is rooted...
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] vikaseth:
Yes i did not use lineage recovery and work only from twrp boot not flash twrp atall

---------- Post added at 09:43 PM ---------- Previous post was at 09:41 PM ----------

Are u apply the last wipe data also???? Really

---------- Post added at 09:46 PM ---------- Previous post was at 09:43 PM ----------

Becoz to retain gapps it is necessary ....may be due to android 10 but not know the exact reason
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] ntomka:
Yes, I did.
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] ghost_0013:
Why there is so much complications to flash LOS due to the a/b partition or something else? Knew the question is like a noob but still asked it.. previously I flashed nougat (LOS & stock GApps) on my moto x 2014 without any headaches but at present its seems very much problematic...
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] drt1:
Hello, anyone is aware of any serious review (preferably video but text will do also) of this rom? A Google search only brings up some copy-paste (and mostly wrong) tutorials on how to flash or review of the unofficial LOS. Thanks in advance.
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] Ulver:
I was able to install the ROM, gapps, and magisk via LOS recovery. What was weird, when installing nano gapps, I had to disable verification to install. Even installing the ROM looked like it got stuck at 47%, wasn't sure if it was going to even install. I then installed the OTA update and got in a bootloop, and eventually booted to recovery. Not sure what's going on. I'll give it another go when I get more time.
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] devilsworkshop:
Thanks for the reply. I'm worried about any intermittent crashes, hangs, reboots or other weird things. I need it to be reliable. Any stability issues that you're aware of?

I thought the same thing when I first moved to an A/B phone (OnePlus 6) - it seems irritatingly complex compared to the plain old method of flash-and-go, but once you understand how it works, it's actually quite simple.

Seamless updates are truly a massive advantage. They are very unintrusive, and if ever there are any bugs in the update, it's trivial to roll back to the previous version, which is a huge win. Previously, I'd take a nandroid backup every time I update in case things go wrong, meaning an update would take ~30 minutes. Here you just reboot and it's done.
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] petrena:
Well it is only my experience, but for me it's completely stable
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] onimorza:
My taughts exactly!

Once you figure out how it works, it's much better than before!
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] Muthu_IN:
Swipe FP to bring down notification shade missing

Swipe Fingerprint to bring down notification shade is missing. It is a Mi A2 feature on all custom rom. Kindly consider adding
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] Shotg1:
What happened to los stuck at 0606 build? Maybe dev. Fixing issues in our device feeling excited can't wait to use stable los
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] ghost_0013:
It's already stable haven't found any major issue yet. And my feelings are same maybe dev is working for some major improvements that's why last build is 06/06...
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] Lautaro Mondaca:
You can see the changes for the next version in the "recent changes" option in the downlaod page
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] Shotg1:
Its not stable since otg and headphone wired is not working yet, build is pretty snappy, and nice battery backup but those 2 features is a major issue
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] azakosath:
That's because all builds switched to weeklies!
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] Shotg1:
Weeklies well more better i think
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] ghost_0013:
I agree with you but I rarely used headset so I missed that... :)
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] drt1:
Rom is really good. Couple of things, battery seemed better in stock, but that's too soon to judge as i flashed only yesterday. I got something weird today, slow charging. Meaning, the screen said slow, but the battery was actually dropping instead of charging while sitting on the table with charger attached. A reboot solved it. All in all, amazing experience thus far.
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] ntomka:
I managed to install the rom with working gapps today. I didn't do anything different, I followed the official tutorial, I had chosen nik gaps instead of open gapps. I didn't even used a small package, went directly with full size. I customized its install with nikgapps.conf file.

Of course I installed magisk to keep gapps package after reboots (this working also).

So I can confirm who can't install the ROM with working gapps, choose other package than open gapps. The problem seems to related to it.
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] drt1:
Magisk or not? Zero problems with open gapps if you install Magisk. Didn't tey without though
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] ntomka:
I used magisk as I wrote before. I also tried open gapps last week every possible way without any luck. Nick gapps worked for the first try.
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] Lautaro Mondaca:
I use opengapps and magisk without problem but magisk is a must for gapps get instaled
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] drt1:
Yeah, sorry. Quick glance from phone. Maybe the problem was the specific build of open gapps then, I had no problems with nano 2020.06.09. Thanks
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] WongJawa:
Sure?
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] Shotg1:
Anyone tried latest 0613 build? Does wired headset working? And otg?
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] Lautaro Mondaca:
Just installed, i dont have OTG devices, wired headphones still dont work. OTA get installed without problems. Would be nice if someone can test installation with gapps but without Magisk to see if root still necessary to use gapps
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] Sam7a2:
No work profile. Also, gapps not working without magisk on latest build.
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] Zarkusi:
I can confirm that OTA is working
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] dumbass_16:
so wired headphone still doesnt work?
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] Lautaro Mondaca:
No, device specific bugs stills remain the same
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] Popo001:
Thanks for your feedback.

Still had a pb with Nano OpenGapps after the OTA update despite a previous positive test, I don't understand why... (using LOS system update)

Trying NikGapps now.

So what's your procedure during an OTA update ? Do you reinstall Magisk on the other slot right before the reboot after applying the update or it's not even necessary ?
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] Lautaro Mondaca:
Download the ota ,install and dont reboot go to magisk and install on inactive slot. Reboot. Done
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] Shotg1:
Yeah otg and wired headset still not working and still slow charging even u used qc charge 3.0 i hope dev look for this issue 1st, this is a major bug.
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] ntomka:
I didn't reinstall anything, just rebooted after ota installed. Works perfectly.
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] Shotg1:
So our build comes every week instead of nightly?
[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] ntomka:
Interesting thing happened. I rebooted my phone again and some core gapps gone, play services for example. Many gapps still installed. So Lautaro Mondaca right, you have to install magisk to inactive slot before ota reboot.

Now that this happened, I am trying opengapps again.