yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi A2 Lite ROMs, Kernels, Recoveries, & Oth] Nicholas D. Wolfwood:
Hey folks,

I've tried installing this ROM today but faced some issues.

Can you please advise what possible could go wrong and how to fix?

Here are the steps I was following:

1. Unlocked bootloader

2. Installed twrp-3.5.2_9-2-daisy-unofficial.img

3. Rebooted into recovery.

From there:

4. Wiped everything except SDCard

5. Installed lineage-18.1-20220518-microg-daisy.zip (from SDCard)

6. Wiped dalvik/cache

7. Installed twrp-3.5.2_9-2-daisy-unofficial.zip (from SDCard)

8. Rebooted into system.

However it hangs forever on LineageOS loading screen.

Any clues what else should I try?

Thanks in advance.
[Xiaomi Mi A2 Lite ROMs, Kernels, Recoveries, & Oth] keypress:
I don't have too much experience yet with Android custom ROMs - but maybe you shouldn't install TWRP? Check this:

My working procedure for daisy (but non-microg version) is as follows:

- unlocking the bootloader:
- start in fastboot mode (VolDn + Power)
- connect with USB cable
- fastboot devices
- verify what is now: fastboot oem device-info
- fastboot oem unlock
- verify if is unlocked: fastboot oem device-info

- install LineageOS:
- dowload to PC latest img from https://github.com/TWRP-Mi-A2-Lite/twrp_device_xiaomi_daisy/releases
- download to microSD the latest non-microg image from https://github.com/a-huk/otaserver/releases
- on phone go to fastboot
- Fastboot into TWRP recovery: fastboot boot path/to/twrp.img
- disconnect cable
- in twrp do factory reset: Wipe > Format Data: yes
- in twrp install lineageos.zip from microSD
- reboot
- it will boot lineageos

- install opengapps:
- reboot to recovery (VolUp + Power) - will start lineageos recovery
- factory reset
- do "Apply update" > by ADB
- on PC download opengaps nano arm64 Android 11: https://opengapps.org/?api=11.0&variant=nano
- adb sideload opengapps.zip
[Xiaomi Mi A2 Lite ROMs, Kernels, Recoveries, & Oth] Nicholas D. Wolfwood:
Thanks for the reply! Tried that way as well (i.e. without re-flashing twrp) - same result.

Thanks, will try it, hopefully something will help eventually.
[Xiaomi Mi A2 Lite ROMs, Kernels, Recoveries, & Oth] Nicholas D. Wolfwood:
Update:

The other ROM from "[ROM][11][UNOFFICIAL][DAISY][OTA] LineageOS 18.1" worked eventually.

Installed with the same TWRP without issues along with MicroG (NanoDroid-microG-23.1.2.20210117).

So far so good.

Hope all will be ok :)
[Xiaomi Mi A2 Lite ROMs, Kernels, Recoveries, & Oth] Wuschel93:
Have you ever been able to fix this, @Amarok19? I've got the same issue with one LOS 18.1 install on one of three daisy devices. Two other devices running the same builds are fine.

Any idea, @reujea0?
[Xiaomi Mi A2 Lite ROMs, Kernels, Recoveries, & Oth] Amarok19:
Unfortunately not, @Wuschel93. I can't remember it that well anymore, but basically I moved on to another ROM unaffected by this issue.
[Xiaomi Mi A2 Lite ROMs, Kernels, Recoveries, & Oth] Wuschel93:
Thx for the reply! What I found was this:

https://www.reddit.com/r/LineageOS/comments/qzh3gn

Will attempt to reflash the OS and consequently GApps as well. Maybe that'll help.
[Xiaomi Mi A2 Lite ROMs, Kernels, Recoveries, & Oth] arraff:
Hi guys, can we know why it is impossible to install GCam on this build? I tried with camera2 Api enabler, I also tried to modify Build.prop but nothing.
[Xiaomi Mi A2 Lite ROMs, Kernels, Recoveries, & Oth] autokoise:
In my experience for enabling camera2 api through ''camera2 Api enabler'' app from play store, you should before rooting device with Magisk
[Xiaomi Mi A2 Lite ROMs, Kernels, Recoveries, & Oth] software_ss:
does it have or support auto call recorder? Can I record call each time I receive the call or call someone?
[Xiaomi Mi A2 Lite ROMs, Kernels, Recoveries, & Oth] testman42:
my dude, this is a dead thread about LineageOS 18 on xiaomi_daisy

