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

Development [ROM][11.0][UNOFFICIAL] Lineage OS 18.1 for Redmi Note 10 (mojito / sunny)

Search This thread

Zirila

Senior Member
Jul 31, 2015
167
62
I made a backup with twrp from data partition before.
If I flashed Lineage, can I resore data with twrp or can this break something? Or does Lineage not start then?
if you make a backup of MIUI data partition, you can't restore this to a LOS data partition, these are 2 different ROMs.
even backup up and restoring data partition of only LOS is tricky. you can find infos about that in the TWRP thread.
 

Subhan.

Member
Feb 8, 2020
39
19
Redmi Note 10
regarding the alarm clock, i quote something from the AOSP FBE documentation:



FBE and Direct Boot isn't that new in 2021, but it seems like it is actually the problem with the alarm clock in this LineageOS version.
Probably, the alarm-clock app isn't Direct Boot aware or is not available in Device Encrypted (DE) storage, and therefor can't ring the alarm upon boot until the user would enter the credentials to unlock the userspace and data.

@Subhan. maybe you can take a look at this if you find the time, I guess this would work if it gets rolled out correctly, but you probably know more about the options than me
Ok so I def will look into it and if I find a fix i will def add it but it wont be included in this update instead the one after this update
For the next build, there are some optimizations, partition size for flashing gapps, microg or the recovery related zips, aptx etc
 
  • Like
Reactions: Zirila

Zirila

Senior Member
Jul 31, 2015
167
62
Ok so I def will look into it and if I find a fix i will def add it but it wont be included in this update instead the one after this update
For the next build, there are some optimizations, partition size for flashing gapps, microg or the recovery related zips, aptx etc
I'm excited for anything that improves the situation :)
do you plan to provide a flashable microg zip for spoofing and flashing the apps?
i think the most wanted features currently are working methods for troubleless upgrading and a video recording fix.
 
  • Like
Reactions: Nyakov

Subhan.

Member
Feb 8, 2020
39
19
Redmi Note 10
I'm excited for anything that improves the situation :)
do you plan to provide a flashable microg zip for spoofing and flashing the apps?
i think the most wanted features currently are working methods for troubleless upgrading and a video recording fix.
1)(This update) This time I will make sure the dirty flash works I will do a dirty flash myself first from the last release(but with Los recovery)
2)(Next Update) I have an idea but that might take some time(a dev suggested me to add anx in Los but I want to keep los as simple as possible)
So will check if any part or libs from anx can solve the video recording and will only add that

(No eta)I will try to check the micrgo spoofer too but well that might take time
 

Zirila

Senior Member
Jul 31, 2015
167
62
1)(This update) This time I will make sure the dirty flash works I will do a dirty flash myself first from the last release(but with Los recovery)
2)(Next Update) I have an idea but that might take some time(a dev suggested me to add anx in Los but I want to keep los as simple as possible)
So will check if any part or libs from anx can solve the video recording and will only add that

(No eta)I will try to check the micrgo spoofer too but well that might take time
alright!
I'd currently upgrade using TWRP or fastboot flash, but if it works with LOS recovery it should work with TWRP too (i hope). otherwise, flashing LOS recovery isn't that much of a deal either.

hm I think, it would still be better to provide a real clean vanilla image of lineageos and try to provide everything else as additional, flashable (magisks) .zips. some people might not trust the xiaomi proprietary camera libs if they were integrated into the vanilla image. that way users could decide between clean ROM and working camera. Though, I still expect the camera to work out of the box after some firmware upgrades in the future and that all this isn't necessary anmore.

if lineageos goes official anytime in the future, lineage.microg.org would automate the spoofing process without anyone needing to do extra stuff, that would be really cool too. as long as it's unofficial we can spoof it ourself with haystack and maybe provide a .zip for magisk for each update.
 

Zirila

