yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] methuselah:
Lol its the only thing you need for lineageOs to work
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] dvishalkhatri:
In which build it is fixed ?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] coremania:
Only thing missing so far is a working twrp installer to use twrp a_b retention script for ota updates. Any plans for this ? But anyway the official build works great, thanks for making this possible !!!
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] deimidis:
I tried all the different Networks, but nothing works. There's a SIM (the one that is not from this country) that seems to find network and information when it's alone. The other one (local SIM) have some results when it's on slot 2, but the other message "SIM 4 not allowed" when it's on Slot 1. I can't fins any webpage with information about "SIM 4 not allowed" error.

Right now I can think only in two options:

1) Trying March firmware

2) Downgrade to 15.1

Is there any other option?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Kadyo:
Hi Flex, I updated from initial build to build today( March 20). I'm just curious if the ota will work seamless. After the reboot, it goes to Android recovery and boot again to lineage logo and back again to recovery .

Magisk is installed. I did not put magisk to install to other slot as what I'm doing with Los 15.1 as it is working well without any problem, before February update.

Thank you for official lineage 16 and hoping that ota will work same as lineage 15.1( before Feb update).
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] HidekiRyuga:
I can't install magisk tried

-clean install, install los, reboot to twrp again install gapps and magisk reboot system

-and I can't encrypt my phone.

anyone please?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Brendanus:
Sorry if these are obvious questions:

Did you choose "format data" before wipe and clean install?

Is your phone almost fully charged (needed for encryption)?

Have you installed Magisk Manager?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Yasabh:
Yesterday, I installed oficial Lineage Os version (the first one) and now i was trying to update to 20 march version. I have extra encryption enabled on my device and, during the boot, my phone asked me to put the PIN. Keyboard didn't work so i had to reinstall the last version again usint TWRP
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Brendanus:
Installed LOS 16 from another custom rom, successfully, following OP instructions. Encrypted data.

Updated OTA today from 19/3/2109 to 203/2019, perfectly smooth. Magisk, Gapps etc all working as before.

Great work, many thanks, devs! :cool:
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] HidekiRyuga:
I did is wipe and format data and lastly system, I messed up right? what's the proper way?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Kadyo:
Did you update using the ota updater?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Brendanus:
Depending on whether you were encrypted before, you might need to format data first, then wipe as usual.

---------- Post added at 04:07 PM ---------- Previous post was at 04:06 PM ----------

Yes. Worked perfectly! :)
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Brendanus:
So I guess you were encrypted. "Format data" wipes all internal storage (not just app data) but it clears the encryption issues etc.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] HidekiRyuga:
So better not to format data?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Kadyo:
I just tried two times,but after reboot it goes back to recovery and just boot on lineage logo. Can you tell me how you update? By the way magiskl is also installed in mine before the update,

Thank you in advance
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Brendanus:
Just the opposite. You DO need to "format data" before you wipe, in order to remove the encryption from the stock rom. Of course, first back up whatever you need to keep on the internal storage. Good luck!

---------- Post added at 04:21 PM ---------- Previous post was at 04:18 PM ----------

If your original installation was working properly (as mine is), I don't understand why the built-in OTA update process did not wok for you. Are you encrypted? (IDK if that makes any difference.)
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Kadyo:
Yes,encrypted.I clean flashed everything coming from stock using flexs TWRP. By the in magisk, I'm using YouTube Vanced and universal gms doze module only.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] HidekiRyuga:
Can you tell me your installation process?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Brendanus:
Based on OP Instructions:

Download the latest build, special TWRP and GApps

Boot the downloaded TWRP via fastboot

Format Data

Wipe Dalvik, System, Data, Internal storage

Change a/b slot

Reboot to fastboot and again hotboot to TWRP

repeat wipes for other slot

reboot to fastboot and again hotboot to TWRP

flash LOS rom

reboot to fastboot and then to TWRP as before

flash GAPPS

flash MAGISK if required

Reboot to system
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Kadyo:
1.Coming from stock,booted to bootloader using TWRP from op. Wipe everything. Flashed lineage 16 nightly.

2. Reboot to bootloader. Flash TWRP from op. Install nano gapps. Boot to system. Everything works fine,I set up as usual.

3. After set up,i rebooted again to bootloader using TWRP from op,flash magisk.eveething works fine after reboot.

4. Today I saw update so I immediately try to update via ota updater. Downloaded the update,and after ask for reboot .

5. After reboot,it was in lineage logo for long time and after that it goes to Android recovery(I think lineage recovery is not included in new rom). In Android recover there is 2 options, 1 is to try again and 2 is to factory reset. I chose number 1 and same thing, it was stucked in lineage logo for some time and again goes back to Android recovery .