we moved to LineageOS 20 and even 21
[Xiaomi Mi A2 Lite ROMs, Kernels, Recoveries, & Oth] keypress:
Nice to hear it. 👌 Could you give links to threads for LOS 20 and 21 for xiaomi daisy?
[Xiaomi Mi A2 Lite ROMs, Kernels, Recoveries, & Oth] testman42:
This thread: https://xdaforums.com/t/rom-android...eos-21-0-for-xiaomi-mi-a2-lite-daisy.4421213/

it was for 19 at first, but OP kept working on it and updating the thread. So that thread is a central aggregate of daisy knowledge.
[Xiaomi Mi A2 Lite ROMs, Kernels, Recoveries, & Oth] bler9879:
Hello, thank you for this rom! I have previously used your lineageos 17 and I really appreciate your work.

I think I found a bug with the native clock app: even if in the settings the option to make the app able to wake the phone from power off is active, the alarm cannot automatically turn on the phone. This function worked well on lineageos 17

I am using the last OTA update
[Xiaomi Mi A2 Lite ROMs, Kernels, Recoveries, & Oth] viking777:
Just got the update by OTA and everything I have tried so far (just a few minutes) seems to work. Gapps and Magisk both retained, but twrp needs a reinstall (no big deal).

Even more welcome is the fact that the wifi hotspot now seems to be working as well.

Thank you very much all involved.
[Xiaomi Mi A2 Lite ROMs, Kernels, Recoveries, & Oth] mustaphakosar:
For to be sure, just install Termux from playstore. Open it and type "su" to grant access. after granting access, type "getenforce". Then you will see " enforcing " (or permissive for permissive ones).
[Xiaomi Mi A2 Lite ROMs, Kernels, Recoveries, & Oth] srepole:
As far as you know, does safety net check pass on last build ?

And in playstore' s setting is device recognized as certified ?
[Xiaomi Mi A2 Lite ROMs, Kernels, Recoveries, & Oth] mustaphakosar:
Sorry but I am not using this last build at the moment. But you can check it on Magisk yourself. After hiding Magisk Manager on Magisk, check safety Net, if it says "passed", it should be.
[Xiaomi Mi A2 Lite ROMs, Kernels, Recoveries, & Oth] reujea0:
I did not know that such a feature even existed, will look into it
[Xiaomi Mi A2 Lite ROMs, Kernels, Recoveries, & Oth] rootsdroid:
Done, it says "enforcing". So, I'm safe?

So, with previous build ViPER4Android worked well, and now with this new build doesn't work. I have to going back to permissive? And how to do that? It is secure for my device?
[Xiaomi Mi A2 Lite ROMs, Kernels, Recoveries, & Oth] rootsdroid:
Mine says "certified device" in Play Store
[Xiaomi Mi A2 Lite ROMs, Kernels, Recoveries, & Oth] mustaphakosar:
You're safer, as this is enforcing with latest security build, thanks to dear Reujea0.

Grateful for his efforts.

Dear Reujea0, is there any news about the version with Microg?
[Xiaomi Mi A2 Lite ROMs, Kernels, Recoveries, & Oth] reujea0:
Soon hopefully
[Xiaomi Mi A2 Lite ROMs, Kernels, Recoveries, & Oth] rootsdroid:
@reujea0 can you help me with ViPER4Android magisk module? It runs, but not works (abnormal driver state). With previous build was ok.

Thanks
[Xiaomi Mi A2 Lite ROMs, Kernels, Recoveries, & Oth] reujea0:
Hi, I don't really see why it should have stopped working. But sure, could you send me an adb logcat? Also cna I ask why you use Viper?
[Xiaomi Mi A2 Lite ROMs, Kernels, Recoveries, & Oth] rootsdroid:
Let me some time to send you adb logcat. Why I'm using it? For better sound quality/equalization. I'm know it is subjective... Do you have any alternative for this?
[Xiaomi Mi A2 Lite ROMs, Kernels, Recoveries, & Oth] reujea0:
Not really, just wanted to know why you use it as I used it myslef a long time ago on another phone to boost bt volume
[Xiaomi Mi A2 Lite ROMs, Kernels, Recoveries, & Oth] srepole:
Hey reujea0,