Senior Member
Jul 31, 2015
167
62
you always need to reflash any 3rd party recovery (like TWRP) after flashing ROMs. First fastboot.exe boot twrp.img, then install it to ramdisk. why is that so? read this once to understand:
 
  • Like
Reactions: nierewa

Subhan.

Member
Feb 8, 2020
39
19
Redmi Note 10
Changelog (21/07/21):
• Dropped gapps variant
• Switched to User builds
• Increased system partition's size
• Included TWRP 3.5.2
• Set props for Rounded Gboard(If you install Gboard)
• Setup required props for userspace LMKD
• Switched Skia rendering backend to Vulkan
• Enabled force triple frame buffers
• Added bluetooth aptX blobs from redfin
 

Zirila

Senior Member
Jul 31, 2015
167
62
Changelog (21/07/21):
• Dropped gapps variant
• Switched to User builds
• Increased system partition's size
• Included TWRP 3.5.2
• Set props for Rounded Gboard(If you install Gboard)
• Setup required props for userspace LMKD
• Switched Skia rendering backend to Vulkan
• Enabled force triple frame buffers
• Added bluetooth aptX blobs from redfin
reporting back after upgrading to this version.

I had LOS version of June installed along with TWRP 3.5.1 (both on A slot) and after excessive backups I tried upgrading by dirty-flashing to this LOS version of July.

Now I know from previous attempts, that LOS Recovery seems to be working better than TWRP for upgrades, my first step was therefor flashing LOS Recovery, overwriting TWRP.
I first thought I might try MPK99 custom ROM fastboot flash install script, but by the date trying, it was already abandoned due to (unknown?) technical difficulties. So I stick with recovery installation method.

I upgraded via LOS-Recovery and that worked just fine. I rebooted to recovery again, and it started up TWRP as it is part of LOS-rom.zip this time (I would still prefer LOS-recovery getting shipped with the ROM for real vanilla, though)
After rebooting to system, the first start finalizes the installation, and this is the -first time ever- that an upgrade successfully installed itself from previous Slot A to Slot B without troubles. After first ROM start and a reboot to TWRP all errors shown right after the upgrade in tWRP were gone. Fine!

Luckily, this time, the old magisk signature spoofing module from previous LOS version still works without needing to run haystack again, so actually everything seems to be working out of the box after upgrading and all apps and data is still there and working.

So far so good!


Now, a few things I noticed:

- USB-Debugging is still activating everytime after booting, despite disabling it in the dev-options (rebooting while connected to PC with usb cable -> automatically always establishes usb-debugging connection)
I'm not entirely sure if this is supposed to be fixed in this version by switching to "user builds". Or maybe it's a settings issue when upgrading from previous lineageOS version? maybe you can tell me.

