• 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

Nyakov

Senior Member
Nov 3, 2012
57
16
I am on lineage-18.1-20210720-UNOFFICIAL-mojito-vanilla.zip
Just after bootloader unlock I flashed LOS recovery and then thru adb sideload I flashed zip firmware(it asked to reboot phone into recovery as part of flashing process)

Camcoder works fine, at x265 mode at least. I dont see real need for native cam app from xiaomi at this point.

Have problem with SD card formatted as extension for system storage.
After boot I get message that SD card is not connected. And I cannot see applications that was moved to SD card. Then it connects at some point by itself (but sometimes not, and sometimes it looses SD card in normal use) and applications became available again.


do you plan to provide a flashable microg zip for spoofing and flashing the apps?

It will be nice to see Fdroid integrated with root extensions and MicroG. It will be nice to have flashable zips for this.

Well so about the built in twrp

I actually prefer native LOS recovery.
 

Subhan.

Member
Feb 8, 2020
37
19
Redmi Note 10
I actually prefer native LOS recovery.
I would still prefer LOS-recovery getting shipped with the ROM for real vanilla, though
Well its either user builds with twrp or userdebug builds with los recovery
Rn I am considering of dropping twrp but will have to go with userdebug builds till I find a way to make los rec work in user builds but coz of a certain issue I might drop twrp
 

Zirila

Senior Member
Jul 31, 2015
168
63
Well its either user builds with twrp or userdebug builds with los recovery
Rn I am considering of dropping twrp but will have to go with userdebug builds till I find a way to make los rec work in user builds but coz of a certain issue I might drop twrp
if next release is going to be a userdebug build, then I don't have to make a clean install anyway, as long as the usb debug option is still always on.

I wonder if it is possible to disable the default always-on usb-debugging option despite using userdebug builds? that way you could release userdebug and maybe we can still have usb-debugging disabled by default.
 

Angenios

Member
Jul 27, 2020
8
2
Hi, I've just flashed this ROM, alongside with Gapps nano and Magisk (which then I used for installing universal fix), but I've noticed that the proximity sensor is not working. Apps recognize that I do have a proximity sensor, but it doesn't work. I've tried with Phyphox and Sensor Test too, but it still doesn't work.
Oh, anyway, could you explain me how to get the native MIUI camera, please? I'd like to get it back since it worked fine for me.
Thank you in advance, have a nice day.
 

StaryMuz

Senior Member
Dec 27, 2012
402
128
The proximity sensor works, it's just not very responsive. The phone has to be in a vertical position and even the point where to approach the phone is very limited.
 
  • Like
Reactions: Angenios

Angenios

Member
Jul 27, 2020
8
2
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.
 

Attachments

  • 1629494162205.png
    1629494162205.png
    170.1 KB · Views: 52
  • Like
Reactions: Ata Ur Rehman

Zirila

Senior Member
Jul 31, 2015
168
63
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.
I have noticed the same problem sometime ago, but unfortunately this is a LineageOS problem imo. You'd have to report this issue to LineageOS issue tracker instead of the port-thread here. Maybe they'll fix it if it becomes enough attention.


@Subhan.
is it possible to make an update with latest security patch level of sept?
 

Subhan.

Member
Feb 8, 2020
37
19
Redmi Note 10
I have noticed the same problem sometime ago, but unfortunately this is a LineageOS problem imo. You'd have to report this issue to LineageOS issue tracker instead of the port-thread here. Maybe they'll fix it if it becomes enough attention.


@Subhan.
is it possible to make an update with latest security patch level of sept?
Welllll I actually was gonna release with aug sec patch but waited for oss vendor (By Zidan) but that has 2-3 bugs(Not that big) that gonna get fixed soon
I will try for the sept security patch if I am able to get safetynet passed on that one before my server expires
Else will have release with aug sp
 

Angenios

Member
Jul 27, 2020
8
2
I have to report a bug: the inline controller of my headphones does not work well in this ROM. I can assure that it is not a problem of the headphones or of the smartphone, since in MIUI it was working and these headphones are new and work on other devices as they should. I can only pause and resume the music, but I can't increase or decrease the volume.
 

ShuvoGG

New member
Sep 3, 2021
1
0
Sending 'recovery' (131072 KB) OKAY [ 3.199s]
Writing 'recovery' FAILED (remote: '(recovery_b) No such partition')
fastboot: error: Command failed

WHY SHOING THIS
 

StaryMuz

Senior Member
Dec 27, 2012
402
128
Everything has already been written here, read it.

Our phone has no recovery partition. Recovery is now part of the boot.
 

OldNoobOne

Senior Member
Root, or from alpha twrp, remove these to convert it into vanilla :
/system/app/GoogleContactsSyncAdapter
/system/app/GoogleCalenderSyncAdapter
/system/priv-app/AndroidPlatformServices
/system/priv-app/GoogleServicesFramework
/system/priv-app/Phonesky
/system/priv-app/PrebuiltGMSCore

These are the only apps that I included for this gapps variant
removing gapps from system apps and then will it boot after wiping cache partition?
 

OldNoobOne

Senior Member
But why
I mean Los is already Vanilla so no gapps
If Gapps is BuiltIn into System Apps then if when we remove Gapps it is like removing system apps right? so thats why i thought when after removing built-in Gapps & clearing cache partition will the phone boot?
P.S- LOS is just too vanilla, it doesnt even have a button to reboot/poweroff from QS-Panel lol but will do for now coz other roms are pretty tough to flash on RN10 [Example-Derpfest got twrp error 1 on (dynamic_partitions_op_list)] and many Andro11 Roms seem to have bugs so I have to wait for RR11 (Resurrection Remix) maybe.
 
