[ROM][11.0] LineageOS 18.1 for Redmi Note 9/Redmi 10X 4G[UNOFFICIAL]

Search This thread

Communos

Senior Member
Oct 28, 2019
227
116
Paris
Xiaomi Redmi 5
Google Pixel 3 XL
IMG_20210309_165814_218.jpg

LineageOS is a free, community-built, aftermarket firmware distribution of Android 11, 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. Linked below is a package that has come from another Android project that restore the Google parts. LineageOS does still include various hardware-specific code, which is also slowly being open-sourced anyway.

All the source code for LineageOS is available in the LineageOS Github repo. And if you would like to contribute to LineageOS, please visit out Gerrit Code Review.

Code:
/*

* 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 :

  • Audio
  • Bluetooth
  • Camera
  • EGL
  • GPS
  • RIL (Calls, SMS, Data)
  • Sensors
  • Video Playback
  • Wi-Fi
  • MTP
  • VoLTE
Everything is Working Except following Bugs

Known issues/Bugs :
  • Double Tap to Wake
  • VoWiFi
  • Selinux is permissive(Temporary. Will soon make it enforcing)
  • You tell me the rest:)

Reporting Bugs
DO NOT Report bugs if you're running a custom kernel or you installed any root implementation
Grab a logcat right after the problem has occurred. (Please include at least a few pages of the log, not just the last few lines, unless you know what you're doing.)
If it is a random reboot, grab /sys/fs/pstore/console-ramoops and /sys/fs/pstore/dmesg-ramoops-0. (Do not bother getting a logcat unless you can get it just before the reboot. A logcat after a reboot is useless). Remember to provide as much info as possible. The more info you provide, the more likely that the bug will be solved. Please also do not report known issues. Any bug not reported in the bug report format below may be ignored.


Instructions
  • Have custom recovery installed
  • Download the latest LineageOS build.
  • Wipe Data
  • Flash the ROM
  • After bootlogo shows up, force reboot to avoid bootloop.
Note
For people who wish to use GApps, use MagiskGApps by @Wacko1805 , flashing other GApps(For eg. FlameGApps, OpenGApps) in recovery will lead to bootloop.

Downloads

Download ROM
Download MagiskGApps


Credits

LineageOS Team
@SparXFusion
@whyredFire
@Pulkit Agarwal
@henloboii
@TechyMinati
& All People Who helped me in a way or Other !

Source Code
Build Author: Communos


If you liked my work, press thanks on this thread :) !

Screenshot_20210309-172438_Settings.png






 

ma259

Member
Feb 21, 2014
33
6
Great ROM, nice performance!

What I've notice:
- Volume buttons from headsets not working

Another issue it has, it's something that happens in all LOS ROMs published in this same forum for merlin and its that when you are listening any Whatsapp Voice Note through earphones, bluetooth or loudspeaker and screen turns off or you change main app and move Whatsapp to background, audio starts cracking.
 

Communos

Senior Member
Oct 28, 2019
227
116
Paris
Xiaomi Redmi 5
Google Pixel 3 XL
Great ROM, nice performance!

What I've notice:
- Volume buttons from headsets not working

Another issue it has, it's something that happens in all LOS ROMs published in this same forum for merlin and its that when you are listening any Whatsapp Voice Note through earphones, bluetooth or loudspeaker and screen turns off or you change main app and move Whatsapp to background, audio starts cracking.
Hey, I just tested the whatsapp audio issue, it's working fine for me, just ensure the sensors are not covered, and I tried changing volume from my bluetooth headphones, worked fine too.
I've attached the picture of showing sensor location for you. Is it wired headsets that you talk of?
 

Attachments

  • IMG_20210317_000122_895.jpg
    IMG_20210317_000122_895.jpg
    96 KB · Views: 50

Top Liked Posts

  • There are no posts matching your filters.
  • 2
    Is this compatible with any version? I have the Italy, Germany, France, Spain edition. Do you think it could work?

    I bought mine in Germany (so it's probably the same version), and it worked fine with every ROM I've tried so far - within their respective limitations. Currently running Kraken, though.

    Keep in mind that you will need to downgrade to MIUI 12.0.1 (Indonesia) or 12.0.3 (Global) before you flash, otherwise it won't work. Ask me how I know.

    Also, in case something goes wrong, how do I reset the factory image?

    As long as the bootloader is still working, you can flash the stock firmware back onto the device via fastboot (which obviously has to be installed on your PC). There's a website with all versions. Get the fastboot type, extract it, and run the included script (flash_all.sh on Linux, probably flash_all.bat on Windows). There may also be a GUI way to do it, but I can't help you with that.
    1
    I guess downgrading to 12.0.3 global would be similar to restore in case something goes wrong.

    Basically, yeah.

    But I can't find that version in the link you provided.

    The main site only lists the most recent versions, but there's a link to the "MIUI archive" where you can find the older stuff.

    Also, how did you find this LineageOS image and why did you choose to run Kraken? Were you having any troubles? I never heard of Kraken. What's the difference between Kraken and LineageOS?

    Oh boy. I've been trying so many ROMs that it's hard to keep track of it in my head.

    Kraken has no missing/not working features listed in its description. Also, Communos kindly provided a Kraken build that had the GApps already included, so you don't have to mess with MagiskGApps. And Kraken just was the more recent (and thus hopefully up-to-date) build.

    I tried this LOS 18 back when I had the phone new. I had some issues with it which, in retrospect, were not the fault of the ROM but due my inexperience with newer Androids. Like, when I was boy, we just included SuperSU as an additional ZIP in TWRP's flashing process to get root access and called it a day. Nowadays you have to use Magisk, which requires extracting the boot.img from the ROM first, patching it in the Magisk app on the phone, getting it back onto your PC, and then flashing that patched image in the bootloader. The more complex a process is, the easier it is to make mistakes. Which of course I did. Because - well, look at my username. Also it seems that if you use Here Maps (a navigation app) with Android 11, you can't move the map data to the SD card anymore. Stuff like that.

    For a while, I had SparXFusion's LOS 17 running, because frankly, it can do everything I need, and I was familiar with it from my other phone. But it wasn't getting updates, so I had to upgrade to an Android 11 ROM. That lead me to PixelUIPlus, which I chose because it was tagged as official. I thought that would give me more consistent updates. The original build worked fine, but when I updated to the most recent version, it actually broke everything (no boot, even after flashing other ROMs). I had to do the firmware reset I mentioned earlier, get MIUI to boot once, then I could reinstall TWRP and flash a new (and different) ROM. That was Kraken. It works, but I had it only for a couple of days, so I can't really claim much experience with it.

    At the end of the day, they're all based on AOSP, so the differences aren't really that huge. Try a few, see what you like. It's easy to switch. And they're all better than the atrocity that is MIUI. As I wrote in another thread: People had warned me about MIUI, and I had thought: "C'mon, it can't be that bad!". But it could. And it was.
    1
    Basically, yeah.



    The main site only lists the most recent versions, but there's a link to the "MIUI archive" where you can find the older stuff.



    Oh boy. I've been trying so many ROMs that it's hard to keep track of it in my head.

    Kraken has no missing/not working features listed in its description. Also, Communos kindly provided a Kraken build that had the GApps already included, so you don't have to mess with MagiskGApps. And Kraken just was the more recent (and thus hopefully up-to-date) build.

    I tried this LOS 18 back when I had the phone new. I had some issues with it which, in retrospect, were not the fault of the ROM but due my inexperience with newer Androids. Like, when I was boy, we just included SuperSU as an additional ZIP in TWRP's flashing process to get root access and called it a day. Nowadays you have to use Magisk, which requires extracting the boot.img from the ROM first, patching it in the Magisk app on the phone, getting it back onto your PC, and then flashing that patched image in the bootloader. The more complex a process is, the easier it is to make mistakes. Which of course I did. Because - well, look at my username. Also it seems that if you use Here Maps (a navigation app) with Android 11, you can't move the map data to the SD card anymore. Stuff like that.

    For a while, I had SparXFusion's LOS 17 running, because frankly, it can do everything I need, and I was familiar with it from my other phone. But it wasn't getting updates, so I had to upgrade to an Android 11 ROM. That lead me to PixelUIPlus, which I chose because it was tagged as official. I thought that would give me more consistent updates. The original build worked fine, but when I updated to the most recent version, it actually broke everything (no boot, even after flashing other ROMs). I had to do the firmware reset I mentioned earlier, get MIUI to boot once, then I could reinstall TWRP and flash a new (and different) ROM. That was Kraken. It works, but I had it only for a couple of days, so I can't really claim much experience with it.

    At the end of the day, they're all based on AOSP, so the differences aren't really that huge. Try a few, see what you like. It's easy to switch. And they're all better than the atrocity that is MIUI. As I wrote in another thread: People had warned me about MIUI, and I had thought: "C'mon, it can't be that bad!". But it could. And it was.
    Nice, also for magisk you can just flash the zip like one used to do for SuperSU.
    1
    Hi @MyBrainIsAStrainer and @Communos,

    Thank you for all this information. It's very helpful to me.

    The most annoying thing for me is that you need a Windows machine to use the Xiaomi tools for unlocking the bootloader and flashing a new image. With my old Pixel XL I used to do everything with adb and fastboot from Linux.

    @Communos, so basically, with this LineageOS build, you can't have a non-rooted phone? I can't do that because my bank's app doesn't work on rooted devices.
    You can have a non rooted phone, it's upto user if he/she wishes to root or no,
    1
    Nice, also for magisk you can just flash the zip like one used to do for SuperSU.

    Tried it, didn't work for me, because at that time, there was a new version of Magisk for which no flashable image had been created yet. So I'd flash the old version, launch the app which told me to update, then the new app version would tell me that I'd need to also update my boot image, which it failed to do live from the app itself. And then I ended up having to patch the image offline as described aboved.

    So now I do it that way right from the start to save time.

    The most annoying thing for me is that you need a Windows machine to use the Xiaomi tools for unlocking the bootloader and flashing a new image. With my old Pixel XL I used to do everything with adb and fastboot from Linux.

    Oh, trust me, that's not going to be the most annoying thing. The hoops that Xiaomi makes you jump through make setting up a Windows VM pale in comparison. I don't remember the exact process (because it was so very complicated), but I recall having to link several accounts together, making certain settings, and then waiting for a full week. They made me wait not because it was necessary, but because they could.

    I mean, kudos to Xiaomi for even allowing to unlock the bootloader. It's more than some other manufacturers do. But it could be so. much. easier.

    JFTR: In case you don't have a Windows license for your VM, you can download a trial version of Windows 10 Enterprise from Microsoft (just google it). Perfectly legal. You don't have to activate it (in fact, it can't be activated because it's a trial), but it'll run for 90 days. Should be long enough to unlock a phone, even if it's a Xiaomi.

    so basically, with this LineageOS build, you can't have a non-rooted phone? I can't do that because my bank's app doesn't work on rooted devices.

    If you don't install Magisk, the device won't be rooted. However, part of the reason that Magisk is so complicated in its installation with the patched boot image (as I understand it) is because it employs some clever techniques to hide from the root-detection-algorithms of apps such as these. You can enable these hiding features in the Magisk app.

    So your banking app might not even notice the rooting. It's always a bit of a cat-and-mouse game. The app developers come up with new tricks to detect root, and then Magisk needs to update to hide from those tricks again. But you can give it a try.

    But personally (and this is just me, YMMV), I wouldn't use any smartphone for banking at all. I do my banking with Jameica under Linux and a 20€ tan generator as a second factor. Much more secure.
  • 19
    IMG_20210309_165814_218.jpg

    LineageOS is a free, community-built, aftermarket firmware distribution of Android 11, 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. Linked below is a package that has come from another Android project that restore the Google parts. LineageOS does still include various hardware-specific code, which is also slowly being open-sourced anyway.

    All the source code for LineageOS is available in the LineageOS Github repo. And if you would like to contribute to LineageOS, please visit out Gerrit Code Review.

    Code:
    /*
    
    * 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 :

    • Audio
    • Bluetooth
    • Camera
    • EGL
    • GPS
    • RIL (Calls, SMS, Data)
    • Sensors
    • Video Playback
    • Wi-Fi
    • MTP
    • VoLTE
    Everything is Working Except following Bugs

    Known issues/Bugs :
    • Double Tap to Wake
    • VoWiFi
    • Selinux is permissive(Temporary. Will soon make it enforcing)
    • You tell me the rest:)

    Reporting Bugs
    DO NOT Report bugs if you're running a custom kernel or you installed any root implementation
    Grab a logcat right after the problem has occurred. (Please include at least a few pages of the log, not just the last few lines, unless you know what you're doing.)
    If it is a random reboot, grab /sys/fs/pstore/console-ramoops and /sys/fs/pstore/dmesg-ramoops-0. (Do not bother getting a logcat unless you can get it just before the reboot. A logcat after a reboot is useless). Remember to provide as much info as possible. The more info you provide, the more likely that the bug will be solved. Please also do not report known issues. Any bug not reported in the bug report format below may be ignored.


    Instructions
    • Have custom recovery installed
    • Download the latest LineageOS build.
    • Wipe Data
    • Flash the ROM
    • After bootlogo shows up, force reboot to avoid bootloop.
    Note
    For people who wish to use GApps, use MagiskGApps by @Wacko1805 , flashing other GApps(For eg. FlameGApps, OpenGApps) in recovery will lead to bootloop.

    Downloads

    Download ROM
    Download MagiskGApps


    Credits

    LineageOS Team
    @SparXFusion
    @whyredFire
    @Pulkit Agarwal
    @henloboii
    @TechyMinati
    & All People Who helped me in a way or Other !

    Source Code
    Build Author: Communos


    If you liked my work, press thanks on this thread :) !

    Screenshot_20210309-172438_Settings.png






    3
    I Installed magisk via twrp, and then flashed the gapps in magisk and now it's working fine. But, i really don't want to root my device because of netflix..
    Aha, it's easy to get Netflix working,

    Install Magisk hide props module

    open termux type these

    • su
    • props
    • 1
    • f
    • 7
    • 26
    • y
    • y
    Enable Hide magisk manager in magisk settings, also MagiskHide, After that hide google play services and netflix in magisk hide and wipe data of play store app. After that reboot, Netflix should be working :)

    You might as well get free benefits with the Pixel 5 fingerprint which is installed with the method I mentioned above, Check google one app and see if you get free trial, who knows, good luck ;)
    2

    LineageOS 17.1 any updates​

    I don't think @SparXFusion will be updating his 17.1 build anytime, and no one in the development team for note 9 is interested in making android 10 roms now, so I guess no update.
    2
    Is this compatible with any version? I have the Italy, Germany, France, Spain edition. Do you think it could work?

    I bought mine in Germany (so it's probably the same version), and it worked fine with every ROM I've tried so far - within their respective limitations. Currently running Kraken, though.

    Keep in mind that you will need to downgrade to MIUI 12.0.1 (Indonesia) or 12.0.3 (Global) before you flash, otherwise it won't work. Ask me how I know.

    Also, in case something goes wrong, how do I reset the factory image?

    As long as the bootloader is still working, you can flash the stock firmware back onto the device via fastboot (which obviously has to be installed on your PC). There's a website with all versions. Get the fastboot type, extract it, and run the included script (flash_all.sh on Linux, probably flash_all.bat on Windows). There may also be a GUI way to do it, but I can't help you with that.
    2
    thinking of going official?
    Nah not yet, gotta try enforcing build.
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone