[ROM][10/12] LineageOS OFFICIAL [SURYA]KARNA]

Search This thread

youvedone

Senior Member
Flashed the latest, non-experimental build earlier today (Android Auto did not work correctly on MIUI) and found a strange sound issue: have a 2 months old baby and downloaded some lullaby apps for him. Basically none of them is able to play back music correctly, they just skip from song to song randomly, without playing back music. These apps work without problems on MIUI. On the other hand, "normal" music apps (Spotify or Play Music) work without issues.
I use Baby Sleep and on lineage os you're able to prohibit network access to the very disturbing full screen advertisements... and its working fine.
 

gardiol

Senior Member
Feb 23, 2011
917
1,168
San Carlo Canavese
photos.gardiol.org
Flashed the latest, non-experimental build earlier today (Android Auto did not work correctly on MIUI) and found a strange sound issue: have a 2 months old baby and downloaded some lullaby apps for him. Basically none of them is able to play back music correctly, they just skip from song to song randomly, without playing back music. These apps work without problems on MIUI. On the other hand, "normal" music apps (Spotify or Play Music) work without issues.

Which apps? So i can try?

Curious issue Indeed !
 

obermotz

Senior Member
Nov 2, 2010
92
21
I use Baby Sleep and on lineage os you're able to prohibit network access to the very disturbing full screen advertisements... and its working fine.

Acting upon a hunch I disabled AudioFX (had some issues with it back in the day when I flashed something new every day :) ) from the adb shell and now the apps seem to work fine.

Edit: just seen the 2nd comment from @gardiol. I have Lullabies and Lullaboo on my phone.
 

obermotz

Senior Member
Nov 2, 2010
92
21
Flashed the latest, non-experimental build earlier today (Android Auto did not work correctly on MIUI) and found a strange sound issue: have a 2 months old baby and downloaded some lullaby apps for him. Basically none of them is able to play back music correctly, they just skip from song to song randomly, without playing back music. These apps work without problems on MIUI. On the other hand, "normal" music apps (Spotify or Play Music) work without issues.
Ehh, should not have been that happy about solving the audio issues - the same problem surfaced again, no audio in my lullaby apps :) AudioFX is still disabled.
 

theboolean

New member
Apr 14, 2021
1
0
Hello guys,
first of all I want to thank the developer for taking LineageOS to POCO X3. Thank you thank you thank you!

I want to share a bug that I found, just to check if it's happening also to others: when I'm in a Google Meet meeting, if I choose any of the audio sources, I can hear the other partecipants, but they cannot hear me. If I select "Disable audio" (I mean from the audio sources, not mute mic), they can hear me but I cannot hear them.

Tested on 20210328 build on a POCO X3 Global
 

Blechpirat