Last edited:

MPK99

Senior Member
Jun 25, 2017
524
365
Mexico
gitlab.com
Redmi Note 10
If Gapps is BuiltIn into System Apps then if when we remove Gapps it is like removing system apps right? so thats why i thought when after removing built-in Gapps & clearing cache partition will the phone boot?
P.S- LOS is just too vanilla, it doesnt even have a button to reboot/poweroff from QS-Panel lol but will do for now coz other roms are pretty tough to flash on RN10 [Example-Derpfest got twrp error 1 on (dynamic_partitions_op_list)] and many Andro11 Roms seem to have bugs so I have to wait for RR11 (Resurrection Remix) maybe.
Install usb drivers & use my fastboot OTA tool.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 2
    Changelog (01/10/21):
    • Fixed Spoofing on microg variant
    • QS size set to 2x4
    • Fixed Slow charging
    • Fixed camera color shift
    • Moved to Lineage Recovery
    • Allow all filesystems for USB-OTG
    • Don't check prox before pulsing

    Caution: Failed SafetyNet.
    1
    Thanks for the Rom. Just wanted to know if there is any fix for safety net as I use some banking apps and that might be issue.
    Try this root method.
    Get the following magisk modules: Riru, Universal SafetyNet Fix & PropsHide.
    Flash all three & reboot (Universal Fix needs a riru reboot)
    Get any terminal & do
    Code:
    su
    props
    1. Edit device fingerprint
    f (Pick a certified fingerprint)
    7 (Google)
    23 (Pixel 4 XL)
    Yes to confirm
    Reboot to apply the changes
    Make sure you enable MagiskHide after that.
    1
    @Ujjawal1810 Could you please let me know if it fixed safetynet? I'd also need this for my banking app. Cheers!
  • 23
    1633823826022.png


    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. You can also view the Changelog for a full list of changes & features.

    Downloads :

    Note :

    • SafetyNet will fail.
    GCam recommended. No issues with Ultrawide & Macro
    • If you guys experience spoofing issues, try Spoof magisk module.

    Installation:
    • Sideload / Flash
    • Reboot to Recovery
    • Format (optional)

    or Install through Fastboot

    CURRENT KNOWN ISSUES :
    - Safety Net

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

    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/Neternels/android_kernel_xiaomi_mojito
    ROM OS Version: Android 11
    ROM Kernel: 4.14.206
    Security patch level: September 2021

    Version Information
    Status:
    Stable

    Created 2021-06-01
    Last Updated 2021-10-01

    👍SMASH THE LIKE & SHOW YOUR APPRECIATION👍
    4
    Changelog (01/10/21):
    • Fixed Spoofing on microg variant
    • QS size set to 2x4
    • Fixed Slow charging
    • Fixed camera color shift
    • Moved to Lineage Recovery
    • Allow all filesystems for USB-OTG
    • Don't check prox before pulsing

    Changelog (26/09/21):
    • Included OrangeFox Recovery
    • Smarter decisions on whether to use 2/5Ghz AP
    • Disabled wifi firmware logging
    • Disabled NUD failure occurs logging
    • Fixed whatsapp mic delay or crashes
    • Improved overall system performance

    Changelog (23/09/21):
    • Moved to armv8-2a
    • Added BatteryHealth & Charge Cycle
    • Added Auto Call Record
    • Added Dirac Enhancer
    • Added camera cutout ring like memeui
    • Added main display cutout overlays
    • Updated device cutout corners
    • Fixed wifi display cast
    • Updated brightness overlay configs
    • Bring back full stack of audio ACDB
    • Removed virtual framebuffer cmdline
    • Set voice call volume steps to 10
    • Addressed more sepolicy rules
    • Fixed thermal crash

    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

    Changelog (30/06/21):
    • Initial Build
    • Fixed flashing of libs for ANX
    • Tweaked qs panel a bit

    Changelog (12/06/21):
    • Removed addons (simple calendar, mix, gboard, etc)
    • Included Audio FX

    Changelog (01/06/21):
    • Initial build
    • Replaced native apps with lighter ones
    • MiX & Terminal included
    4
    Changelog (23/09/21):
    • Moved to armv8-2a
    • Added BatteryHealth & Charge Cycle
    • Added Auto Call Record
    • Added Dirac Enhancer
    • Added camera cutout ring like memeui
    • Added main display cutout overlays
    • Updated device cutout corners
    • Fixed wifi display cast
    • Updated brightness overlay configs
    • Bring back full stack of audio ACDB
    • Removed virtual framebuffer cmdline
    • Set voice call volume steps to 10
    • Addressed more sepolicy rules
    • Fixed thermal crash

    Notes:
    • SafetyNet will fail.
    GCam recommended. No issues with Ultrawide & Macro
    • MicroG variant supports spoofing out of the box
    4
    Changelog (26/09/21):
    • OrangeFox Recovery pre-included
    • Smarter decisions on whether to use 2/5Ghz AP
    • Disabled wifi firmware logging
    • Disabled NUD failure occurs logging
    • Fixed whatsapp mic delay or crashes
    • Improved overall system performance
    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