• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[ROM][OFFICIAL] LineageOS 18.1 weeklies for Xiaomi Poco F1

Search This thread

PerfectSlayer

Senior Member

xdasmile

Member
Feb 25, 2014
15
4
I successfully upgraded (dirty flashed) from 17.1 to 18.1
- disabled login PIN
- downloaded latest TWRP, latest firmware, LineageOS 18.1 and latest OpenGapps 11 test
- upgraded TWRP and rebooted to recovery
- installed firmware, LineageOS and OpenGapps at once
- cleared dalvik and cache
- reboot

Success!
Hi all,

In the past days, I’ve been reading a lot on this thread, and because I’m a little afraid to loose all my configuration, I have a couple of questions I hope you can help me with.

1) Can I dirty flash to 18.1 from 16.0 unofficial (with TWRP and MindTheGapps, but not Magisk)? I know it’s pretty old, but it worked so well that I thought I wouldn’t touch a running system. (now I’m ready for a newer version, also for security reasons and to get OTA updates)

2) If yes, what is the better procedure, between the one above and this one : https://wiki.lineageos.org/devices/beryllium/upgrade (which uses ADB sideloading)?

More specifically, I’m wondering:

3) Is it better to stick to TWRP or to use the Lineage OS recovery? I’d like to be able to use OTA updates, and I read somewhere these install the Lineage OS recovery anyway? If I use Lineage OS, can I still use the above procedure or do I have to go through ADB sideloading?

4) In the Lineage OS explanation, they don’t mention the firmware update, but I suppose an update is still recommended? And I suppose it’s not an issue if the firmware mentioned in the link above (V12.0.3.0.QEJMIXM) is marked as being for Android 10?

5) If I was on MindTheGapps before, it should be OK if I stay on it and not use OpenGapps?

6) Disabling the login PIN is a necessary step to avoid problems with password loops at startup I suppose? At one time it didn’t use to be necessary, but you would recommend doing it anyway?

7) If I do a TWRP backup, the best is to do it before any other update, right?

Many question, I know, and I hope you can understand. I really don’t want to start all over again with configuring my phone.

In any case, thanks to you all for this amazing forum, and of course to the developers!

Have a great evening/day!
 

Demodroid

Senior Member
Aug 1, 2017
206
105
Xiaomi Poco F1
I would suggest doing a full wipe (with factory reset), installing the latest firmware, and flashing with TWRP. The unofficial builds weren't signed with official LOS keys so they are not compatible.

MindTheGapps or OpenGapps are personal choice, both are stable now.
 
  • Like
Reactions: xdasmile

Em Kay

Member
Jun 13, 2018
17
5
Xiaomi Poco F1
Guys, I have this problem. It seems wifi is always looking for a wifi network after connected to a working wifi. The wifi menu never stops refreshing (the linear refresh bar just under wifi on/off).
When the wifi is on but connected to no network, it functions normally. Problems occurs only after connected to any wifi network.

Can you all please check if that a LOS bug or i've done something wrong to induce it?

My settings are listed below -
Wifi-scan throttling is on in the developers setting.
Wifi scanning & bluetooth scanning is off.
Location is off.
No Google package is installed.
Wireless displey is disabled.
Casting off.

It seems Cast related.
When I select Settings/Connected devices/Connection preferences settings app freezes & restarts and then proceeds to next page. In that page with other settings (Bluetooth, Printing - off, files received via bluetooth) it says Cast is "not connected".

@bgcngm Can you please look into it.
Thanks for this awesome rom btw.
 

Attachments

  • Screenshot_20210722-131748_Trebuchet.png
    Screenshot_20210722-131748_Trebuchet.png
    229.5 KB · Views: 56

xdasmile

Member
Feb 25, 2014
15
4
I would suggest doing a full wipe (with factory reset), installing the latest firmware, and flashing with TWRP. The unofficial builds weren't signed with official LOS keys so they are not compatible.

MindTheGapps or OpenGapps are personal choice, both are stable now.
Thank you for your reply, that’s exactly what I was trying to avoid by any means, but I feared that would be the answer. :)

