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

[ROM][10] LineageOS 17.1 + 18.1 (official trees - unofficial build) [SURYA]KARNA]

Search This thread

v44r

Member
Nov 28, 2020
10
6
I also had this problem last month. I went to the advanced wipe menu in twrp, and in addition to the usual wipe options I did a "factory reset". I guess there are probably better solutions.
I thought that didn't affect /system and therefore the gapps would be restored anyway...

In any case I solved it by modifying the /install/bin/backuptool.sh script inside the LineageOS rom zip. I added a "return 1" as the first line of the check_prereq() function to avoid any backup/restore and flashed the modified zip. All good. That disables ALL backup/restore scripts, but the only other script in /system/addon.d/ is for backing up and restoring /etc/hosts, which I don't touch, so no problem.
 

gardiol

Senior Member
Feb 23, 2011
757
975
San Carlo Canavese
photos.gardiol.org
So how can we delete the installed gapps? I want to go back to a clean lineageos but the /system/addon.d/70-gapps script backups and restores the google apps whenever I reinstall the rom zip. In the past (eons ago, in LG G3 times :p) I knew I could format /system and get rid of everything, but now I can't find a way to format /system in twrp 3.5.2.

Can we fastboot erase system without any unintended consequences? I'm new to this new era of dynamic super partitions.

(edit) I should have mentioned: I haven't found a way to mount the /system partition rw either (to manually remove the damned addon.d/70-gapps.sh). Clicking on it in twrp with the switch "Mount system partition read-only" disabled does nothing. I can only mount it read-only.
TWRP is unable to operate on dynamic partitions, so format system is not possible. Use LineageOS Recovery.
 

Francis giann

New member
Jun 4, 2018
2
0
How is the battery for this Rom? I really want to change arrow os to this cause i only get 5hours SOT 60hz (and i only played two wildrift games!!!!). And what kernel is good for this rom?
 

v44r