6. Manage to get back to initial release by dirty flashing the first build,gapps and magisk. Sorry for long story.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] yurikoles:
You don't need to flash recovery, only hot boot it.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] coremania:
First ota works perfect, if you want to keep magisk install it to inactive ota slot before you restart after ota update has installed. Just to avoid using PC again for temporary twrp to flash magisk again.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Kadyo:
I just only hotboot it. Wrong term.

---------- Post added at 06:13 PM ---------- Previous post was at 06:09 PM ----------

Hi, I will try this one. Thank you

Edit.: I tried this but still going to recovery after the update. Should I use new version of opengapps? I'm using October 2018 build.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] kuartito:
if i have magisk already installed should i uninstall it before flashing los 16? I'm on stock
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] coremania:
If you come from unofficial you need the migration process or perform a clean install of the official build.

Then ota works well as I mentioned above.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] daviporciuncula:
Can I flash it from stock pie January, fev or march OTA? Couldn't find it on OP
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] yurikoles:
Same issue with encryption, I can't unlock phone after installing first OTA, no keyboard :(
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] FieldsMA:
Google Assistant doesn´t work for me. When I long press the home buton, the assistant doesn´t launch. I have enabled it in buttons settings, in google options and I tryed downloading the google assistant app but it doesn´t work. Any solution?

I installed pico gapps.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] coremania:
Use nano ;)
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] AmalShajiKunnel:
Todays OTA, 20 March... bootlooped and went automatically into los recovery.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Kadyo:
After few tries I managed to update via ota updater without going to recovery after the reboot.I just reflashed lineage 16(first nightly build) by hotbooting TWRP and gapps(I downloaded new version of nano open gapps)same as before. I boot to system,and hotboot again to flash magisk. After that i remove my pattern lock and finger print,download the March 20 build and installed it. Reboot without installing magisk to another slot. To my surprise it rebooted normally,magisk intact. I don't know if removing pattern/fingerprint lock helps either the new version of nano gapps.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] IganSchacht:
So, I was using the unofficial build from Januray (lineage-16 0-20190122-UNOFFICIAL-tissot.zip) until today. How do I update to the new official version?

I tried a clean install, but whenever I flash TWRP gives me an error:

Error applying update: 26 (ErrorCode::kDownloadMetadataSignatureMismatch)

Updater process ended with ERROR: 1

Error installing zip file '/sdcard1/lineage-16 0-20190320-nightly-tissot-signed.zip'​

Where I'm botching it up?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] autorage:
I updated from an encrypted official LOS 15.1 yesterday.

I followed the instructions given here

Encryption survived.

Gapps and Magisk must be reflashed.

Todays update installed fine same process as it was on 15.1.

Gapps and Magisk survive.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] datasource:
Are you using twrp from OP ?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] IganSchacht:
This is awkward. I just booted to test it, flashed the usual partitions, and then the phone shut off and wont power up again.

EDIT 1: False alarm, I just had to press the power button for like two minutes until the phone turned on again. I'm a dumbass.

EDIT 2: Yep, so the issue was that I've been using the Oreo TWRP, because I'm a dumbass that doesnt read before properly flashing ?. The newest TWRP provided in that link worked flawlessly.

Many thanks!
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] ncssrtnvnthm:
I have the same problem after the first ota update (lineage-16.0-20190320). The recovery tells that "Can't load Android System. Your data may be corrupt. If you continue to get this message, you may need to perform a factory data reset and erase all user data stored on this device." and offers the choice to do a factory reset or try to boot again. I followed the instructions when installed the rom. Only opengapps full and magisk was flashed. Next morning i will try a dirty flash, in hope that will fix it.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] HidekiRyuga:
I did this still phone not encrypted, when I try to encrypt the device it's just rebooting , and magisk is not installed, I have a question, Do I still to go back to slot A to install the rom? and install rom and magisk on both slots?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Pirateguybrush:
I have a few questions, coming from 16 unofficial. I plan to do a full wipe/reinstall to save myself potential headaches.

-Do I have to use the twrp in the OP? Can that be flashed permanently, or only booted via fastboot? Can I use CosmicDan's instead?

-What's the difference between SU and Magisk? I'm comfortable using Magisk, should I just stick with that, or do I need both?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] ashjas:
Hi just upgraded from 15.1 to 16.0.

Everything works so far , just that i cant call anyone.. i am on volte sim.

