Development [ROM][DISCONTINUED][13] LineageOS 20.0 for Redmi Note 11 [SPES|SPESN]

Search This thread

helloyello

Senior Member
Feb 11, 2020
113
13
Hi folks,

just bought a new Note 11 NFC and would like to use LOS on it, waiting now for 168 hours to unlock it :)

Got confused by the link in the first posts pointing to a collection of boot loaders, none of which being an "official" LOS boot loader, but TWRP versions, SHRP, Orange Fox ,etc.:
Don't know which one to use and I recall soft bricking a Note 8 some time ago with TWRP - I had to use the official LOS boot loader first and only after writing LOS I was able to use TWRP. Apparently TWRP didn't know how to clean & handle the stock ROM partitions on that Note 8 when writing LOS on it.

Basically I only need some backups from time to time and maybe installing some zip images from the bootloader . The simplest working TWRP would suffice for the long run, after installing LOS .

Still don't know with what to start, fearing I'll soft brick the phone - for which I couldn't even find a matching Stock ROM yet .. it's MIUI 13.0.3 - EU ... so I could repair it (flash Stock back).

Any help appreciated on the first boot loader to use.
 

mspL4

Senior Member
Aug 21, 2012
65
6
Hi folks,

just bought a new Note 11 NFC and would like to use LOS on it, waiting now for 168 hours to unlock it :)

Got confused by the link in the first posts pointing to a collection of boot loaders, none of which being an "official" LOS boot loader, but TWRP versions, SHRP, Orange Fox ,etc.:
Don't know which one to use and I recall soft bricking a Note 8 some time ago with TWRP - I had to use the official LOS boot loader first and only after writing LOS I was able to use TWRP. Apparently TWRP didn't know how to clean & handle the stock ROM partitions on that Note 8 when writing LOS on it.

Basically I only need some backups from time to time and maybe installing some zip images from the bootloader . The simplest working TWRP would suffice for the long run, after installing LOS .

Still don't know with what to start, fearing I'll soft brick the phone - for which I couldn't even find a matching Stock ROM yet .. it's MIUI 13.0.3 - EU ... so I could repair it (flash Stock back).

Any help appreciated on the first boot loader to use.
I flashed TWRP via adb & booted into TWRP recovery via adb then:

Format data > Reboot recovery > Install ROM > Reboot recovery > Install Gapps > Reflash TWRP (if you needed) > Restart to system

In terms of TWRP version, twrp_3.6.1-spes, twrp-3.6.2-12.1-21.06.22 or higher should be fine. Anything above 3.6.0 I think is OK. Jabiyeff & Dblenk9 do 3.7* versions which should be OK too.

This link should also help: https://forum.xda-developers.com/t/...p-3-7-0-for-redmi-note-11-spes-spesn.4507819/
 

helloyello

Senior Member
Feb 11, 2020
113
13
I flashed TWRP via adb & booted into TWRP recovery via adb then:

Format data > Reboot recovery > Install ROM > Reboot recovery > Install Gapps > Reflash TWRP (if you needed) > Restart to system

In terms of TWRP version, twrp_3.6.1-spes, twrp-3.6.2-12.1-21.06.22 or higher should be fine. Anything above 3.6.0 I think is OK. Jabiyeff & Dblenk9 do 3.7* versions which should be OK too.

This link should also help: https://forum.xda-developers.com/t/...p-3-7-0-for-redmi-note-11-spes-spesn.4507819/
Thanks for the pointers. I'll use one of the TWRP versions you mentioned.
Meanwhile I was able to find the full (fastboot) 6GB flash V13.0.3.0.SGKEUXM for my phone - just in case I'll brick it :)
 

helloyello

Senior Member
Feb 11, 2020
113
13
I took the images from the Telegram page:
Which points to: the lineage-20.0-20221119* files on sourceforge.

Didn't know that there are updates - thought the developer abandoned it ...
Are the lineage-20.0-20230211* images OK to use - what was updated/fixed?
 

mspL4

Senior Member
Aug 21, 2012
65
6
I took the images from the Telegram page:
Which points to: the lineage-20.0-20221119* files on sourceforge.