Member
Nov 28, 2020
10
6
It's been a long time since I last used CM/LOS (started with the HTC Desire 11 years ago, stopped when I bought the OnePlus 3 5 years ago) and... I didn't realize how much I missed it. This thing is blazing fast and smooth, and the last build with microG seems rock solid (judging by the few hours I've been playing with it). I can't believe I endured 8 months of MIUI.
 
  • Like
Reactions: hoamer and paradøx

hoamer

Member
Dec 26, 2008
17
5
How is the battery for this Rom? I really want to change arrow os to this cause i only get 5hours SOT 60hz (and i only played two wildrift games!!!!). And what kernel is good for this rom?
I used it for 1.5 months, underclocked big and little to ~1.3ghz and can use it for 1.5-2 days. But it really depends on your usage.
Maybe you can also try a different kernel, so you can change wakelocks and governor. But for the latter, I think the integrated one should be fit the need of the most people.
 

gardiol

Senior Member
Feb 23, 2011
757
975
San Carlo Canavese
photos.gardiol.org
How is the battery for this Rom? I really want to change arrow os to this cause i only get 5hours SOT 60hz (and i only played two wildrift games!!!!). And what kernel is good for this rom?
With latest releases i get usually around 10 to 12h or SOT on Surya (never really, i charge daily, but that's projected bb). Karna gets to 14h SOT.

Of course yours depend on your use and signals.
 
  • Like
Reactions: f3r.and0

gardiol

Senior Member
Feb 23, 2011
757
975
San Carlo Canavese
photos.gardiol.org
I used it for 1.5 months, underclocked big and little to ~1.3ghz and can use it for 1.5-2 days. But it really depends on your usage.
Maybe you can also try a different kernel, so you can change wakelocks and governor. But for the latter, I think the integrated one should be fit the need of the most people.
Be warned that underclocking does not help with BB. Instead, it can be counterproductive. CPUs and governor is optimized for battery usage, and underclock will cause cores to run for longer at clock speeds which are less effective. Think as this: you want your CPUs to stay idle/off as much as possible. It's better to have then run at higher Ghz for less time than having them run for longer at lower Ghz. The key point here is that the actual power save comes from having cores shut down. Not running at lower speed.

I recomend not to mess with cpu clocks and watch your usage. Don't game or use GPU internsive apps like youtube / instagram... That will make the difference.
 

hoamer

Member
Dec 26, 2008
17
5
Be warned that underclocking does not help with BB. Instead, it can be counterproductive. CPUs and governor is optimized for battery usage, and underclock will cause cores to run for longer at clock speeds which are less effective. Think as this: you want your CPUs to stay idle/off as much as possible. It's better to have then run at higher Ghz for less time than having them run for longer at lower Ghz. The key point here is that the actual power save comes from having cores shut down. Not running at lower speed.
Hi gardiol, this makes sense. Thank you for your advise and intense work. Have a nice vacation!
 
Last edited:

jdis

Senior Member
Jan 24, 2011
120
18
Help please! Wiped phone for a clean install. Flashed the rom, then flashed mindthegapps and Magisk. I boot up and then hit the problem - I'm not getting a keyboard!? Any help greatly appreciated :)
 

jdis

Senior Member
Jan 24, 2011
120
18
Make a clean install with opengapps, not mindgapps...
Thanks, no luck sadly :( Guess I'm going to try
"If you have any issues flashing, like persistent GApps or booting issues, try to cleanup the phone with the following procedure:
  • Download a full MIUI rom recovery package from XiaomiFirmwareUpdater
  • ... (make sure you download the full rom package for RECOVERY, it is about 2.4Gb!) ...
  • From recovery, flash the zip file. This will cleanup all the partitions.
  • Now flash again this ROM."
Thankfully that sorted it out :) Sorry wasn't patient enough to download the 2.6GB before asking.
 
Last edited:

lamemclame

Member
Jun 11, 2021
7
3
I've been running the 20210611 build with opengapps pico on surya for two months now and it's been working very well, except for two pretty big issues:
  • All incoming calls show as "unknown number."
  • Location services don't work. Oddly enough if I try the app GPS Test it gets a fix quickly and accurately, but neither Google Maps nor OsmAnd are able to get a location fix. I've tried with Google Location Services both enabled and disabled.

Maybe this would be fixed by updating to the latest version? I see that doing so would require formatting /data. What's a good way of backing up and restoring so I don't lose all settings when I do that?

Thanks for the hard work by the way gardiol, overall I love the ROM!
 
Last edited:
  • Like
Reactions: Mustkeg

Mustkeg

Senior Member
Jan 2, 2012
186
83
I've been running the 20210611 build with opengapps pico on surya for two months now and it's been working very well, except for two pretty big issues:
  • All incoming calls show as "unknown number."
  • Location services don't work. Oddly enough if I try the app GPS Test it gets a fix quickly and accurately, but neither Google Maps nor OsmAnd are able to get a location fix. I've tried with Google Location Services both enabled and disabled.

Maybe this would be fixed by updating to the latest version? I see that doing so would require formatting /data. What's a good way of backing up and restoring so I don't lose all settings when I do that?

Thanks for the hard work by the way gardiol, overall I love the ROM!
I'm on the 20210728 build and also have the issue of Google Maps and OsmAnd not getting a position.
Google Maps also shuts down immediately after launch for several times before staying running.
 

vertiron

Member
Jul 30, 2021
5
0
The only gripe i have with MindTheGapps is it doesn't offer minimal (basic/core) versions. Is there a way to "reduce" the package somehow, removing all extra functionality, auto and so on like flamegapps does?
 

Tomek0000

Senior Member
Jun 14, 2015
406
109
I dirty flashed newest update. Location works good in maps, but maybe not the same quick like previously, but i have same Google maps crashes after first start before maps starts to run good.
I used nikgapps basic version. I lost system watch. It looks like this los uses Google watch from Gapps and maybe nikgapps does not include it. I had a problem with installing it from play, but i did it from other shop.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 11
    7
    Hi guys, just some notes.

    To any having issues with GPS, ensure you upgraded to latest build AND i also suggest to perform a deep clean by flashing a fastboot MIUI rom as most probably you have borked something in persist partition. GPS works just fine in google maps and any other maps apps has i just spent two weeks uwing it constantly so can definitely confirm it works great.

    I will be resuming working on the kernel cleanup sometine next week, and maybe i will do a build with august patches or maybe not and just wait for september,

    The rom is just perfect like it is and there will most probebly no more "improvements" rom side, just kernel side in the foreseable future. Which i hope will fix the random reboot issue i sometimes experience.
    5
    By the way, this release will be the LAST one with test-keys. From the next one, i will start signing with release keys, so a clean flash will be mandatory AFTER today's build. But this will help with some apps that check for test keys and refuse to work.
    4
    "Are we there yet???"
    Donkey (c) 😁

    Hi! First of all, thanks for that and for bringing (almost) official LOS to X3 NFC, all of us!

    Not asking for ETA, but do you have a rough idea of when next update will be available? Within a few days or some weeks, for instance.
    I'm (and probably others) just about to flash LOS for the first time on my brand new X3 and as next release will need a clean install I'd like to know if better to hold a bit on apps install or not, to avoid lots of apps data backup/restore.

    I've read the whole thread and I saw you were on vacation recently....so welcome back and have your time. But if you can give us your feelings would be nice! Thanks again!
    Look on the download server, under test folder, the 10/09 build called "signed" , flash that one... Already signed with release keys. Its my daily driver so perfectly stable.
  • 56
    Lineage_OS_Logo.png



    LineageOS 17.1 official trees / unofficial builds for surya and karna.

    LineageOS 18.1 unOfficial, official request in progress, for surya and karna.

    We are official!


    But "official" builds cannot be built yet until we move to fully OSS vendor partition. Be patient now, it will happen thank to the amazing underlying Ghostrider work, but i need to adapt it to LOS trees which are different.

    Work on the 18.1 with full vendor partition, that will be officially built is in progress.


    /*
    * Your warranty is now void.
    *
    * I am not responsible for bricked devices, dead SD cards,
    * thermonuclear war, or you getting fired because the alarm app failed. Please
    * do some research if you have any concerns about features included in this ROM
    * before flashing it! YOU are choosing to make these modifications, and if
    * you point the finger at me for messing up your device, I will laugh at you.
    */

    What's working:
    • WiFi
    • VoLTE
    • VoWIFI
    • FM Radio
    • RIL (telephone, SIM, 2G/3G/4G/LTE/+/blah...)
    • Tethering
    • Bluetooth + AAC
    • Tethering + bluetooth working
    • Safety net passed
    • SELinux Enforcing in Trust
    • DT2W
    • WiFi Display fully working
    • Infrared (IR)
    • NFC (Surya only)

    Known issues:
    • Honestly at this time, nothing?

    Download:

    There is also a MIcroG build if you don't like Google Apps!
    Note: on the same download links you can find also MicroG builds for both 17.1 and 18.1!

    There is also, for help and support, the:
    Instructions:
    • NOTE: it is MANDATORY to flash latest stable firmware for your region!
    • For 17.1: flash VENDOR + FIRMWARE from Android 10 (Q)
    • For 18.1: flash FIRMWARE from Android 11 (R) - no vendor required.
    • Download this build and Magisk (optionally) and gapps (optionally).
    • Put the zip on your MicroSD (suggested) or connect via USB to PC.
    • Boot to recovery (latest TWRP only is suggested! OrangeFox has issues).
    • Wipe Dalvik, Cache and format data. This IS NOT OPTIONAL!
    • Reboot recovery after wipe and format.
    • Flash this ROM zip...
    • ... (suggested) reboot system and do the initial setup ...
    • ... If you want Magisk and/or gapps: boot back to recovery,
    • Flash GAPPS and/or Magisk.
    • Reboot and enjoy!
    If you have any issues flashing, like persistent GApps or booting issues, try to cleanup the phone with the following procedure:
    • Download a full MIUI rom recovery package from XiaomiFirmwareUpdater
    • ... (make sure you download the full rom package for RECOVERY, it is about 2.4Gb!) ...
    • From recovery, flash the zip file. This will cleanup all the partitions.
    • Now flash again this ROM.
    This problem is related to the fact that TWRP and OrangeFox both don't support dynamic partitions properly yet.

    Tested with Magisk 23.0, newer version should work.
    Suggested GAPPS for LineageOS 17.1: OpenGapps nano or pico.
    Suggested GAPPS for LineageOS 18.1: Mind The Gaps (
    here)


    XDA DevDB Information
    LineageOS 17.1 & 18.1, ROM for the Xiaomi Poco X3 NFC

    Contributors

    Build by @gardiol
    Thanks to @Maharajah99, @janhammer504 , and quite so many others.

    Device tree sources: device tree
    Kernel sources: kernel
    Vendor sources: vendor

    Additional notes

    SafetyNet does not pass by default, you need to follow the steps on post n.3 below. This is due to Google issues and LOS rules.

    ROM OS Version: Android 10 & 11
    ROM Kernel: Linux 4.x

    Version Information
    Status:
    Testing, unofficial.

    Created 2020-12-13
    Last Updated 2021-09-98
    18
    I have some news. I am working on Lineage-18.1 and so far i am having some good progress.
    I managed to boot it, it's still unstable and a lot work is required, but it's steady.

    It is OSS based, so this will be official no doubt this time.
    16
    Changelog

    19 September 2021 (17.1)

    September security patches.

    06 September 2021 (18.1)
    New debloated kernel
    Fixed screen recorder rate limiter
    Fixed DriveDroid (and more usb gadget stuff)
    Added proximy check to prevent screen wakeup option
    August patches
    Fixed minor denials (battery improvement)

    31 July 2021 (18.1)
    Fixed lots of denials
    Greatly improved battery life
    more minor fixes.

    20 July 2021 (both 17.1 and 18.1)
    July patches
    For 18.1: mi_thermald added back
    For 18.1: dynamic 30-120Hz fixed

    13 July 2021 (18.1)
    All new trees!
    FORMAT data is MANDATORY

    19 June 2021 (17.1)
    Upstream sync
    June patches

    17 June 2021 (18.1)
    fixed haptic issues
    Fixed Netflix error 5.10
    Fixed idle drain
    Fixed NFC denial
    Upstream sync

    07 June 2021 (18.1)
    Fix aptX
    Fix boot from MIUI to LOS not working

    07 June 2021 (18.1)
    Fix netflix
    Fic video recording length
    Fix GBoard rounded corners

    05 June 2021 (18.1)
    First release of 18.1 build!

    11 May 2021 (17.1)
    LOS upstream sync with May patches

    18 April 2021
    LOS upstream sync with April patches
    Dpmd crash resolved
    ️LOS call recorder enabled
    ️Removed all permissive domains

    09 April 2021
    Upstream sources sync

    28/29 March 2021
    Fixed video recording bug
    Fixed audio crackling (finally!)
    Removed all "parts", added doze and refresh rate specific settings
    Getting trees ready for official
    (note: UnofficlalBuild and Experimental builds are from 28 March, MicroG from 29th)

    13 March 2021
    Two builds are available...
    Unofficial, the same old build, but with March security patches.
    Experimental, featuring a full vendor partition, but still SELinux permissive, but a ton of improvements including fixed video recording length, 4K video recording and playback and more minor issues.
    Pick your choice!

    27 February 2021
    Really fixed yellow tint once for all
    Enabled VoIP transition
    Updated proprietary blobs
    Haptic improvements
    Various minor optimizations
    LOS upstream sync

    19 February 2021
    Improved Wifi
    Improved audio
    LOS upstream sync

    06 February 2021
    Improved brightness levels
    Finished reworking tree
    February LOS upstream sync
    Latest security patches

    24 Jannuray 2021
    Fixed "Fast Charging" string, except for original charger!!! (Fast charging IS working, just does not says it's fast in lockscreen).
    Added 30Hz and 50Hz display frequency in display options
    Cleaned up audio routes


    19 Jannuary 2021
    Reverted a prop which was interferring with whatsapp videos.

    18 Jannuary 2021
    Fixed fingerprints
    Rewritten init_surya.cpp
    Removed more useless stuff
    Activated correctly second SIM card
    Added a few translations
    Improved brighness
    Improved Wifi networks
    Fixed tethering+bluetooth

    05 Jannuary 2021
    WiFi Display fixed, finally!
    Resolved bug with speakerphone and reboot

    05 Jannuary 2021
    WiFi Display not fixed
    Product partition enlarged
    Device Tree reworked for proper contribution recognition
    AOD disabled. Once fixed will be available again.

    01 Jannuary 2021
    DT2W Fixed.

    29 December 2020
    New device tree is up.
    Brightness works again
    DT2W not working
    AOD not working
    FM Radio fixed (again)

    29 December 2020
    Final fix for low volume recording.
    WiFI Display still not fixed (please send logs!!!)
    Device tree cleaned up a lot
    add Higher Aspect Ratio
    statusbar : avoid display parameters on Notch
    SELinux is showing Enforcing in Trust

    28 December 2020
    Added audio fixes for low volume.
    Added full WiFi Display support (to be confirmed)

    26 December 2020
    New parittion size.
    Bluetooth now reporting working properly.

    24 December 2020
    Tentative SELinux enforcing.

    22 December 2020
    Added FM radio support, FM radio working.
    SELinux still permissive

    20 December 2020
    Reworked vendor mixing camera blobs from A10 branch and telephony from A11 branch.
    Camera is reported working.
    SIM card is reported working.
    VoLTE and WoWiFi reported working.
    FM Radio NOT working.

    19 December 2020
    New beta build for camera fix.
    Let me know if it works!

    18 December 2020
    SIM card works
    missing camera
    selinux permissive, will try to fix in later build
    16
    I am working at cleaning the tree to meet official requirements. More news will be posted in the net days.
    14
    I have been contacted back by LineageOS team regarding the "official" status. There are few things that needs to be fixed before it will happen, and i am working on it. It will take time but i plan to follow trough to official as planned.