yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] StuckinMemphis:
I am not really seeking help. I just want to see if my experience installing Lineageos on the Mi A1 is similar to others.

I got my new A1 last week and ran it for a couple of days on stock before taking the plunge. I also updated to the newest stock 8.1 before attempting to install LOS. I have been running Lineage or Cyanogenmod for more than 7 years on other phones including a Redmi Note 3. There is always a new learning curve with every new device but, this one seemed much more dramatic.

I first followed the instructions on the Lineage website and could not even get TWRP to boot on my phone. Then after seeking help in a few places I tried a couple of different versions of TWRP. The only one I could successfully boot into was Cosmic Dan's. Then there was the problem of all the errors TWRP was spitting out at me. I can't remember all the errors and honestly don't want to recreate them if at all possible. There was definitely something about the inability to mount storage. At this point my stock install was gone so I just pressed ahead with the installation knowing it would probably fail with the errors I was getting. I followed the instructions and tried to reboot to recovery in order to install gapps. That took me to the new LineageOS Recovery. So I did a factory reset in that recovery, rebooted the system and Lineage had successfully installed albeit without gapps. So then I went back and attempted it again only using the LineageOS Recovery for the wiping and resetting functions then TWRP for flashing. Following the instructions I rebooted to recovery which takes me back to LOS recovery, did a wipe then back to TWRP to flash gapps. The only gapps that would install for me was MindTheGapps. So I now have a successful install of LOS on my A1.

I do have a few questions for everyone. How much storage does your install consume. When I check my storage it says System is taking up 9 GB. All total with all my apps and everything it says I am using 14 GB. Does that seem about right?

Also will the weekly LOS updates flash in the LOS recovery? Is that working smoothly? I have not rooted or flashed any extras besides MindTheGapps.

I am curious if any of you had a similar exprerience.

One more thing. We will always have the warning message on boot about Unlocked Bootloader?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Berlino:
- Yes storage usage is right, my installation uses about 20GB of storage with all my apps and files, system uses 11GB.

- The weekly updates are managed by the updater and will be installed seamlessly while running LOS (same as stock)

- You'll have the warning message about unlocked bootloader with every reboot, but you can remove that message with this tool here
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] ilija simeunovic:
Hi,

Two more questions before flashing LOs:

1. Will Su addon survive ota, so i do not need to worry about twrp after every update?

2. Can i install Viper4 on this rom and how?

Sent from my Mi A1 [MENTION=428455]Stock[/MENTION]
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Berlino:
- I don't need root, but from what I've read here, the su-addon survives updates (safetynet maybe fails).

- I don't know about Viper as flashable mod, last time I used it was as a magisk-module...maybe you should flash unofficial version from op with dirac sound.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] ibooth2004:
I tried flashing the su add-on in Lineage Recovery and it didn't work, try booting the TWRP found in OP and flashing it from there.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] heinhuiz:
I've tried both ways. TWRP says install succeeded but it it doesn't work. I'll stick to Magisk, which is a bit of a pain because now after every update I have to flash TWRP and Magisk again.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Obscurax:
Thanks for the feedback. Should have been more patient then. Too bad I didn't know this before, lost holiday pictures due to the wipe.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] StuckinMemphis:
Thanks for the response and for the tool suggestion.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] f-newhope:
Hello, I'm a software engineer myself and I am currently thinking about investing this on my own. Unfortunately I have absolutely no experience in Android development. Can somebody give me hint how much effort it is to add missing functionality like this (broken hall sensor) ? Is it like adding a missing driver and it's done or does it require an extensive "re"-implementation?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] soultuckem:
i already did that . but where can i find the magisk 16.7
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] kalkan001:
Here ;

https://xdaforums.com/apps/magisk/beta-magisk-v13-0-0980cb6-t3618589
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] kopitalk:
Anyone can sing praise about dirac sound enhancement that's bundled with the unofficial build? I'm at official now wanting to try dirac but not enough motivation to switchover to unofficial just for the sake of it.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] LenAsh:
As long as you use the presets, it's really very good (earphones). Works with the FM Radio too, which is a bonus.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] ydd0ras:
Yeah, working with all music apps, Spotify and FM.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] ibooth2004:
The unofficial build isn't as secure as it's signed with a public key.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] k0joo:
this is not working with me , i boot rom p , and if back to remix do this error with Gapps i don't know how i fix this
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] StuckinMemphis:
Error post
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Mecsf97:
Guys, are any of you able to encrypt the storage? Idk what's happening exactly, but for some reason, TWRP seems to erase Data and Android Secure partitions on the first time I boot into it, completely disabling storage encryption, so the system just reboots every time I try to do the encryption procedure when I already have LOS installed (I'm just assuming that Android Secure partition has something to do with it, but idk really).
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Brendanus:
Given the difficulties people have had installing LOS, I would like to share my experience coming from the AEX 5.7 ROM.