Didn't know that there are updates - thought the developer abandoned it ...
Are the lineage-20.0-20230211* images OK to use - what was updated/fixed?
Not sure about the latest build. I flashed last Nov/Dec so took the previous gapps build, tagged lineage-20.0-20221119 but with a build date of 16112022 when installed.
 

gentano

Senior Member
Feb 26, 2012
94
39
Redmi Note 11

Bareny

Member
Mar 29, 2018
10
5
@gentano
For lineage-20.0-20230322-UNOFFICIAL-spes-gapps.zip from Coduxers telegram channel

New March test build Gapps (new test version 22/3).
• Android QPR 2.
• March security patch.
• Update blobs from SPESGlobal V13.0.8.0-A12 latest, using A11 kernel.
• Fully fix goodix fingerprint issues (long press on power button doesn't work and more issues, now all fixed).
• Allow enable/disable ripple effect on unlock(ripple effect also disabled by default now).
• Tweak brightness overlays device settings.
• Microg and vanilla builds will be on final release.

if you have issues with rebooting recovery(directly after flashing rom), first boot system, than reboot recovery and it will work perfectly tested on TWRP 3.7.0.

Dirty flash is working
Thanks @ichigonovenus for reporting and help testing the goodix fp issues.
 

helloyello

Senior Member
Feb 11, 2020
113
13
@mspL4
I started with the lineage-20.0-20230211* images and I can say all is working well. Meanwhile @Bareny posted the changelog.

There are some really bad issues with the power button / fingerprint sensor that drove me crazy. I was at the point of flashing the stock ROM back and sending the phone to Xiaomi for repair, considering the power button faulty.
It's only now I learned that these are known issues:


... unfortunately I couldn't find the Magisk Module for inspiration - to try a workaround (a scripted fix at boot).

I was also unable to completely disable the fingerprint sensor (which I frankly don't need at all + the design is flawed badly - rubbing the finger on that button will destroy it really fast) by trying to follow these:

The problem is that this version of LOS has the driver apparently builtin in the kernel and I couldn't unload it.

The actual issues described - finger print sensor not activated in settings / no fingerprint registered, just simple PIN security on lock screen:
First, long pressing the power button doesn't always launch the PowerScreen.
Then, activating LongPress For Torch doesn't work properly. At the first long pressing nothing happens and when releasing the button the screen turns on. Only on the second try the screen remains off and the LED is turned on.
Finally, activating Double-Tap to wake the screen (really useful to save the power button from premature failure) also doesn't work properly. Here I spent some time trying to understand the logic.
If I suspend the screen and immediately (first seconds) double-tap it, the screen will wake up.
After a few minutes double-tap doesn't work anymore, but there's a workaround.
If I touch (and keep the finger contact on it) the power button (just touch - no pressing) then the double-tapping works. Also, if I double tap and immediately touch the power button , the screen will awake.
So either by touching the power button I unsuspend the screen touch sensor, or touching the power button (fingerprint sensor) is gating/required internally in the SW logic for the screen to wake up.
A simple fix - maybe disabling the fingerprint sensor would correct these issues.

Then there is the camera sensors (smaller) issue. I don't necessarily need the wide angle camera, the main camera is sufficient and I can take some steps back if I need a "wider angle", but the macro one is really helpful - a pity that it doesn't work. Not sure why it doesn't work - the device drivers should be available, the Pixel Experience image looks to have all camera sensors working.

At last, one glitch that is maybe common with some other phones too - Bluetooth and WiFi 2,4 GHz are not happy together. BT will disconnect the WiFi 2,4 GHz if the latter was already activated. I experienced this issue also on an older Samsung S3 Neo (Qualcomm SoC) with LOS16/17.
 

mspL4

Senior Member
Aug 21, 2012
65
6
@mspL4
I started with the lineage-20.0-20230211* images and I can say all is working well. Meanwhile @Bareny posted the changelog.

There are some really bad issues with the power button / fingerprint sensor that drove me crazy. I was at the point of flashing the stock ROM back and sending the phone to Xiaomi for repair, considering the power button faulty.
It's only now I learned that these are known issues:


... unfortunately I couldn't find the Magisk Module for inspiration - to try a workaround (a scripted fix at boot).

I was also unable to completely disable the fingerprint sensor (which I frankly don't need at all + the design is flawed badly - rubbing the finger on that button will destroy it really fast) by trying to follow these:

The problem is that this version of LOS has the driver apparently builtin in the kernel and I couldn't unload it.

The actual issues described - finger print sensor not activated in settings / no fingerprint registered, just simple PIN security on lock screen:
First, long pressing the power button doesn't always launch the PowerScreen.
Then, activating LongPress For Torch doesn't work properly. At the first long pressing nothing happens and when releasing the button the screen turns on. Only on the second try the screen remains off and the LED is turned on.
Finally, activating Double-Tap to wake the screen (really useful to save the power button from premature failure) also doesn't work properly. Here I spent some time trying to understand the logic.
If I suspend the screen and immediately (first seconds) double-tap it, the screen will wake up.
After a few minutes double-tap doesn't work anymore, but there's a workaround.
If I touch (and keep the finger contact on it) the power button (just touch - no pressing) then the double-tapping works. Also, if I double tap and immediately touch the power button , the screen will awake.
So either by touching the power button I unsuspend the screen touch sensor, or touching the power button (fingerprint sensor) is gating/required internally in the SW logic for the screen to wake up.
A simple fix - maybe disabling the fingerprint sensor would correct these issues.

Then there is the camera sensors (smaller) issue. I don't necessarily need the wide angle camera, the main camera is sufficient and I can take some steps back if I need a "wider angle", but the macro one is really helpful - a pity that it doesn't work. Not sure why it doesn't work - the device drivers should be available, the Pixel Experience image looks to have all camera sensors working.

At last, one glitch that is maybe common with some other phones too - Bluetooth and WiFi 2,4 GHz are not happy together. BT will disconnect the WiFi 2,4 GHz if the latter was already activated. I experienced this issue also on an older Samsung S3 Neo (Qualcomm SoC) with LOS16/17.
Thanks for the feedback. On the 20221119 build I did notice powering screen on/off sometimes requires 2 presses if I do it too quickly the first time but found that if I used the centre of my thumb to press, rather than thumb tip, it seemed happier. Maybe it takes just a fraction of a second longer to fully press rather than tap it. I don't use the fingerprint or d2w. The stock camera was OK but I switched to OpenCamera. I tried a few GCam mods but they crashed when selecting video.

Anyone with a good, working GCam mod?
 

helloyello

Senior Member
Feb 11, 2020
113
13
@mspL4

I've also switched to OpenCamera, mainly because the LOS Camera App wasn't using the flash to focus in darker environments, even if Flash was set on Auto or On.

On an older Xiaomi Note 8 loaded with LOS (official support) OpenCamera is able to cycle trough all 5 camera sensors (1 front and 4 back) if API2 is enabled in the OpenCamera app. Also, on that phone all camera sensors are listed as available in the Device Info HW app (Andrey Efremov).
On this Xiaomi Note 11 with this LOS version I only can see 2 sensors (front and back - main camera) listed in Device Info HW.
 

gentano

Senior Member
Feb 26, 2012
94
39
Redmi Note 11
New update from yesterday, claiming to solve the fingerprint/power buttons problems mentioned above..

Download here: https://sourceforge.net/projects/lineageos-spes/files/Roms/

Changelog:
• Android QPR 2.
• March security patch.
• Update blobs from SPESGlobal V13.0.8.0-A12 latest, using A11 kernel.
• Fully fix goodix fingerprint issues (long press on power button and more issues, now all fixed).
• Allow enable/disable ripple effect on unlock. ripple effect also disabled by default now.
• Tweak device brightness settings.
 
  • Like
Reactions: helloyello

helloyello

Senior Member
Feb 11, 2020
113
13
Just (dirty) flashed lineage-20.0-20230329-UNOFFICIAL-spes.zip and can confirm that the power button pressing is fixed. Long press for Torch works too.

Unfortunately the double-tap screen to wake behaves the same as described in post #51 - I need to touch the power button before, during or after double-tapping the screen, otherwise it won't wake up. Screen will wake up on double-tap without touching the power button only for the first seconds after blocking.

Camera sensors are still not working entirely - just the two of them - front and main back camera. I thought that "Update blobs from SPESGlobal V13.0.8.0-A12" would have fixed that ... :(

Anyways, happy with the Power Button fix. Thanks!
 
Last edited:

helloyello

Senior Member
Feb 11, 2020
113
13
dirty flash yes according to the author in the telegram group.. magisk probably reinstall and gapps is included afaik
I flashed the latest LOS update with TWRP, had to reflash Magisk and also reinstall TWRP all these before rebooting.
reinstalling TWRP is easy - follow:
- While in the TWRP menu, tap the Advanced button
- Now tap on the option "Flash current TWRP"
- "Swipe to confirm" and the TWRP installation process will begin
- Reboot
 
Last edited:
  • Like
Reactions: gentano
I've also switched to OpenCamera, mainly because the LOS Camera App wasn't using the flash to focus in darker environments, even if Flash was set on Auto or On.
Give Graphene Camera a chance, too (mainly 'cause it seems more advanced/updated than OC in andoid camera libs exploiting):
 

helloyello

Senior Member
Feb 11, 2020
113
13
Give Graphene Camera a chance, too (mainly 'cause it seems more advanced/updated than OC in andoid camera libs exploiting):
I'll have a look when I get some extra time. I've used OpenCamera for some time now and got familiar with it, pretty "advanced" I must admit and working fine.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 9
    Lineage


    *** Disclaimer ***
    I am not responsible for any damage you made to your device.
    You have been warned.



    DISCONTINUED!
    No further updates.
    See this post.




    Introduction
    LineageOS, an open-source Android distribution, is available for several devices,
    with more being continuously added thanks to the biggest, yet ever growing, Android open-source community.
    Join us and breathe new life in your device, be it old or new.
    If you don't know LineageOS and would like to read about it before installing it you can take a look at the official Website.

    Download
    This ROM does not come with GAPPS preinstalled! If you want to have a small set of Google Apps including the PlayStore, you have to install them manually.
    LineageOS 20.0 (latest)
    MindTheGapps-13.0 - (mirror) Choose for Android 13.0

    Installation
    Clean flash recommended, especially when comming from Android 11 or 12
    Boot Recovery
    Format Data
    Flash LineageOS
    After installation flash Recovery if you don't want to have the Lineage recovery installed.
    (Optionally): If you want to install any Gapps. Reboot to recovery after installation of LineageOS, DO NOT boot into the system before installing Gapps! You can either flash the Gapps using the .zip file or adb sideload filename.zip
    Follow these steps carefully, especially when you want to have Gapps enabled!
    Have fun!

    Changelog
    20221030:
    Builds are now signed
    Fix video playback
    Fix camera video recording
    Fix screen recording with sound

    20221024:
    Initial build

    Status
    LineageOS 20.0 development has not finished yet and is at constant change. Features may added or removed upon later releases.
    This is an alpha version, it will have bugs.

    What works
    Wifi | RIL | Mobile data | GPS | Camera | Screen recording | NFC
    Bluetooth | Fingerprint reader | Sound | Flashlight
    Mostly everything

    Issues
    Device shown as not certified (PlayStore)
    Display may flicker
    System Updater (You have to check for new builds manually here on XDA for now)

    Credits
    LineageOS
    Google
    Jabiyeff

    Build details
    - Android OS Version: 13.0
    - LineageOS Version: 20.0
    - Security Patch: October 2022
    - Build author/device maintainer: hecaex
    - Device: Xiaomi Redmi Note 11 (spes/spesn)

    Sources
    7
    Hey guys I have some bad news. I will discontinue working on this ROM because I moved on to the OnePlus Nord 2T. I gave this phone to my mom and therefore can't continue to properly support this device anymore.
    That means that there won't be any new updates from my side. Anyone who would like to step in and take over development is free to use the the device tree and vendor source provided. I'm sorry for this inconvenience.
    All the best.
    3
    New build is up! Fixing a lot of things.
    2
    Thanks a bunch hecaex, can't wait to try it next week despite the lack of kernel sources. I appreciate your efforts.
    Thanks I apprecitate that. I'm currently using the rom as my daily driver beside of the obvious issues which I hope to have solved around next week.
    2
    Issues:
    - Banking apps don't work with lineage os
    - Camera app doesnt support ultra wide angle lens

    For those , who also want to use google wallet with nfc and/or banking apps:
    1. Install Magisk
    2. Follow this guide (just use the fingerprint of Redmi Note 10 Pro Global, it works)