Any fixes please? [MENTION=5120185]flex1911[/MENTION]
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] flex1911:
1. You have to use it only to install the ROM. After that you're free to install whatever permanent TWRP you want (though it unlikely gonna survive after OTA updates)

2. SU addon is the officially supported root method of LineageOS. Magisk is not. Moreover, magisk is much more complicated and can potentially introduce issues with OTA's.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] ThunderZade:
Sir should I flash that recovery.img via fastboot?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Pirateguybrush:
Apologies for my ignorance, but does the SU addon allow easy download/installation of packages in the same way Magisk does? I use quite a few packages downloaded via Magisk.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] fdc77:
take a look here, 100% working solution

https://xdaforums.com/showpost.php?p=77330471&postcount=3847

---------- Post added at 07:52 ---------- Previous post was at 07:44 ----------

same problem for me, but dirty flash works.

are your device encrypted? which gapps package are you using?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] ncssrtnvnthm:
Dirty flash works for me too. Now my phone is working again. Storage is not encrypted and i'm using the full variant from the gapps.

I think the problem was caused by the magisk but i'm not sure. Back in the comments user coremania wrote that he had a successful ota update with installed magisk:

next ota update i think i gonna try that with magisk
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Zijj:
I dirty flash upgraded from the latest 15.1 and now have audio problems.

Whenever the phone should play any sound (music, notification, alarm...) there is just a "clicking" sound (continuous little click sounds until I stop the respective sound).

This happens over speaker and over headphones, but it works normally over bluetooth.

Anybody any idea how to fix this? Try again with a clean flash?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] ashjas:
Can anyone suggest me how do I fix volte?

Upgraded from 15.1 to 16.0, I don't have any other issue apart from not being able to take or make calls. I have volte sim. I followed the official migration steps from OP.

Please suggest something.

Thanks.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Shadeslayer13:
Can confirm that following the migration method from unofficial to official worked perfectly (with Magisk/gapps installled).

OTA also worked despite Magisk, but it took a looong time (like 30 min).
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] JaadiBooti:
I tried that but I couldn't boot after flashing the migration build (could not read data). Luckily I had a backup of my system partition.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Shadeslayer13:
Did you follow the procedure exactly? I.e. use the custom recovery, wipe System only, reboot straight to bootloader when it's said to do so (and not to system), etc?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] JaadiBooti:
Yeah but I tried boot to system AFTER installing gapps etc like it says. That's when it gave me that error. I hadn't flashed official yet.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] albsat:
[MENTION=5120185]flex1911[/MENTION]

I know this not a productive idea but it might work for some people.

Is it possible to release once a month, a rom type like the previous unofficial releases that we can use with the regular Twrp?

Thank you for your work.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] yurikoles:
Hotbooting OP's TWRP and simply swapping slots saved my life.

But then I had tried to flash second official build via TWRP after formatting system and cache. It just works, there is keyboard, so I can unlock my phone's encryption.

[MENTION=5120185]flex1911[/MENTION], it seems to be some issue in OTA update process, if I do OTA there is no keyboard for unlocking encryption. Others also having this issue.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] flex1911:
weird, will look into it.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] ondy182:
Migration build has worked for me, now I have successfully completed the first OTA even with magisk. That's what I call a great work, thanks!
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] h3g3:
Fingerprint scanner doesn't work

Hi,

i just installed official Lineage OS 16.0 from 20th of March with openGapps and Magisk. I wiped only the system partition as described in post #537 of this Thers

Until now everything works fine except the fingerprint scanner. I can't unlock the phone with the scanner and in the settings there are no options to configure the scanner or to scan my fingerprints.

Before the upgrade it works fine.

I hope you can help me.

Thanks

hege
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] flex1911:
logs?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Francesco hunt:
a recovery that remains permanent with every update and can update lineage os 16 every night without giving errors there?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] h3g3:
Ok, after 5-7 reboots the scanner is now working, i didn't do anything between the reboots.

If the Problem occurs another time i will post the logs.

Thanks

hege
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] h0ttentot:
Just to clarify because i'm reading a lot of conflicting advice.