- quick panel icons are still lined up by 2 rows instead of 3 rows in previous versions and some original LOS icons seem to be missing. (again, I'm not sure if this was supposed to be fixed in this version, or whether my older settings overwrite any changes made)

- I've got a phone with 64GB internal memory. On previous and latest version, System (all Slot A+B) takes already 19GB of space, leaving only 45GB free space for internal storage.
Is this supposed to be normal, how many space does your system take and how many space do you have available as free storage (excluding external sd cards)? It looks a bit much for me..

- camera bug still exists but I didn't expect otherwise. I also did not test any of the new kernels yet, but I think they won't change anything yet.

if I found something else I'll post more.

Thanks so far for the updates
 

MPK99

Senior Member
Jun 25, 2017
487
302
Mexico
gitlab.com
Redmi Note 10
reporting back after upgrading to this version.

I had LOS version of June installed along with TWRP 3.5.1 (both on A slot) and after excessive backups I tried upgrading by dirty-flashing to this LOS version of July.

Now I know from previous attempts, that LOS Recovery seems to be working better than TWRP for upgrades, my first step was therefor flashing LOS Recovery, overwriting TWRP.
I first thought I might try MPK99 custom ROM fastboot flash install script, but by the date trying, it was already abandoned due to (unknown?) technical difficulties. So I stick with recovery installation method.

I upgraded via LOS-Recovery and that worked just fine. I rebooted to recovery again, and it started up TWRP as it is part of LOS-rom.zip this time (I would still prefer LOS-recovery getting shipped with the ROM for real vanilla, though)
After rebooting to system, the first start finalizes the installation, and this is the -first time ever- that an upgrade successfully installed itself from previous Slot A to Slot B without troubles. After first ROM start and a reboot to TWRP all errors shown right after the upgrade in tWRP were gone. Fine!

Luckily, this time, the old magisk signature spoofing module from previous LOS version still works without needing to run haystack again, so actually everything seems to be working out of the box after upgrading and all apps and data is still there and working.

So far so good!


Now, a few things I noticed:

- USB-Debugging is still activating everytime after booting, despite disabling it in the dev-options (rebooting while connected to PC with usb cable -> automatically always establishes usb-debugging connection)
I'm not entirely sure if this is supposed to be fixed in this version by switching to "user builds". Or maybe it's a settings issue when upgrading from previous lineageOS version? maybe you can tell me.

- quick panel icons are still lined up by 2 rows instead of 3 rows in previous versions and some original LOS icons seem to be missing. (again, I'm not sure if this was supposed to be fixed in this version, or whether my older settings overwrite any changes made)

- I've got a phone with 64GB internal memory. On previous and latest version, System (all Slot A+B) takes already 19GB of space, leaving only 45GB free space for internal storage.
Is this supposed to be normal, how many space does your system take and how many space do you have available as free storage (excluding external sd cards)? It looks a bit much for me..

- camera bug still exists but I didn't expect otherwise. I also did not test any of the new kernels yet, but I think they won't change anything yet.

if I found something else I'll post more.

Thanks so far for the updates
Do you fond to use telegram ?
If so, you can contact us (literally all the devs) as we're available there 24x7 interacting with community users in runtime.

Here's the Redmi Note 10 Community
If you have any queries, tag us there & we'll reply to you instantly.
 

Zirila

Senior Member
Jul 31, 2015
167
62
Do you fond to use telegram ?
If so, you can contact us (literally all the devs) as we're available there 24x7 interacting with community users in runtime.

Here's the Redmi Note 10 Community
If you have any queries, tag us there & we'll reply to you instantly.
I'd join but sorry I'm not using telegram, I intentionally don't use any messengers that are tied to phone numbers. Maybe if you have a matrix channel/bridge. Or anything similar.
 

Zirila

Senior Member
Jul 31, 2015
167
62
been a few days on this updated LOS version now, and one thing really stands out.
battery performance was great before, but this version is phenomenal regarding battery life.
I'm on my 3rd day with average usage without charging and still have 50% battery left.
before I had 40-50% battery after 2 days. so it seems like something (vulkan switch?) is really pushing the battery life in this update.
coming from an old phone that only lasted for half a day, this is mind blowing.
 

Subhan.

Member
Feb 8, 2020
39
19
Redmi Note 10
reporting back after upgrading to this version.

I had LOS version of June installed along with TWRP 3.5.1 (both on A slot) and after excessive backups I tried upgrading by dirty-flashing to this LOS version of July.

Now I know from previous attempts, that LOS Recovery seems to be working better than TWRP for upgrades, my first step was therefor flashing LOS Recovery, overwriting TWRP.
I first thought I might try MPK99 custom ROM fastboot flash install script, but by the date trying, it was already abandoned due to (unknown?) technical difficulties. So I stick with recovery installation method.

I upgraded via LOS-Recovery and that worked just fine. I rebooted to recovery again, and it started up TWRP as it is part of LOS-rom.zip this time (I would still prefer LOS-recovery getting shipped with the ROM for real vanilla, though)
After rebooting to system, the first start finalizes the installation, and this is the -first time ever- that an upgrade successfully installed itself from previous Slot A to Slot B without troubles. After first ROM start and a reboot to TWRP all errors shown right after the upgrade in tWRP were gone. Fine!

Luckily, this time, the old magisk signature spoofing module from previous LOS version still works without needing to run haystack again, so actually everything seems to be working out of the box after upgrading and all apps and data is still there and working.

So far so good!


Now, a few things I noticed:

- USB-Debugging is still activating everytime after booting, despite disabling it in the dev-options (rebooting while connected to PC with usb cable -> automatically always establishes usb-debugging connection)
I'm not entirely sure if this is supposed to be fixed in this version by switching to "user builds". Or maybe it's a settings issue when upgrading from previous lineageOS version? maybe you can tell me.

- quick panel icons are still lined up by 2 rows instead of 3 rows in previous versions and some original LOS icons seem to be missing. (again, I'm not sure if this was supposed to be fixed in this version, or whether my older settings overwrite any changes made)

- I've got a phone with 64GB internal memory. On previous and latest version, System (all Slot A+B) takes already 19GB of space, leaving only 45GB free space for internal storage.
Is this supposed to be normal, how many space does your system take and how many space do you have available as free storage (excluding external sd cards)? It looks a bit much for me..

- camera bug still exists but I didn't expect otherwise. I also did not test any of the new kernels yet, but I think they won't change anything yet.

if I found something else I'll post more.

Thanks so far for the updates
Welll about the usb debugging bug it only goes away with clean flash
I dirty flashed and clean flashed a no. of times to test and it went away only in clean flash

I kinda forgot about the qs panel....
Will try to fix in the next update

Afaik all custom roms on rn10 take about 19-20 gb in system

Well I will try to work on cam bug There is some other cam related background stuff that I have to work on too
 

Angenios

Member
Jul 27, 2020
8
2
I'm a newbie and I don't understand one thing: when I install this custom ROM, root access is already enabled? If yes, how do I install universal fix?
Thank you for your time.
 

Zirila

Senior Member
Jul 31, 2015
167
62
Welll about the usb debugging bug it only goes away with clean flash
I dirty flashed and clean flashed a no. of times to test and it went away only in clean flash

I kinda forgot about the qs panel....
Will try to fix in the next update

Afaik all custom roms on rn10 take about 19-20 gb in system

Well I will try to work on cam bug There is some other cam related background stuff that I have to work on too
Ah, too bad about the clean flash and usb debugging.
Well, then I'll have to do a clean flash at some point in the future, I don't know when I'll try that yet. Big ups to you for testing and finding that out.

phew, 20gb system is pretty much, but if this is the new normal, well, it's what it's like...

no prob about the qs and cam bug, still happy about every feature and security update that you can bring up to the table!
 

Subhan.

Member
Feb 8, 2020
39
19
Redmi Note 10
reporting back after upgrading to this version.

I had LOS version of June installed along with TWRP 3.5.1 (both on A slot) and after excessive backups I tried upgrading by dirty-flashing to this LOS version of July.

Now I know from previous attempts, that LOS Recovery seems to be working better than TWRP for upgrades, my first step was therefor flashing LOS Recovery, overwriting TWRP.
I first thought I might try MPK99 custom ROM fastboot flash install script, but by the date trying, it was already abandoned due to (unknown?) technical difficulties. So I stick with recovery installation method.

I upgraded via LOS-Recovery and that worked just fine. I rebooted to recovery again, and it started up TWRP as it is part of LOS-rom.zip this time (I would still prefer LOS-recovery getting shipped with the ROM for real vanilla, though)
After rebooting to system, the first start finalizes the installation, and this is the -first time ever- that an upgrade successfully installed itself from previous Slot A to Slot B without troubles. After first ROM start and a reboot to TWRP all errors shown right after the upgrade in tWRP were gone. Fine!

Luckily, this time, the old magisk signature spoofing module from previous LOS version still works without needing to run haystack again, so actually everything seems to be working out of the box after upgrading and all apps and data is still there and working.

So far so good!


Now, a few things I noticed:

- USB-Debugging is still activating everytime after booting, despite disabling it in the dev-options (rebooting while connected to PC with usb cable -> automatically always establishes usb-debugging connection)
I'm not entirely sure if this is supposed to be fixed in this version by switching to "user builds". Or maybe it's a settings issue when upgrading from previous lineageOS version? maybe you can tell me.

- quick panel icons are still lined up by 2 rows instead of 3 rows in previous versions and some original LOS icons seem to be missing. (again, I'm not sure if this was supposed to be fixed in this version, or whether my older settings overwrite any changes made)

- I've got a phone with 64GB internal memory. On previous and latest version, System (all Slot A+B) takes already 19GB of space, leaving only 45GB free space for internal storage.
Is this supposed to be normal, how many space does your system take and how many space do you have available as free storage (excluding external sd cards)? It looks a bit much for me..

- camera bug still exists but I didn't expect otherwise. I also did not test any of the new kernels yet, but I think they won't change anything yet.

if I found something else I'll post more.

Thanks so far for the updates
Well so about the built in twrp
Well first I wasnt able to compile user builds(Lineage doesnt have user builds officially)
With some changes I was able to compile but then wasnt able to boot to recovery so then I had two option either to go with userdebug builds or user builds with twrp
And well then I decided to go with user builds and builtin twrp
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    Hi, I have to report a glitch: if I enable the option to display the network upload and download MB/s, it will end up being at the center right on the notch, thus I'll be unable to see it unless I rotate the screen. I suggest you to move this icon to the left, just as it works for MIUI users.
    Thank you in advance for your time.
  • 20
    f811f5723a0834a63de7b0cea485c373bee439dfa9687f77bb2468f8f3dc248ca542.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. In this current build, you can remove google apps from system & use microg on it too. 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. You can also view the Changelog for a full list of changes & features.

    Downloads :
    Reporting Bugs :
    • DO NOT Report bugs if you're running a custom kernel or you installed Xposed
    • 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.)

    Note :

    • Dont dirty flash this build over prev Gapps build
    • Clean Flash recommended
    • Use universal fix for safetynet

    Use Los Recovery or TWRP
    FlameGapps and OpenGapps recommended

    Installation:

    • Sideload / Flash
    • Reboot to Recovery
    • Gapps (optional)
    • Format (optional)

    CURRENT KNOWN ISSUES :
    - Camcorder record bugs

    XDA::)evDB Information
    [ROM][11.0][UNOFFICIAL] Lineage OS 18.1 for Redmi Note 10 (mojito / sunny)
    Source Code:
    https://github.com/LineageOS
    Kernel Source Tree: https://github.com/PixelExperience-Devices/kernel_xiaomi_mojito
    ROM OS Version: Android 11
    ROM Kernel: 4.14.190-LA.UM.9.1.r1-09600
    Security patch level: June 2021

    Version Information
    Status:
    Stable

    Created 2021-06-01
    Last Updated 2021-07-21

    👍SMASH THE LIKE & SHOW YOUR APPRECIATION👍
    3
    It would be a better base without GAPPS. Why is it included?
    crDroid is also an extension of Lineage OS.
    But we miss a clean Lineage OS.
    Even so, I like him and how it will be time, phone reinstall.
    (y)
    3
    Changelog (21/07/21):
    • Dropped gapps variant
    • Switched to User builds
    • Increased system partition's size
    • Included TWRP 3.5.2
    • Set props for Rounded Gboard(If you install Gboard)
    • Setup required props for userspace LMKD
    • Switched Skia rendering backend to Vulkan
    • Enabled force triple frame buffers
    • Added bluetooth aptX blobs from redfin
    3
    THREAD CLEANED

    Just a friendly reminder to keep it civil, on-topic and refrain from putting fuel to fire by responding to posts that you think are offensive or hateful. Just report if you feel something isn't right and let us take care of it for you, so that we can make your experience on the forum better. :)

    Regards,
    shadowstep
    Forum Moderator
    3
    Hi everyone, I got `ErrorCode::kPostinstallRunnerError` after flasing this rom by TWRP, reflash the TWRP into rawdisk, reboot into recovery, reboot to system and my device bootloop into fastboot. Does anyone know why ? Thank you very much ! (LOS Recovery works fine though.)
    I got this error too one time.. I don't remember what helped, but I've installed LOS so many times on this phone in the meanwhile that I know of other ways that pretty sure works. give this a try:

    you need:
    • the TWRP alpha build twrp.img,
    • latest android platform tools (adb+fastboot),
    • latest redmi firmware.zip (link found in first post of the thread),
    • the lineageOS ROM.zip.
    • if you need to make a clean flash: MiFlash Tool and the current/latest MIUI ROM (links found in this forum)
    I make this guide a more-than-usual detailed step-by-step guide so many users can follow.
    1. start from a clean stock flash (flash the current/most recent official MIUI ROM with MiFlash, make sure you check "clean" and -not- "clean and lock" at the bottom before flashing, otherwise you lock your phone again)
    2. now the phone has MIUI and slot "a" is active, just boot to it and create a PIN/3-dot-pattern (in some cases TWRP can't decrypt data with default PW when you don't set this)
    3. switch off your phone, restart it into fastboot mode (vol-down + power).
    4. connect it with your PC, have the latest fastboot.exe from the most recent platform tools (https://developer.android.com/studio/releases/platform-tools)
    5. set the active slot to "b" with: fastboot.exe --set-active=b
    6. load the TWRP.img (currently the alpha build from this forum) with fastboot: fastboot.exe boot twrp.img
    7. load firmware.zip, lineagerom.zip and twrp.img to your phone: in TWRP enable MTP and copy files from your computer to the phone. if this does not work, see next step.
      Then install firmware.zip, then lineageOS.zip. lineageOS gets installed to slot "a".
    8. (if the above step fails to copy files to your phone try ADB sildeload:
      in TWRP go to advanced -> start ADB sideload. in your console cmd: adb sideload firmware.zip, and: adb sideload lineageos.zip. it installs the ROM to slot "a". there might be an error at the end but it works anyway.)
    9. switch off the phone. return to fastboot mode (vol-down + power)
    10. make the active slot now "a" with fastboot.exe --set-active=a
    11. reboot your phone normally to system, let the ROM start. at this point you should be able to launch LineageOS but without recovery. Load it so you can set up a PIN or 3-dot-pattern and then enable MTP connection with your PC.
    12. copy the TWRP.img (and if you want Magisk.zip) to your phone (internal/external storage), we want to install TWRP recovery now.
    13. switch off the phone, boot into fastboot mode.
    14. start TWRP with: fastboot.exe boot twrp.img, enter your PIN/Pattern to decrypt your user[0] data, in TWRP now go to Advanced -> install TWRP to ramdisk. select the TWRP.img you uploaded before. TWRP gets installed to slot "a".
    15. reboot your phone to recovery: Reboot -> Recovery.
    16. If you want to use Magisk/Root, go to Install -> Magisk.zip (If you want to use a custom Kernel in the future, flash the kernel before Magisk)
    17. now reboot to system, LineageOS should start normally and you can finish installing the rest.
    Lets note that this works at the stage of TWRP alpha with current available LineageOS (2021-06). Future versions of TWRP and LOS may change these steps completely.

    also if you have an error intalling or flashing files due to an snapshotted state (happens when you mess up custom ROM installation before and switchin a/b within TWRP), cancel the snapshot first with the command:
    fastboot.exe snapshot-update cancel