The following worked for me:

After failed attempts, I eventually used MiFlash to flash the stock December rom, which restored encryption (bootloader was then locked)

I updated it OTA to July stock ROM

I then followed the LOS wiki https://wiki.lineageos.org/devices/tissot/install

I unlocked the bootloader, which did a factory reset

I used recovery.img from page 1 for the initial temporary recovery from fastboot (TWRP-3.2.3 : https://drive.google.com/a/my.smccd....xport=download)

I flashed LOS official nightly ROM 24/7/2018

After reboot to recovery (LOS), I flashed unofficial modified opengapps for Addon v2 from page 1 (https://drive.google.com/drive/folders/1-K_C362YD07ND3Zs7sz4j2nd7k9Ev3W1).

Note that MindTheGapps failed.

I flashed the addon-su.zip from LOS

Once rebooted into system, I checked the OTA and updated to 31/7/2018 seamlessly.

Gapps survived the OTA, which went smoothly but was quite slow.

SU did not survive the OTA. I rebooted to temp TWRP recovery and flashed it again (LOS recovery could not flash it)

Does anyone know how to make the SU survive the OTA (or at least install from LOS recovery, without a PC)?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] stevedat:
Does anyone help to explain me the differences between official LOS and unofficial one? Which one should you prefer to flash? I am running Liquid Remix 9.1.4 on my Tissot? Thanks
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] kopitalk:
Just search "unofficial" you'll get your answer.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] DoR3M3:
[MENTION=6070905]abhishek987[/MENTION]

Data Reception constantly moves up and down and I noticed there's a bug report on this, so if anyone else has this problem, please make a report on it too!

----> https://jira.lineageos.org/browse/BUGBASH-2118
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Moratilla3:
can i use custom kernels and update by OTA??????
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] stevedat:
Thanks, but I expect someone who use it and share from their perspectives.

Does unofficial support ota that installs the updates like stock or manually flash by twrp?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] ydd0ras:
They are almost the same, but on the unofficial you have an modified Dirac sound enhancement and Substratum support ( no need to reboot after enabling the overlays). So if there is an issue in the official, you'll find the same in the unofficial. The dev said we will have weekly updates. Atm you have to update manually. Before I have switched to Android P DP5, I have used unofficial (after lot of testings for the dev). Found no significant issues.

---------- Post added at 09:43 AM ---------- Previous post was at 09:42 AM ----------

The custom kernel will be overwritten.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] jcagara08:
never in my rom flashing adventure that I have encountered almost rocket science level of understanding how to flash a ROM and after 3-4 times of trying to flash LOS, sorry it seems that the instructions are even more complicated and un unified, I give up... the steps of this ROMs installation should be revised even as frequently as daily. OP please consider my feedback..

Steps here in XDA and LineageOS sites does not do good for would be ROM users.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] beeshyams:
Absolutely agree
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] stevedat:
How the P DP5 ? For daily uses without gamings, just browsers, social apps, camera, calls merely.

---------- Post added at 10:33 AM ---------- Previous post was at 10:30 AM ----------

I got the issue when I first switched to LOS. I suppose that it is in the stage of switch slot A and B after the ROM installed, then twrp.installer
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Seagold:
Which app icon did you use here?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] ydd0ras:
Nice. Absolutely suitable for daily use. If you have no problems with missing hardware key backlight and permissive SELinux, then you can try it. It is not perfect, but at this stage surprisingly stable.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] LenAsh:
Please keep posts on topic... Android P is discussed elsewhere, not in an Oreo Dev thread.

Thanks
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] stevedat:
Thanks. So I would not play with permissive mode.

I will wait until stable version released with enforcing mode :)

Thanks Mod reminds. Not mentioning it.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] kopitalk:
Yet, LOS is still the most popular custom rom in Xiaomi Mi A1 development (based on the number of thread replies and views). Does that mean most of us happy users are rocket scientists? :p
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] ydd0ras:
Yep, but the Tissot is not an usual device, with an simple partition system. With an A/B partition system the almost things are more difficult: not even the ROM itself, but getting it official, the TWRP or Magisk. Flashing custom ROMs was always a bit tricky - for some more tricky, for others less.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] ydd0ras:
Which app icon do you mean?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] champzix1:
I'm not expert this is my non-root installation steps hope it helps

