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

[ROM][11] LineageOS OFFICIAL [SURYA]KARNA]

Search This thread
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.

"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!
 

gardiol

Senior Member
Feb 23, 2011
798
1,034
San Carlo Canavese
photos.gardiol.org
"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.
 

treebaard

Senior Member
Jan 19, 2015
121
28
Thanks for your work, Gardiol. :)

question: I'm currently on sawamen's build, but if I backup /data and format, can I just restore that backup and expect things to work? Or are there risks in that?
 

gardiol

Senior Member
Feb 23, 2011
798
1,034
San Carlo Canavese
photos.gardiol.org
Thanks for your work, Gardiol. :)

question: I'm currently on sawamen's build, but if I backup /data and format, can I just restore that backup and expect things to work? Or are there risks in that?
As long as you format data....
I would not just backup data partition but use some backup tool like migrate or titanium.

Backing up the partition will for sure lead to issues down the road.
 

jjcdennis

Senior Member
Jun 20, 2015
485
99
Toronto
If you flash the latest recovery from https://xiaomifirmwareupdater.com/miui/surya/ it cleans up the partitions (and updates firmware) so you may avoid having issues later. Then you follow the procedure.
I'm going to make this change later on and just want to make sure. 1st step open twrp and flash the miui rom (2.5 or so gb). Do I boot into the system and run the setup of miui, or just clear dalvik and then follow the developer's procedure on page 1?
Thanks for your patience.
 

paradøx

Senior Member
Apr 16, 2021
70
61
I'm going to make this change later on and just want to make sure. 1st step open twrp and flash the miui rom (2.5 or so gb). Do I boot into the system and run the setup of miui, or just clear dalvik and then follow the developer's procedure on page 1?
Flash the miui rom (it already includes firmware), but don't do any setup, just reboot to recovery, wipe Dalvik and Cache, then choose format Data (where you have to enter "yes"), reboot to recovery and do the rest (flash LOS, do the initial setup, then flash gapps, magisk...)
 
  • Like
Reactions: jjcdennis

jjcdennis

Senior Member
Jun 20, 2015
485
99
Toronto
Flash the miui rom (it already includes firmware), but don't do any setup, just reboot to recovery, wipe Dalvik and Cache, then choose format Data (where you have to enter "yes"), reboot to recovery and do the rest (flash LOS, do the initial setup, then flash gapps, magisk...)
OK, got an error flashing "updater process ended with error: 1 Error installing zip file "/external_sd/0-roms/miui_Suryaglobal_v12.0.1.0_RJGMIXM_95126259ea_11.0.zip
Then updating partition details... Done
I'm updating from Pixel Experience. Roms are on the external sd card. Miui fails but Phone boots back into PE no problem. I am using a surya global phone.
twrp 3.5.2_10-7-surya
 
Last edited:

treebaard

Senior Member
Jan 19, 2015
121
28
What do I need to reinstall if caller ID s broken? Firmware 12.5.2 eeu doesn't seem to do it. (I have had this issue prior to switching to this build, so I assume it is due to firmware, vendor or something else?)
 

gardiol

Senior Member
Feb 23, 2011
798
1,034
San Carlo Canavese
photos.gardiol.org
OK, got an error flashing "updater process ended with error: 1 Error installing zip file "/external_sd/0-roms/miui_Suryaglobal_v12.0.1.0_RJGMIXM_95126259ea_11.0.zip
Then updating partition details... Done
I'm updating from Pixel Experience. Roms are on the external sd card. Miui fails but Phone boots back into PE no problem. I am using a surya global phone.
twrp 3.5.2_10-7-surya
Pyxel experience had a bug where partition table got corrupted. Just flash a miui via fastboot.
 
  • Like
Reactions: jjcdennis

jjcdennis

Senior Member
Jun 20, 2015
485
99
Toronto
Pyxel experience had a bug where partition table got corrupted. Just flash a miui via fastboot.
New process to me. Sorry for the newbie questions. Is there somewhere where fastboot is explained?
Phone to bootloader plugged into computer (Win 10), open powershell (shift-R) - fastboot flash (file location of img) and when done fastboot reboot?
Noticed in abd that the device is unauthorized.
 
Last edited:

paradøx

Senior Member
Apr 16, 2021
70
61
In this case would I flash the full rom (fastboot) version of the firmware - 4.6gb 06/02/2021 and not reboot to system? Then boot into recovery and follow page 1 instructions?
When you flash the full rom you are updating the firmware and fixing the partition (but you don't need the rom itself, since you're going to replace it with LOS anyway). After that you just have to boot to recovery, and follow gardiol's instructions (wipe, etc.)
 

zbe

New member
Jan 8, 2021
4
4
I've been out of the loop lately. What happened to 17.1? Will it become official, or is this it and I should switch to 18.1 for further updates?
 

paradøx

Senior Member
Apr 16, 2021
70
61
I've been out of the loop lately. What happened to 17.1? Will it become official, or is this it and I should switch to 18.1 for further updates?
There won't be an official 17.1, with Android 12 around the corner @gardiol decided not to waste his time with A10 and moved efforts to A11 / 18.1 (soon to be official, review process is going well.)
 