thanks for the rom, i flashed it tonight.

Just wanna ask to you why los aosp recovery replaced twrp automatically, found it as the only installed recovery.

I thought user would have been able to choose during setup which recovery to be installed as default, e.g. los aosp recovery.
[Xiaomi Mi A2 Lite ROMs, Kernels, Recoveries, & Oth] reujea0:
When you build los, los recovery is built and packed as well. I suppose that there is a way to not include it in the rom. Will look into it
[Xiaomi Mi A2 Lite ROMs, Kernels, Recoveries, & Oth] srepole:
Los stock email app is missing.

Am i the only one experiecing this issue ?

List of prebuilt los apps i found so far :

AudioFX

Browser

Calculator

Calendar

Contacts

Files

Camera

Gallery

Settings

Messaging

Music

Clock

Radio FM

Recorder

Dialer

Even highlighting in all apps, show system apps, i didn' t find email
[Xiaomi Mi A2 Lite ROMs, Kernels, Recoveries, & Oth] hardmaster92:
Here is the first problem I found after the new update - I can no longer install apps from google play. I tried several different apps but the result is the same - after the download progress reaches 100% I get a message that the app couldn't be downloaded and nothing more happens.
[Xiaomi Mi A2 Lite ROMs, Kernels, Recoveries, & Oth] celrau:
Meanwhile there is this method I found and it works great for enabling signature spoofing and installing microG on the device. Hope it helps.
[Xiaomi Mi A2 Lite ROMs, Kernels, Recoveries, & Oth] mustaphakosar:
Thanks for advise but I am not sure if I can do it. As it seems a bit confusing for me.
[Xiaomi Mi A2 Lite ROMs, Kernels, Recoveries, & Oth] srepole:
I downloaded zip rom again, just to make sure the first file wasn' t corrupted.

I reflashed los starting from twrp, clean flash, data formatted.

Aosp mail app is missing.

Moreover i noticed that even if all flash steps went fine, when twrp prompted me to reboot to enter the system, twrp said " No OS installed " even if los was correctly flashed.

I actually noticed the same, weird, message last night during first flash.

I don' t know if it's an attributable error to twrp, 3.5.0_9-1 from Linkboi, or to rom.
[Xiaomi Mi A2 Lite ROMs, Kernels, Recoveries, & Oth] celrau:
I can provide you the 2 modules to be flashed in magisk, if you find a way. Basically one zip is microG and stuff and the other is a couple of frameworks which were modified to permit signature spoofing.
[Xiaomi Mi A2 Lite ROMs, Kernels, Recoveries, & Oth] mustaphakosar:
I would really appreciate that.
[Xiaomi Mi A2 Lite ROMs, Kernels, Recoveries, & Oth] celrau:
So PM me an email or a url I can upload it to.
[Xiaomi Mi A2 Lite ROMs, Kernels, Recoveries, & Oth] dedebekri:
First I'd like to thank you @reujea0 for this really smooth and battery friendly rom (y)

Regarding 18.1 bugs I've seen;

- wfd (afaik, you need to use old blobs, like @lupesoltec did on syberia & havoc)

- cts (doesn't pass, needs to be handled via magisk hide props)

- hal switcher (doesn't function, installed @eremitein's fix to enable HAL3)

Hope you'll iron bugs out as you find time.

PS: Using TWRP 3.5.0_9-1, flamegapps basic and magisk 21.4 (which updated itself to 22 afterwards)
[Xiaomi Mi A2 Lite ROMs, Kernels, Recoveries, & Oth] Centr0AS:
Hello. Great rom. Smartphone feels different;) Thank you for your supporting this device. Appreciate that!). I think i founded to bugs:

1) May be, Wireless ADB via pair not working;

2) When i calling to a friend via Signal using wired headset, my friend can't hear me, but if i calling via bult in mic and then plug in headset, it's start working.