note: this is for unlocked bootloader

Part 1 - restore stock v9.6.4.0 (recommend because you may have different ROM version on both slots)

- use MiFlash to flash stock ROM in EDL mode by command "fastboot oem edl"

- when finished quit EDL mode and reboot device by holding power button until vibrate it's taken about 10 seconds

- minimal setup your phone by SKIP gmail, fingerprint, pin, etc then turn off your device

Part 2 - prepare your device and install LOS

- boot to fastboot and boot TWRP from OP no need TWRP installer zip

- format data and reboot to bootloader then boot TWRP again (i found some bug with stock encrypt LOS 0731)

- wipe system only this will wipe slot A (current)

- switch to slot B reboot to bootloader then boot TWRP again

- wipe system only this will wipe slot B (current)

- flash latest LOS zip this will flash slot A (opposite) reboot to bootloader then boot TWRP again this will switch to slot A

- flash latest MindTheGapps zip this will flash slot A (current)

- flash latest LOS zip this will flash slot B (opposite) reboot to bootloader then boot TWRP again this will switch to slot B

- flash latest MindTheGapps zip this will flash slot B (current)

- factory reset and reboot system

I flash LOS on both slots because to make sure it's look like as stock ROM

note : OTA updates working, my 2 banking apps working, reset phone from settings menu working
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Charles IV:
Be sure to use the twrp in the op and either mindthegapps or Abhishek's opengapps
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] omazumba:
My experience: everything was buggy. TWRP doesn't surgive OTA and in some cases I got bootloader-loops. OTA took hours even with errors sometimes. Magisk reflash forced every module/app to reconfigured. Finally got a bug where the phone would act as if I was pressing home button every five seconds.

But it all chenged when I formatted and wiped everything (on both slots)

Removing encryption, flashing (with cosmic Dan's twrp hotboot, not flashing it after) 20180717 nightly & su-addon for root (after first reboot) instead of magisk (which I now install through Magisk Manager) seems to have eliminated every bug, OTA to the most recently nightly installed in a breeze and I'm very happy with final result.

Hope this helps someone.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] foodproof:
I got it working! With this guide.

Band 20 was disabled on my device (maybe because i set language to "English (United States)" at the first setup).

Had to go back to stock to do it, but root was not required.

Now Band 20 works fine with latest (!) modem.

Baseband is now .TA.2.3.c1-00723-8953_GEN_PACK-1.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] sgkul:
Hey I'm planning to flash this custom ROM. I see a lot of people have issues flashing the ROM. Any suggestions on how to flash?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] kopitalk:
There are so many successful guides posted as well. Why don't you search for those. There's even a guide just a few posts above yours :silly:
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] sgkul:
Yeah but I'm getting confused. Do I need to wipe internal storage? Because sure as hell it sounds that way
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Benjamin_L:
I'd do a backup first and start clean yes
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] sgkul:
Fair enough
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Seagold:
The one on your first post.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] mierlo420:
Way too complicated man. Just follow the instructions on the LOS wiki and you're good to go.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] heinhuiz:
This seems like the definitive guide to me, brilliant!

Two questions:

Does rebooting to fastboot + TWRP after formatting data actually mount /data again with encryption enabled?

Are you able to flash su and if so, does it survive OTA?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] champzix1:
I try to explain how it works on A/B devices and how same as stock environment

1. I think no encryption checked in "Encryption & credentials" no words "Phone encrypted" there (TWRP can mount /data even without format data, I had LOS with stock encrypt before)

2. only su-addon from LOS survive OTA (magisk does not) people say flash via LOS recovery or TWRP from OP i'm not tested because i'm non-root
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] stevedat:
I flash official LOS then full modified GAPPS, install gcam-ap-v8. Everything works well.

Then, I try with stock modified GAPPS, it replaces LOS camera, but it crashes, gcamv8,v6,7 crash as well.

Then, aroma modified GAPPS, uable to install. (I choose exclude camera only)
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Xaviers101:
Please, could anyone tell me how to flash LoS latest build. I am currently using aex. I would appreciate a detailed info please
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Creater0822:
Can somebody explain the difference between "Modified opengapps for Addon v2" and the non-modified opengapps?

Also, which of the eight variant of opengapps is it (I hope it's either nano or pico xD)?

edit: Lol I was so lazy that I didn't even click the URL in order to see that it includes all variants xD
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] N1ck474:
With OpenGapps for Addon V2 you will have seamless updates, stock OpenGapps doesn't support it yet
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] 1NK:
Your speculation does not matter to the case. The GPL requires him to disclose the damn source.