Top Liked Posts

  • 3
    The only Magisk Modules I use are the ones in your post about SafetyNet & MIUI Core for ANXCamera.

    Gapps I use OpenGApps Pico

    Actually, the ANX camer and MIUI core modules are NOT recomended and NOT supported on LOS. You should remove those and see if any freeze occur. They replace so many system libraries that it is impossible to know what is going on...

    Unfortunately, ANX is not recomended. Use GCAM with custom XML (i suggest the XML and GCAM i posted earlier, on telegram group there are more apks and xmls, but i don't use them personally so i cnanot upload them here).

    Maybe i will make a thread gcam related for LOS.
    1

    As usual, amazing work. Works just fine.

    /joke mode on
    *** ven offizial twrp? ***
    /joke mode off
    1
    Hi, it seems signal 4g+ doesn't appear only 4g signal ?

    Correct. That icon is not in los. Goes to 4g+ anyway
  • 18
    Official build is again underway and will be ready in a few days.
    Everything has been approved this time we are just waiting for hudson & wiki merge to be approved.

    I think there is good hope that the first official build will be next week.
    11
    ** WARNING LONG POST **

    I spent some time to review the patch posted here

    There are two replaced executables:
    - charger
    - init

    The charger binary is replaced for the offline charging animation, i believe. But i didn't diffed with official charger bin as author do not disclose which MIUI it comes from. So it might be original or it might be modified i don't know.

    The init replacement is more critical, probably related to the safetynet fix, but i would be personally concerned to run such binary on my phone unless full source to it is released by author.

    All the main props files have been modified and a few things come to my attention.

    The build is still abused as "official lineageOS build" by buildkite and such, which it is not at this point, so this would be a concern, even if more an ethical one, since people could report issues as "official" build while it's not an official build anymore.

    Also, quite a few graphical props are changed / enabled when they have been not enabled on purpose on official build for stability concerns. So YMMV, but you could get crashes.

    All build fingerprints have been changed with respect to official, which is probably related to the safetynet fix. This might lead to problems when Google will change things again, and users of this mod will probably have troubles using magisk or any other safetynet fix unless clean flash again. This patch does also change your crypto keys and make your data lost. But this has been advertised by the author, so you know.

    There are a lot of modified init rc files, going trough them all is difficult here, but a few things come to my attention.
    In a few files security permissions have been relaxed. Some additional permissions have been granted to camera, audio and other subsystems, the reason for this should be explained.
    Also quite some /sys and /dev nodes permissions have been changed to make them less secure.

    Systemwide stats collection and tuning have been altered in various places, again i see no direct reason for this.

    It is my overall impression that the author took some init file from a different device and/or BSP and kind of copied it on the official ones. Not clear to what purpose.

    There are massive changes to the mount schema and procedures, probably linked to the removal of "scoped storage", which is there for a reason so YMMV to accepting this change, specially if it is so widespread in the system.

    There are lots of small tuning to CPU and governor, there is messing up with the nice levels and file descriptors, something which should not taken lightly and probably would need deep testing on some benchmark to prove that they actually work beside the placebo effect.

    Moving on.

    The media profiles, audio codecs and settings, have been modified with at least a couple of changes that are known for having caused issues with various apps in the past.

    This is more or less the most of it. I have spent way too much time on this analysis at this point, but i did it as this might impact directly the support i give to the community on official LineageOS 18.1 for surya if anybody flashes it and then report issues.

    I can see some improvements which would be good for official build too like some cleanup of probably useless init stuff (leftovers from davinci or generic sm6150) and such.

    Unfortunately, providing one mega-patch like this with no underlying github repository to track changes and meaningful commit history to justify each one of them make this entire work useless, which is a pity. I strongly suggest the author to read up how to contribute to the android development community so that the good in his work can actually be of benefit for everybody, as he benefitted from the work of many like we all have.

    I have also seen various lines that are actually authorship by somebody else, i suggest the author to spend some time identifying them and, after creating a repository for the patch, repo-pick those patches with the correct metadata. This is a time consuming activity, but a necessary one, as you all can understand, so that a real community can function. Just to be clear: it's the duty of who publish stuff to ensure it does not infringe others authorship's, not the other way around.

    I suggest the author (i mean the real person behind his many accounts) to understand how the open source android development community works so that the good in his work can be actually benefit the community. There is good in his doing, it's only the ways that make it difficult to be actually used.
    8
    Official out & works!!! Bravo @gardiol

    9
    Does anybody know why brigudav deleted his TWRP releases at androidfilehost?
    5
    From official LOS subreddit:

    "Good news, the Xiaomi POCO X3 NFC (surya) is supported again as you can see in the wiki.

    The LineageOS 18.1 build & LineageOS recovery are available for download: https://download.lineageos.org/surya

    Supported models
    * M2007J20CG * M2007J20CI

    Thanks to the volunteer maintainers Shimitar (@gardiol on XDA) and Subhajeetmuhuri (@kenny3fcb on XDA & Subhajeet Muhuri on GitHub). ↑ (ツ)" [bold by me]

    Thanks to those 2 developers and all others that are helping this great achievement for our device and LOS/ROM community in general!!!
    LOS official open opportunities for us to have not only the good LOS but also new other ROMs (like /e/, Mokee and current unofficial others).

    Now I think we deserve official TWRP and/or OrangeFox recovery(ies). 😁
    Serious: it would be really nice if current recoveries developers join their efforts and also achieve that even higher level for Poco X3 NFC.

    A fully working official recovery(ies) is(are) good to everyone: once done will be built by official team(s), transparent and trusted as source code will be easily available (and could be forked for other devices!), and users have all features easily downloading from official servers.

    Hey recovery developers and maintainers in general, how about that!!???
  • 59
    Lineage_OS_Logo.png



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

    LineageOS 18.1 Official.

    We are official!


    17.1 will never be official.
    18.1 is official.


    /*
    * 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! If you care for official microg builds, check here they will be ready when they will be ready.

    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:
    Official and 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.
    18
    Official build is again underway and will be ready in a few days.
    Everything has been approved this time we are just waiting for hudson & wiki merge to be approved.

    I think there is good hope that the first official build will be next week.
    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.