My A1 is arriving next week and i plan on putting LineageOS on it. Is there anything special i need to do to have encryption or i just need to follow the wiki (unlock bootloader > boot to temporary twrp > wipe > format > advanced wipe > sideload rom) and i will be able to encrypt fine after flashing?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] datasource:
Everything working flawlessly. I came from unofficial los and followed all the steps to upgrade using migration build from OP. I've been using unofficial LOS 16 since August 2018 as a daily driver. Thanks again to [MENTION=5120185]flex1911[/MENTION] for his great work.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] HidekiRyuga:
You cannot encrypt after you format your data, it'll just reboot and no encryption will happen.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Pirate.Hearts:
Just bought this device today, in would like to try LOS 16. But got confused with a lot of tutorial on youtube and article, one of them was pretty easier to flash, another u need to choose A or B partition, etc. So now, I don't know why so many way and which one is better. Any advice?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Kadyo:
Just want to share. I installed latest nightly build(March21) coming from March 20 build without any problem via ota lineage updater. I did not remove magisk nor do anything,just downloaded the update and reboot. Thank you Flex
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Yasabh:
I had the same issue like in the last (March20) version. I couldn't write my PIN because there wasnt keyboard. I just changed boot slot (hotboot TWRP) and no update.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] flex1911:
Just curious, what gapps package do you use?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] sammarwah1:
I dirty flashed now my play services keep crashing. any suggestion on what should i do?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] fdc77:
please can you share more info, OTA don't work for me.

are you encrypted? have you set a secure boot?

which gapps package?

have you removed fingerprint and password before applying ota?

Thanks
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Yasabh:
Stock Gapps!

Edit: I have Magisk installed, EdXposed Working. Encryption ON. Fingerprint on.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Kadyo:
1. Yes I'm encrypted, I'm coming rom stock Feb pie before I flashed first nightly build.

2. Yes secure boot was applied.i did not remove fingerprint not password.

3.nano opengapps build March 20.

Note: im having problem also during my first try yesterday to update via ota from 19thmarch nightly to 20th March, if you will read few page back.

What I did was I flashed new version of nano gapps,actually I don't know if that helps.( I'm using Oct 2018 nano gapps prior).and I remove my fingerprint/pattern prior to reboot. I don't know if that helps . After that I try again to update 19th build to 20th build and its a success.

Today,when I saw the new update I immediately downloaded and installed the new nightly , reboot and successfully installed the new nightly without removing magisk,or removing my fingerprint/pin lock .
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] flex1911:
I suspect that's because stock gapps replace the default keyboard app.

Either try to use the smaller gapps package, or configure OpenGApps to not replace the default keyboard application: https://github.com/opengapps/opengapps/wiki/Advanced-Features-and-Options
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] fdc77:
ok thank you very much, we have a so closely similar system state apart for gapps where i use stock package, maybe this is the problem, i will try with a smaller package or with mindthegapps
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Zijj:
I have now installed the latest stock rom and then fully wiped the phone and reinstalled Lineage, now sound is working without problems. Not sure what the problem was, but if anyone is facing similar issues, dirty flash might have been the cause. :)
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Yasabh:
Can i dirty flash new gapps without any issue on my phone?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] HidekiRyuga:
How did you enable your encryption?:confused:
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] flex1911:
Sounds like somehow firmware that's shipped with the ROM didn't end up being flashed on your device. Did you use my twrp image for installing?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Inmann:
Thanks dude. ROM installed perfectly with these steps.

Of Course I made a backup of my previously system for any case :)

Everybody need to made a backup before you install a new ROM, so if anythin goes wrong, you can go back to your previous working system.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Obscurax:
For people experiencing problems encrypting their phone:

It's because formatting /data in TWRP uses up all the available blocks, but encryption from LineageOS needs 16k of free space at the end of the partition to store the encryption headers. Hence the encryption fails.

Solution:

https://gist.github.com/luk1337/234995d45531e7c6f49042dbd3fce131

In the gist 32k is used but 16k is sufficient.

Maybe this can be added to the wiki?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Zijj:
Yes, I did. But seems like it was my own fault, since I installed the microG version thinking it was the same. However, the file is quite a bit smaller, thus probably not including the firmware.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] coremania:
It's the same ota update process like with los 15.1

If you had installed twrp, you can flash the twrp retention script as well to keep twrp after ota reboot.

You only need flex twrp once for first los 16 install.

Install ota with updater

Don't reboot

Install magisk to ota slot

Don't reboot

Install magisk twrp retention script to keep twrp

Reboot the device, be happy

If you're not happy boot to twrp and make sure the ota slot boots.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] 0101chaitanya:
Bro can you explain this process in noob terms please .

---------- Post added at 04:36 PM ---------- Previous post was at 04:34 PM ----------

Shouldn't the retention script be flashed before installing the magisk to inactive slot , are ota slot and inactive slot the same things ? Forgive me if I'm wrong
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] flex1911:
Aaah. microg version surely doesn't include firmware.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] coremania:
Yes it's the same. Read the description of retention script first.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] 0101chaitanya:
Bro can you please add IND AIRTEL VOLTE support to lineage os please
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Cr3sc3nt:
Which version is recommended?