Edit: It seems at least the sources other than the custom recovery have been added to the initial post.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] valkyrjur:
The second part it's completely unnecesary and a waste of a lot of time, sorry but is the truth.

What I did is boot in twrp from the first post, wipe data, cache, system and even internal memory. Flash LOS. Reboot to boot loader, boot again twrp, flash minthegapps; magisk (optional) and reboot to system and you are good to go.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] stevedat:
Stock gapps replace los camera, and gcam installed crash
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] heinhuiz:
If you (and [MENTION=8178479]mierlo420[/MENTION] for that matter) would have read at least a bit through this thread before commenting, you would have seen a lot of people running into a lot of different problems using your method. That you were lucky it worked the easy way does not mean others have to be too. And above all it is no reason to become unfriendly.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] valkyrjur:
The problems was for using twrp releases prior to 3.2.3 that causes a lot of issues. With the latest version flashing procedure is solved.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] champzix1:
thank you for comment, again i'm not expert and also confusing me

our devices are A/B we have separate system_a and system_b, people said wipe system, data, cache then flash ROM that mean wipe system_a then flash system_b and vice versa (only wipe active slot not both)

so i don't get it why we have to wipe system because it's almost same as we can flash ROM immediately without wipe system (data, dalvik/cache are shared on both slots)

i'm try to wipe both slots (system_a, system_b) agreed this is a waste of time i'm still rookie here
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] sgkul:
Thanks a lot. My confusion solved.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Benjamin_L:
Code is available when compiled from official sources before official release. No need to use swear words. He should have mentioned this on the other hand of course.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] kopitalk:
Idk why since the beginning of the thread I notice that those who demanded release of source code are either sour or sarcastic or rude; it's like sth is perpetually stuck in their a**.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] ManojNairOnline:
I tried to build the ROM with the latest source. The build succeeded but when I try to flash it gets stuck at the hello screen.. The very first screen that comes after the lineage animation disappears.

Tried different methods of flashing just does not work. The build before this ROM went official used to work perfectly. Maybe it checks for the build being signed at that point. That could be the reason for it not booting.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Moycano:
Stock 7.0 had dirac enabled by default resulting in clear, loud calls and music.

Stock 8.0 was a nightmare (ridiculously low volume, people complaining about echo; you name it).

Official LOS 8.1 sound OK once you increase the volume editing "root"\system\vendor\etc\mixer_paths_mtp.xml

On latest UnOfficial LOS 8.1, the sound was spot-on from the get go, even before enabling dirac in Settings > Sound > Dirac settings.

All of this might be subjective, but that is my humble opinion.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] AleeexDK:
So latest Unofficial LOS has better audio quality like stock 7.0?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] ydd0ras:
I haven't used stock still January, but the sound in the unofficial LOS is very good.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] seinas:
So for unofficial need use Modified opengapps for Addon v2 :?? And new wersion twrp? Or normal gapps?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] kemdroid:
Does this support ota? Without doing anything else

?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] stevedat:
official LOS 31July2018 with Mindthegapps10June2018.

Will I be able to get OTA as normal stock Rom offers and the GAPPS won't break?

Thanks.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Charles IV:
Modified opengapps or normal mindthegapps,

Magisk and twrp won't survive, but you need to use the twrp in the op

---------- Post added at 08:42 AM ---------- Previous post was at 08:41 AM ----------

Yes, but twrp, magisk and normal opengapps won't survive, so you will need to flash them afterwards

---------- Post added at 08:42 AM ---------- Previous post was at 08:42 AM ----------

Yes, you can get lineage OTA without mindthegapps breaking
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] stevedat:
Thanks.

Just one more question that I flashed official LOS, then MindtheGapps.

Face unlock not presented, how do I get it work properly.

I have google voice, assistant are ok.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Berlino:
[MENTION=5603678]stevedat[/MENTION]

For face unlock try with modified opengapps nano (or higher) package, seems MindTheGapps doesn't include it.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Klirioth:
Do I need to have install TWRP to have otas? OR I can flash rom via TWRP withouts installig twrp?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] stevedat:
Thanks.

Modified gapps v2 will survive after ota updated, right?

Then, can I flash modified gapps v2 over current Mindthegapps.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Berlino:
[MENTION=5603678]stevedat[/MENTION]

Yes, modified opengapps v2 from op are meant to survive ota. I'd highly recommend a clean new install...changing between gapps from different devs could cause problems.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] k8500:
Ah dammit, I just did a LOS update while on the go. Is there any way to either flash Gapps and Magisk from LOS recovery or to boot TWRP without a PC?