P.S. Sorry for bad English, it's not my navite lang.
[Xiaomi Mi A2 Lite ROMs, Kernels, Recoveries, & Oth] reujea0:
Interesting, do you need the built-in app? Isn't it kind of trash/old?

Edit: It seems they have decided do discontinue the app, it does not a los18 branch on github. I suppose because people use other mail clients anyway. So there is nothing that I can do about it.
[Xiaomi Mi A2 Lite ROMs, Kernels, Recoveries, & Oth] reujea0:
Are you sure that you have got opengapps or some right gapps? Try reinstalling gapps
[Xiaomi Mi A2 Lite ROMs, Kernels, Recoveries, & Oth] reujea0:
Again, for those that want microG it will, come just need new hard drives for my server as I have run out of space.
[Xiaomi Mi A2 Lite ROMs, Kernels, Recoveries, & Oth] reujea0:
I am aware and working on wfd. I am aware about CTS failing, maybe a fix will come, idk magisk fix has always been the way for me, will see. I haven't checked the hal switcher, I thought I had fixed it, will look into it. Thanks for the reports
[Xiaomi Mi A2 Lite ROMs, Kernels, Recoveries, & Oth] reujea0:
Thanks for the bugs, and the effort. I will look into wireless ADB. For the signal bug I will not be able to reporduce it. Could you send me an adb logcat of it when it happens?
[Xiaomi Mi A2 Lite ROMs, Kernels, Recoveries, & Oth] :
I'm highly anticipating that!
[Xiaomi Mi A2 Lite ROMs, Kernels, Recoveries, & Oth] hardmaster92:
I have the latest open gapps for android 11. I didn't reinstall them tho. How can I reinstall them, is it just by flashing them again?
[Xiaomi Mi A2 Lite ROMs, Kernels, Recoveries, & Oth] Centr0AS:
Hello.

1)About bug in Signal. I tried to represent that bug, but for now it's worked correct, strange thing.

I will look more, let you know if find out reason or catch this bug again.

Bug in details: If call was started with plugged headset , mic in the headset and the phone now working even if i unplug headset during the call, it's still don't work. But if call started without headset, mic starting successfully and if plug in headset during the call, it worked correctly.

2) About wireless ADB (just test itself, maybe i doing something wrong ). I see they changed it, now i't need to use "adb pair" not "adb connect". It's pairing but no result (device is not appearing in adb devices and android studio) but smartphone.
[Xiaomi Mi A2 Lite ROMs, Kernels, Recoveries, & Oth] reujea0:
Yes
[Xiaomi Mi A2 Lite ROMs, Kernels, Recoveries, & Oth] srepole:
I did some deep crossed research about missing prebuilt email app today.

As you pointed los team had deliberately decided to omit that app for some reasons.

But, according to me, it isn' t a great move shipping a rom without an email app.

Is their aosp email considered by audience as trash/old ?

Well, then give an alternative, but not build a rom without such a major app.

I know, we should simply login in our email from a browser, or flash gapps to get gmail, but it' s never been mandatory with los to flash gapps or installing apk, as i did, to get a fully functional rom.

And leave to users the decision of keep and use prebuilt email app, disable it or even delete/replace in favor of a personal choice.

Anyway, i enphasize, this is only my point of view.

Lastly, i also reported that weird message i got from twrp, no os installed, even if installation was fine.

I asked directly to the source of twrp, that wierd message is recovery related, maybe it will be fixed in next updates.

I hope this will help those will face the same condition.