Member
Jun 26, 2018
33
2
Hamburg
Xiaomi Poco X3 NFC
  1. Install the first module (this: from Magisk Garage,
This link is broken. I was unable to find the post you mentioned with the forum search (it probably was https://xdaforums.com/t/lineageos-17-1-magisk-garage.4215141/#post-84283171 but now has losts the attachments) and I would rather not use telegram.

EDIT: Maybe this would work: https://github.com/kdrag0n/safetynet-fix/releases

(BTW: Graphene and CalyxOS use Element (with a bridge to their Telegram group). Maybe that's an option for you? Its a lot more in tune with the FOSS spirit...)
 
Last edited:

slim8shady9

Member
Jul 3, 2012
7
4
While you're waiting for officialdom with Lineage, maybe you could submit your microG builds to microg.org (specifically to lineage.microg.org)...

Just an idea -- I know there's a lot on your plate and wouldn't want to make it heavier in any way.
They automatically build a los with microG for every officially los supported device, as they state in their home page:
We already build LineageOS for microG for every device supported by LineageOS.
For obvious reasons they will not publish any unofficial build, but let everyone do it by themself.
Anyone can follow my guide for this device, based on their readme.
 
  • Like
Reactions: pnin

gardiol

Senior Member
Feb 23, 2011
917
1,168
San Carlo Canavese
photos.gardiol.org
New build uploaded. See First Post.

Please note that i have discontinued the EXPERIMENTAL builds, just flash the new unofficial over your experimental (clean flash is a must!).

If flashing from previous unofficial, dirty flash should work.

Always make a backup before!

I hope this will be the LAST unofficial build and in a few weeks we will have OFFICIAL.
 

gardiol

Senior Member
Feb 23, 2011
917
1,168
San Carlo Canavese
photos.gardiol.org
This link is broken. I was unable to find the post you mentioned with the forum search (it probably was https://xdaforums.com/t/lineageos-17-1-magisk-garage.4215141/#post-84283171 but now has losts the attachments) and I would rather not use telegram.

EDIT: Maybe this would work: https://github.com/kdrag0n/safetynet-fix/releases

(BTW: Graphene and CalyxOS use Element (with a bridge to their Telegram group). Maybe that's an option for you? Its a lot more in tune with the FOSS spirit...)

Thank you, updated.
 
  • Like
Reactions: Blechpirat

Blechpirat

Member
Jun 26, 2018
33
2
Hamburg
Xiaomi Poco X3 NFC
New build uploaded. See First Post.

Please note that i have discontinued the EXPERIMENTAL builds, just flash the new unofficial over your experimental (clean flash is a must!).

If flashing from previous unofficial, dirty flash should work.

Always make a backup before!

I hope this will be the LAST unofficial build and in a few weeks we will have OFFICIAL.
Great news. Even if I have just switched to your LineageOS yesterday (and now you post an update), going official will be SO great!
 

Flixnet

Member
May 14, 2020
15
2
I appreciate you making the effort to go "official", gardiol.
But may I ask why you are still putting work into LineageOS 17.1 instead of going straight to 18.1?

The difference is not big (for me), but in the long run it might make more sense, right?
 

Blechpirat

Member
Jun 26, 2018
33
2
Hamburg
Xiaomi Poco X3 NFC
I'm using Gardiols Microg-Build and everything works fine... except Signal. On my old phone I installed Signal before I installed microg - and that works, because Signal learns that there is no Google Push service and starts pulling its stuff. Installing microg later does not change that.

Having used the microg build, Signal does not use its own code to pull, but crashes all the time.

Do you guys think it could work to clean flash the non-microg version, install signal and then dirty flash the micro-g version?
 

pnin

Senior Member
I ask why you are still putting work into LineageOS 17.1 instead of going straight to 18.1?

The difference is not big (for me), but in the long run it might make more sense, right?

I for one disagree -- further Android versions are becoming more and more problematic for phone modders, with Google (and Xiaomi, for that matter) doubling down on locking users out of managing their own devices. And for what? As you said, "the difference is not big"...

@Blechpirat: just an idea, but maybe you can use the work profile for Signal if it's available...
 
  • Like
Reactions: smolny22
I'm using Gardiols Microg-Build and everything works fine... except Signal. On my old phone I installed Signal before I installed microg - and that works, because Signal learns that there is no Google Push service and starts pulling its stuff. Installing microg later does not change that.

Having used the microg build, Signal does not use its own code to pull, but crashes all the time.

Do you guys think it could work to clean flash the non-microg version, install signal and then dirty flash the micro-g version?
I use Signal with the microG build without problems. Try installing the APK directly from signal (will auto update) or enable "Cloud messaging" in microG with DroidGuard helper installed.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 2
    Anyone had the same behaviour?

    No. Lineage 20 is super stable and perfectly reliable for me.

    But: If you have just started playing with LineageOS it might be wise to wait for a few days. The Poco X3 NFC has been officially promoted to LineageOS 21 recently (Android 14) so builds should be available in the next few days.

    Then you could start with a clean flash of LOS 21. Oh, and make sure your firmware is up to date.
    2
    Do you know when Los 21 will be released for Poco X3 NFC?
    Thanks a lot
    If it is your main device I'd prefer to flash newest LOS 20 (15 days ago) and stay on it for 1 or 2 months at least, till when LOS 21 seems to be stable for all and then update. Last week 21 release for instance had to be reverted cause of bug.
    1
    It seems that crDroid is currently the only option if we want Android 14.
    Finally I bought a Poco F5 for 260€ last week. It has much more comunity working on it. Today I'll be able to unlock bootloader and I'll try with Paranoid. I'll still keep on using my x3 as a second phone.
    1
    I was on microg version unlike yours with gapps, but had similar issue (got boot loop after upgrading).
    I wiped the data off, and re-flashed, but that didn't solve the issue either.
    Since I could not flash lineage anymore, I ended up with flashing different ROM (for my case, E / OS).
    I was so pissed that I lost my data and wasted my time for several hours, but at least now I got my device finally working (though I'm back on android 13 with E / OS).
    I was impatient too, anyway I'm back on Lineage 20 (A13), and will wait a few weeks (months) at least..
    Poco X3 is my main mobile, so I can't experiment so much with it..

    I gave the LOS 21 a lot of chances, wiped all partitions,... but unfortunatelly nothing more - just boot loops.
    Maybe it is because my fw is European, and admins of Poco X3's LOS are from different part of World...
    1
    I upgraded to LOS21, following the guide, so wipe and so on.
    It works perfectly, no more freezes!

    The only small bug comparing LOS21 vs LOS 20, not only on Poco X3 NFc but I saw this in another device as well:

    LOS21 : If you deselect "Use vibration & haptics" when you unlock the phone by fingerprint, it still vibrates.
    LOS20 : If you deselect "Use vibration & haptics" when you unlock the phone by fingerprint, it doesn't vibrate anymore.


    ***EDIT
    Workaround
    I solved forcing with adb shell
    cmd appops set com.android.systemui VIBRATE ignore
  • 68
    Lineage_OS_Logo.png


    LineageOS 19.1 Official and currently built by LineageOS official infrastructure.


    17.1 has never been official (and it's upstream dead since 31st December 2021),
    18.1 is official, discontinued builds,
    19.1 is official, discontinued builds,
    20.0 is official and built weekly.

    /*
    * 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:
    • Everything

    Known issues:
    • Honestly at this time, nothing?
    • Some people report SystemUI freezes, in this case setting minimum refresh rate to 60Hz and peak refresh rate to 90Hz sohuld solve the issue.

    Camera Notes
    ANX camera is not recomended and will most probably NOT work.
    To get a fully working camera try one of the gcams here.
    Do not forget to copy&load the associated xml file!

    Official LOS uses oss camera service, so xml written for other custom roms might not work.
    The gcams at the above link have modified xmls for LOS.


    Download:

    There is also a MIcroG build if you don't like Google Apps!
    If you care for official microg builds, check here they will be ready when they will be ready, those builds are not done by me nor supported by me, do not ask me about it.

    There is also, for help and support, the:
    Instructions:
    • Make sure to flash at the firmware 14.0.5.0 (anything newer will work) from XiaomiFirmwareUpdater firmware page
    • 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...
    • ... flash gapps zip ...
    • ... If you want Magisk, flash zip ...
    • 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 MIUI page
    • ... (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 25.2, newer version should work, but you MUST follow the SafetyNet fix guide in the next post if you want Play Store certification.

    Suggested GAPPS for LineageOS: Mind The Gaps (here, make sure to download the ones for your android version 10, 11 or 12).



    XDA DevDB Information
    LineageOS 20.0 ROM for the Xiaomi Poco X3 NFC

    Contributors

    Build by @gardiol

    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 13
    ROM Kernel: Linux 4.x

    Version Information
    Status:
    Official and Unofficial.

    Created 2020-12-13
    Last Updated 2023-09-13
    20
    Passing SafetyNet and Google Play Certification

    SafetyNet and Play Store certification

    (guide updated 24 aug 2022, for Magisk 25.2)

    LineageOS, by charter, does not alter any safety ptotection set by Google. In our case, having an unlocked bootloader, safetynet will always fail by Google decision. Now, passing safety net is required for banking apps and even some games. Also, it is required for "play store certification", which will prevent you from even searching for some apps (like Netflix).
    Blame Google for all this.

    --ALL STEPS ARE MANDATORY, NONE CAN BE SKIPPED UNLESS EXPLICITY OPTIONAL--

    Install Magisk

    Download latest stable magisk apk from Magisk website (https://github.com/topjohnwu/Magisk). Rename it as .zip and flash it from recovery. Some recoveries, like TWRP, will flash the apk directly, others will require the rename.
    Boot LOS and install the apk file.

    Hide Magisk apps and Enable Zygisk & blocklist

    Open Magisk App, go to settings and hide the magisk app. Give it a name you will remember.
    After magisk app has been hidden, go back to settings and enable Zygisk (beta).
    Now apply the blocklist and select all the apps you like NOT to detect Magisk. This must include Google Play Services and Google Play Store.

    Install SafetyNet fix module

    kDrag0n developed a fix that can be flashed via Magisk. You must download the module (https://github.com/kdrag0n/safetynet-fix/releases), select at least version 2.2.1, and install it from inside Magisk app.

    Setup Fingerprint

    Download latest Props module for Magisk (https://xdaforums.com/t/module-magi...t-prop-edits-and-more-v6-1-2.3789228/page-274) and install it within Magisk. Reboot your phone.
    Now, after reboot, open a terminal (use "adb shell" from pc, or install termux from play store) and type:
    su (grant root access!)
    props (a text based menu will popup)
    Now select "1" (edit fingerprint), type "f" (pick fingerprint) select "22" (poco) then select any one poco x3 model. Which one really doesn't matter, but make sure to choose the right Android version.
    Confirm and reboot phone.

    Clear caches for Google stuff

    Now, open settings - apps and clear data&cache for Google Play Store and Google Play Services.
    One last reboot!

    Don't want root?

    If you dont want root... Just disable it from within Magisk!

    OPTIONAL Additional stuff

    Magisk from 24.1 removed the built-in modules repository. If you like it back, you can install Fox's Magisk Module Manager app (https://github.com/Fox2Code/FoxMagiskModuleManager).


    LineageOS on SafetyNet (https://www.lineageos.org/Safetynet)
    Kdrag0n on SafetyNet (https://github.com/kdrag0n/safetynet-fix)
    SafetyNetFix Magisk Module (https://github.com/kdrag0n/safetynet-fix/releases)
    Magisk download (https://github.com/topjohnwu/Magisk)
    Props Module for Magisk (https://xdaforums.com/t/module-magi...t-prop-edits-and-more-v6-1-2.3789228/page-274)
    fox's Magisk Module Manager (https://github.com/Fox2Code/FoxMagiskModuleManager)
    19
    Changelog


    LineageOS is official for Surya!
    No more builds are posted here, head to official Lineage OS download page.


    +++ OLDER NON RELEVANT HISTORY FOLLOWS +++

    20 December 2021 (17.1)
    Last 17.1 build ever for Surya
    December security patches

    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
    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.