I saw that there is a script that allows for changing the keys (here: https://wiki.lineageos.org/signing_builds.html#using-a-script) but I also saw that several people didn’t manage to dirty flash with this configuration.

So you’d say it’s much too risky to try anything that looks like a dirty flash, right? In that case, I have a couple of additional questions, to see how I can come as close as possible to keeping all my data:

1) Would backing up the data partition and restoring it after the flashing (and before the first reboot) work to keep the settings of most apps? Or is the only solution to use a tool like Migrater (https://forum.xda-developers.com/t/...20-migrate-custom-rom-migration-tool.3862763/) + many separate tools?

2) Do I also need to flash vendor?

+ the unanswered questions from above (TWRP or Lineage recovery with the possibility of OTA updates, is disabling login PIN necessary, and should I do the backup with the existing TWRP)?

Thanks a lot for your help, it’s really reassuring to know you’re here!
 

Demodroid

Senior Member
Aug 1, 2017
206
105
Xiaomi Poco F1
The migration script introduces vulnerabilities, and you would need to create a migration build with your own keys (LOS don't build migration builds any more).

Technically you can copy the folders in /data, that's what most root backup apps do, but this won't replicate permissions or symlinks. Your best choice would be Titanium Backup, or Migrater like you've linked, 3C Toolbox is handy too.

Vendor is included with the official LOS ROM, so you won't need to flash this separately (still need to flash firmware).

Update TWRP to the latest version on twrp.me. Remove the screenlock first, then make a backup of everything except system and vendor (use the system image and vendor image option instead). Store that backup somewhere safe. Make a full backup of your internal storage as this will also be wiped with a factory reset.

You'll need to factory reset and wipe dalvik-cache, cache, system and data partitions after. Then you can install LOS, Gapps and Magisk.

I don't use OTA updates myself, but I don't think you need to disable the screenlock any more as 18.1 uses FBE, not FDE, the system partition is accessible even without unlocking. If you have LOS recovery, OTA updates work automatically. If you use TWRP, you might need to flash them manually.
 
  • Love
Reactions: xdasmile

xdasmile

Member
Feb 25, 2014
15
4
The migration script introduces vulnerabilities, and you would need to create a migration build with your own keys (LOS don't build migration builds any more).

Technically you can copy the folders in /data, that's what most root backup apps do, but this won't replicate permissions or symlinks. Your best choice would be Titanium Backup, or Migrater like you've linked, 3C Toolbox is handy too.

Vendor is included with the official LOS ROM, so you won't need to flash this separately (still need to flash firmware).

Update TWRP to the latest version on twrp.me. Remove the screenlock first, then make a backup of everything except system and vendor (use the system image and vendor image option instead). Store that backup somewhere safe. Make a full backup of your internal storage as this will also be wiped with a factory reset.

You'll need to factory reset and wipe dalvik-cache, cache, system and data partitions after. Then you can install LOS, Gapps and Magisk.

I don't use OTA updates myself, but I don't think you need to disable the screenlock any more as 18.1 uses FBE, not FDE, the system partition is accessible even without unlocking. If you have LOS recovery, OTA updates work automatically. If you use TWRP, you might need to flash them manually.
Thanks a million for your reply!

3C Toolbox looks very nice indeed, thank you! I used it for backing up.

To make sure I understand, and make it easier in the same situation for others to copy the procedure, here’s a little recap:

- in the existing system, backup everything that I can several times :) (online, SD card, etc.)
- disable login PIN (not really necessary if I understood right, but just in case?)
- download latest TWRP, latest firmware, latest nightly of LineageOS 18.1 and latest MindTheGapps — put everything on the SD card (if there is no SD card, it also works with adb)
- reboot to recovery (I don’t have Magisk to make updates easier and because I can do most things I need without root)
- upgrade TWRP through the in-app procedure
- reboot to recovery
- backup of everything except system and vendor
- do system image & vendor image (not exactly sure yet how this will be but I’ll figure it out I suppose)
- do a factory reset (I suppose there is an option in TWRP)
- install firmware, LineageOS and MindTheGapps at once
- clear dalvik and cache, just in case
- reboot
- get all the backups back and configure the system…

Does that sound right?

For the Lineage recovery, I’ll see later if I need to use it to have OTA updates. (if yes, I have to go through ADB?)

Thanks a lot for everything, and have a nice evening (/day)!
 

Octhellio

Member
Jul 25, 2008
42
6
Does anyone know why I only have 16GB internal memory instead of the 64GB it should be?
And even better, how I can fix this?
 

Attachments

  • Screenshot_20210723-141646_Settings.png
    Screenshot_20210723-141646_Settings.png
    65.9 KB · Views: 46

0xfab1

Member
Dec 13, 2020
22
30
Samsung Galaxy S4
Xiaomi Poco F1
20210724 does not work for me: When I enter my PIN on the lock screen, I can see the touches (white circles on the keys) but no entry is made (no dots appear for the PIN numbers on the entry line).

I had to downgrade back to 20210717 and the login on the lock screen after booting works again as expected.
 

duttyend

Senior Member
Dec 18, 2012
415
244
20210724 does not work for me: When I enter my PIN on the lock screen, I can see the touches (white circles on the keys) but no entry is made (no dots appear for the PIN numbers on the entry line).

I had to downgrade back to 20210717 and the login on the lock screen after booting works again as expected.
Weird, do you have Magisk modules installed? Or did you modify display density or notch layout?
 
  • Like
Reactions: 0xfab1

0xfab1

Member
Dec 13, 2020
22
30
Samsung Galaxy S4
Xiaomi Poco F1
Weird, do you have Magisk modules installed? Or did you modify display density or notch layout?
Hi duttyend

Thanks for your reply. Yes, Magisk is installed but all modules were disabled before the upgrade (I always disable the modules before upgrading) - so the modules should not be the problem. The display density is not modified (Settings > Display > Advanced > Display size = Default) and the notch is hidden (Settings > System > Developer options > Display cutout = Hide). Before the downgrade I tried to enter the PIN with scrcpy and that worked, i.e. with mouse clicks I could press the buttons on the lock screen and the input was accepted and the device was unlocked.
 
  • Like
Reactions: duttyend

duttyend

Senior Member
Dec 18, 2012
415
244
Hi duttyend

Thanks for your reply. Yes, Magisk is installed but all modules were disabled before the upgrade (I always disable the modules before upgrading) - so the modules should not be the problem. The display density is not modified (Settings > Display > Advanced > Display size = Default) and the notch is hidden (Settings > System > Developer options > Display cutout = Hide). Before the downgrade I tried to enter the PIN with scrcpy and that worked, i.e. with mouse clicks I could press the buttons on the lock screen and the input was accepted and the device was unlocked.
That's interesting, the only culprit seems to be notch configuration then. I've read recently that people where complaining because something has changed and they're not able to use "Hide" option as before.
Anyways, you're not missing anything new with this update, the change log was small and only one commit was for SD845.
 
  • Like
Reactions: 0xfab1

xdasmile

Member
Feb 25, 2014
15
4
The migration script introduces vulnerabilities, and you would need to create a migration build with your own keys (LOS don't build migration builds any more).

Technically you can copy the folders in /data, that's what most root backup apps do, but this won't replicate permissions or symlinks. Your best choice would be Titanium Backup, or Migrater like you've linked, 3C Toolbox is handy too.

Vendor is included with the official LOS ROM, so you won't need to flash this separately (still need to flash firmware).

Update TWRP to the latest version on twrp.me. Remove the screenlock first, then make a backup of everything except system and vendor (use the system image and vendor image option instead). Store that backup somewhere safe. Make a full backup of your internal storage as this will also be wiped with a factory reset.

You'll need to factory reset and wipe dalvik-cache, cache, system and data partitions after. Then you can install LOS, Gapps and Magisk.

I don't use OTA updates myself, but I don't think you need to disable the screenlock any more as 18.1 uses FBE, not FDE, the system partition is accessible even without unlocking. If you have LOS recovery, OTA updates work automatically. If you use TWRP, you might need to flash them manually.
Thanks again! Following my previous message, I "jumped in the cold water" and wiped everything and reinstalled the latest LOS. So far it works (although you always find out that some less important data hasn’t been backed up properly, that’s life).

Here’s what I did, if others need it:

- in the existing system, backup everything that I can several times (online, SD card, etc.)
- disable login PIN (not really necessary if I understood right, but just in case?)
- download latest TWRP, latest firmware (at the time of writing, the latest firmware is for Android 10, but it works even for LOS 18 i.e. Android 11), latest nightly of LineageOS 18.1 and latest MindTheGapps (or OpenGapps if you prefer) — put everything on the SD card (if there is no SD card, it also works with adb)
- reboot to recovery (I don’t have Magisk to make updates easier and because I can do most things I need without root)
- upgrade TWRP through the in-app procedure (flashing .img on the recovery partition)
- reboot to recovery
- backup of everything (except system and vendor, where I selected system image & vendor image instead [and not internal storage in my case, I did a manual backup of the files I needed])
- do a factory reset by selecting wipe, format data
- then wipe, advanced wipe in TWRP, and select dalvik/ART cache, cache, system and data
- install firmware, LineageOS and MindTheGapps at once
- wipe dalvik and cache, just in case
- reboot
- get all the backups back and configure the system…

Quite intense!

Have a great summer, thanks again for all the help!
 
Last edited:
  • Like
Reactions: duttyend

Top Liked Posts

  • There are no posts matching your filters.
  • 7
    Same here. I'm currently testing the newly introduced option for auto brightness (one shot, check only once). I hope that this might fix the issues I had with previous versions. so far so good, but let's wait and see
    Replying to myself: unfortunately the new option doesn't have a positive effect regarding the auto brightness bug on my device, behavior is still broken
    6
    For your information, latest release (2021.08.28) is working fine here.
    4
    For your information, latest release (2021.09.04) is working fine here.
    4
    20210911 works fine here - Android security update is still August 5, 2021.
    3
    If you use NikGApps, get a package with Velvet Addon ( I think full package include it - u can use config file to choose what u want to install) or manually flash it.
    Otherwise try FlameGApps with Google Assistant Addon.

    BEWARE! I downloaded the latest Velvet Addon for Android R from NikGapps, flashed it and now my system won't boot. Reason displayed by TWRP is 'rescueparty'. Never seen this error before and TWRP suggests to wipe cache and/or format data and/or clean install.

    Edit: Wiping caches did not help. I only managed to get the ROM booting again by reflashing the ROM itself, but now Magisk is gone and it won't let me reinstall (ZIP signature verification fails).
    Edit2: Forgot I turned on ZIP verification as a test when installing the latest version of this ROM... apparently that doesn't work well for flashing Magisk. Disabled ZIP verification and all is good now.

    I'm just gonna forget about the 'OK Google' now, not worth the stress of a phone that doesn't boot.
  • 45
    2okPze5.png

    LineageOS is a free, community built, aftermarket firmware distribution of Android 11 (R), which is designed to increase performance and reliability over stock Android for your device.

    LineageOS is based on the Android Open Source Project with extra contributions from many people within the Android community. It can be used without any need to have any Google application installed. You will need to provide your own Google Applications package (gapps). LineageOS does still include various hardware-specific code, which is also slowly being open-sourced anyway.

    Base source code is available in the LineageOS Github repo. And if you would like to contribute to the project, please visit our Gerrit Code Review.

    GPL compliance:
    yG18r6g.png

    Working:
    • Camera (and flashlight)
    • WiFi
    • Bluetooth
    • Telephony (Calls and Data)
    • IMS (RCS, VoLTE and WiFi Calling)
    • Audio (Record and Playback)
    • Video Playback
    • Sensors
    • GPS
    • Encryption (FBE)
    • WiFi Display

    Broken:
    • Nothing (?)

    Compatibility:
    Compatible with all Xiaomi Poco F1 variants.​
    Builds are based off the Xiaomi's Android 10 firmware with proprietary blobs from MIUI v11.0.3.0 global stable package.​

    Downloads:

    Notice:
    • No custom kernels are supported in this thread. Only stock kernel and official builds will be supported. No bug reports if that's not the case.

    Installation:
    • Reboot to recovery
    • Format /system, /data and /cache
    • Install LineageOS zip package
    • Install [optional] a Google Apps package of your choice (Open GApps is advisable, but stock and super variants are not recommended!!!)
    Important notes:
    • * Required * firmware version must be based on MIUI Q-based builds.
    • GApps can only be flashed on clean installs.
    • Formatting data (all user data is wiped, including internal storage) is a must if MIUI was previously installed and device was encrypted.

    Credits & collaborations:
    All LineageOS team would like to thank everyone involved in helping with testing, coding, debugging & documenting! Enjoy!​

    Device wiki:
    22
    New build is up, with this month's Android security fixes already included and working WiFi Display.
    22
    New build is out. It includes March's security patch.
    17
    Lots of updates for the upcoming build. :D
    16
    I am a little bummed about Lineage OS 17.1 official support being dropped as I was really happy on that ROM.
    You do realize that I am human and can't support both branches, right?