Time to try gapps now ;)
[Xiaomi Mi A2 Lite ROMs, Kernels, Recoveries, & Oth] rootsdroid:
You can try K-9 Mail. :cool:
[Xiaomi Mi A2 Lite ROMs, Kernels, Recoveries, & Oth] rivanleite:
Running 2 data. Everything Fine.
[Xiaomi Mi A2 Lite ROMs, Kernels, Recoveries, & Oth] loserion:
This ROM have FBE?
[Xiaomi Mi A2 Lite ROMs, Kernels, Recoveries, & Oth] celrau:
K-9 is way better, I always replace the original email client with it. Though it has a pretty ugly, uninspired icon..
[Xiaomi Mi A2 Lite ROMs, Kernels, Recoveries, & Oth] hardmaster92:
If you just install google apps (which you'll probably do anyway) you will have an email app (Gmail). I don't understand what's the problem.
[Xiaomi Mi A2 Lite ROMs, Kernels, Recoveries, & Oth] MKKLR21:
I've found another bug. In 18.1 VoWIFI doesn't work anymore. IMS says "Unavailable". In 17.1 it worked perfectly.
[Xiaomi Mi A2 Lite ROMs, Kernels, Recoveries, & Oth] Gupa23:
Hi all working fine, just the gps isnt working, in google maps didnt find my location

idk why i install gapps pico
[Xiaomi Mi A2 Lite ROMs, Kernels, Recoveries, & Oth] reujea0:
Will investigate
[Xiaomi Mi A2 Lite ROMs, Kernels, Recoveries, & Oth] Gupa23:
i fix it just factory rest and change sim to sim1
[Xiaomi Mi A2 Lite ROMs, Kernels, Recoveries, & Oth] hardmaster92:
Well, I tried flashing open gapps again but the issue still persists - I can't install large applications.
[Xiaomi Mi A2 Lite ROMs, Kernels, Recoveries, & Oth] velo27:
I followed the instructions exactly and get bootloop :(

Download the latest build from here

Download LinkBoi00's version of TWRP here

Reboot to bootloader (adb reboot bootloader)

Fastboot into TWRP recovery (fastboot boot twrp*.img)

Do a factory reset in TWRP

Flash the latest build of Lineage OS

Boot into your new phone

I didn't add gapps or anything else???
[Xiaomi Mi A2 Lite ROMs, Kernels, Recoveries, & Oth] srepole:
You missed the installation of twrp to both slots.

Once booted to twrp, your 4th step, you have also to flash directly in twrp the twrp zip.

Only then you can follow the given flash hints.

https://xdaforums.com/attachments/twrp-3-5-0_9-1-daisy-unofficial-zip.5185467/
[Xiaomi Mi A2 Lite ROMs, Kernels, Recoveries, & Oth] velo27:
Thanks for the response...

I followed your new instruction, and still bootloop... after fastbooting to the twrp.img, I then flash the twrp.zip you linked me too - all ok...

Then did the factory reset

Flashed Lineage OS - all ok

Rebooted to system... there are other options of rebooting, like slot A and slot B...

Should it take longer than 10mins on the lineage splash screen (sun over the horizon)...?? not sure where I'm going wrong..

Note: in between my last attempt at this ROM, I flashed the Stock ROM back on there to make sure it still worked, which it was fine and booted straight into Android 10

Edit: left it on the splash screen for over an hour... it definitely aint booting.. read online, you have to flash twrp again after install.. trying that... can't hurt

Edit 2: Interestingly, the ROM flashed to slot B, when I changed and rebooted to slot A, Android 10 is still there... is that normal??

Edit 3: could have something to do with a/b partitions and should i have verity-encrypt or magisk or both, in my googling I keep coming across these for the Mi A2 Lite
[Xiaomi Mi A2 Lite ROMs, Kernels, Recoveries, & Oth] mustaphakosar:
Try this.
[Xiaomi Mi A2 Lite ROMs, Kernels, Recoveries, & Oth] rb1979:
I have two issues to report, both related to wi-if, and in some weird way contrdicting either other .

1. my setting to save my wi-fi network to the list of auto connect networks gets lost and I need to keep doing it over from time to to time, once it goes away i lose wi-fi

2 and the second issue is it disconnets from wi-fi it and two, three seconds later it connects back autoamitcally, it cycles ever two or three minutes it disconnects and the reconnects, i'm assuming when auto connect setting is still valid, but the point is it doesn't keep the connection alive and drops it and reconnect back again

Also as reported earlier voic over IP doesn't work, I have two SIM, one with access and the other without. I sent a text message from the one that gets access to the one that does while connected to WiFi and it never came. So another issue. If anyone needs logs and tells me what I should do then I can provide them. thanks.
[Xiaomi Mi A2 Lite ROMs, Kernels, Recoveries, & Oth] jkrhu:
Hi! Thanks for your hard work. Installed successfully and runs very well. There's one thing I need some help with - Camera2 API. It seems that I can't enable it. Tried with the Camera HAL switcher in Settings, then modified the build.prop to add the missing line. It doesn't switch, nothing seems to work. Unfortunately every GCam I try, crashes.
[Xiaomi Mi A2 Lite ROMs, Kernels, Recoveries, & Oth] yamaha77:
Good job, bro!

Congrats!
[Xiaomi Mi A2 Lite ROMs, Kernels, Recoveries, & Oth] doblee.p:
Are there any differences between LOS 17 & 18? I mean, performance and that kind of stuff.
[Xiaomi Mi A2 Lite ROMs, Kernels, Recoveries, & Oth] reujea0:
I would say Los18 is faster/runs better but that is maybe because it was a fresh install.
[Xiaomi Mi A2 Lite ROMs, Kernels, Recoveries, & Oth] reujea0:
Will look into it, logs will most definitly help. Just connect your phone to your computer and run adb logcat > output.txt while doing what you are having issues with, here sendign and waiting for text. Then send me the output.txt file
[Xiaomi Mi A2 Lite ROMs, Kernels, Recoveries, & Oth] reujea0:
It is a known issue, will fix it probably in the next release.
[Xiaomi Mi A2 Lite ROMs, Kernels, Recoveries, & Oth] celrau:
You need to add a line in /vendor/build.prop: persist.vendor.camera.HAL3.enabled=1. That worked for me
[Xiaomi Mi A2 Lite ROMs, Kernels, Recoveries, & Oth] velo27:
Edit: I finally got it working... I fully refreshed all files, folders and downloads, with the only difference being I downloaded the full Android SDK kit this time from a link in this forum, instead of the ADB Fastboot only tools... Thx
[Xiaomi Mi A2 Lite ROMs, Kernels, Recoveries, & Oth] jkrhu:
Can't open build.prop in /vendor/. The file is blank. I've already tried with a build.prop in /system/ but it doesn't do anything.
[Xiaomi Mi A2 Lite ROMs, Kernels, Recoveries, & Oth] time2smile:
Thank you very much for your effort.

After a few teething problems with changing the slots, I was able to get a functioning partition up and running.

Now, however, when I start the Trust application, I am always informed that my current build was created with public certificates. This is classified as a security risk.

Is this normal? Does it have to be like this or do I have to worry and select a different Rom?
[Xiaomi Mi A2 Lite ROMs, Kernels, Recoveries, & Oth] sirel:
while i appreciate the work on these custom roms,

honestly it's quite aggravating to see missing/incomplete instructions on this site so much of the time.

I followed the exact instructions of the first post, then tried the additional steps mentioned in the comments but still my phone won't boot (i've done all this from a phone with a factory ROM) can someone please provide clear & concise instructions on how to install this and deal with the A/B slots?

thanks
[Xiaomi Mi A2 Lite ROMs, Kernels, Recoveries, & Oth] mustaphakosar:
If you say you've done things allright, maybe you should just flash a stock rom with miflash, choosing "clean all". Then try the steps, people succeded with the instructions mentioned at the first post and at the comments. So this means there must be something missing. When I first started to install a custom rom, i just missed the step of what I am recommending to you. Only after installing a stock rom as base rom, I succeded.
[Xiaomi Mi A2 Lite ROMs, Kernels, Recoveries, & Oth] sirel:
it already had the stock rom, i just got it back from repairs where they switched out the mainboard with a brand new one with the stock rom. i installed lineageos 16/17 on this phone and others multiple times in the past without any problems, just this one doesn't seem to work.

What i did was:

1. boot up the factory rom, unlocked OEM bootloader from developer settings

2. reboot into fastboot

3. boot the twrp image as per first post

4. wipe and advanced wiped everything except for the microsd

5. install LOS18 image via TWRP

6. install TWRP twrp-3.5.0_9-1-daisy-unofficial

7. switch slot and reboot to TWRP

8. reboot to system

it still won't go past the "android one" screen and will just shut down after that.

I even tried installing LOS to both A and B slots with a TWRP install after that on both slots, no matter what i do it won't boot
[Xiaomi Mi A2 Lite ROMs, Kernels, Recoveries, & Oth] mustaphakosar:
Okay then try this between 3rd and 4th steps. I hope it works.

Format data. Then Reboot to recovery. Go on with step 4 forward.