Official LineageOS for Redmi 9

Search This thread

hvdh

Senior Member
Oct 3, 2015
59
8
I just tested on 2023-04-06. Worked for me.
(Not sure if this is sufficent: I enabled W-Fi calling, set it as default, and did a call while Wifi connected. Call worked fine.)
My only add-on is MindTheGapps.
 

hvdh

Senior Member
Oct 3, 2015
59
8
FYI: I just did an uopdate from 2023-04-06 to 2023-05-31 using the internal updater. It worked flawless. Did not need to reinstall GApps afterwards.
 

skyogo

New member
Jun 15, 2023
1
0
Hi, I flashed and followed the steps for the official LineageOS for my redmi 9 lancelot and I noticed that getting calls to output audio through my bluetooth earphones won't work and would output to external or internal speakers instead. Tried for several apps like discord and messenger but bluetooth for calls simply won't show up in the list of devices for audio output. Any Idea what the issue is?
 

tenssa

Senior Member
Jun 13, 2011
64
6
Via ADB if i remember correctly, not sure about it.
Hello @tenssa !
How do you install Magisk without TWRP?
I've patched the boot.img image, but how can I flash it?
this quote from my post, i did same for magisk.zip file
" -Flash lineageOS file with "adb sideload lineage-20.0-20230405-nightly-lancelot-signed.zip", of course put name according to your file"
 

cruncher1234

Member
May 1, 2016
24
1
Thanks for the pointer. I tried it and finally got LineageOS working on my Redmi 9 that had MIUI 13 (bootloader unlocked) already.

Here are the steps I did:

Download twrp-3.4.2_A12-lancelot-dimenzino.img from https://sourceforge.net/projects/recovery-for-xiaomi-devices/files/lancelot
Download miui_LANCELOTEEAGlobal_V13.0.3.0.SJCEUXM_f7755ce0ba_12.0.zip (or similar, should be the version currently on your phone) from https://xiaomirom.com/en/rom/redmi-9-lancelot-europe-fastboot-recovery-rom/.
Open miui_LANCELOTEEAGlobal..., extract vbmeta.img and rename it to vbmeta-miui.img.
Open https://download.lineageos.org/devices/lancelot, download
lineage-20.0-20230322-nightly-lancelot-signed.zip and vbmeta.img and recovery.img from the same build. Rename the latter two to vbmeta-lineage.img and recovery-lineage.img).
Download MindTheGapps-13.0.0-arm64-20221025_100653.zip from https://androidfilehost.com/?fid=14871746926876840643

Copy these files to your SD card:
- lineage-...-signed.zip
- MindTheGapps....zip
- miui_LANCELOT..._12.0.zip

Now:
1) Boot into fastboot. "FASTBOOT" in orange letters must be on screen.
2) fastboot --disable-verity --disable-verification flash vbmeta vbmeta-miui.img
3) fastboot flash recovery twrp-3.4.2_A12-lancelot-dimenzino.img
boot into recovery
4) fastboot reboot recovery
(TWRP comes up)
5) In TWRP, do wipe/factory reset.
6) In TWPR, install miui_LANCELOT..._12.0.zip, then reboot.
(MIUI logo comes up for a few mintues, then MIUI 12.5 starts)
7) In MIUI, power off phone
8) Boot into fastboot. "FASTBOOT" in orange letters must be on screen.
9) fastboot --disable-verity --disable-verification flash vbmeta vbmeta-lineage.img
10) fastboot --disable-verity --disable-verification flash recovery recovery-lineage.img
11) fastboot reboot recovery
(LineageOS recovery comes up)
12) In LOS recovery, install lineage-...-signed.zip and MindTheGapps....zip. Then reboot to system. It asks whether to erase data. Answer yes.
13) LineageOS boots. Yay!

IMEIs etc are all preserved.
I did all and after step 11 it boots to MIUI instead of recovery. The lineageos recovery doesn't start.
After booting to MIUI the recovery is restored to MIUI recovery.
Can you install lineageos 20 from TWRP ?
 

hvdh

Senior Member
Oct 3, 2015
59
8
I did all and after step 11 it boots to MIUI instead of recovery. The lineageos recovery doesn't start.
After booting to MIUI the recovery is restored to MIUI recovery.
Can you install lineageos 20 from TWRP ?
Weird. Did you use the exact version I had used.
IIrc I tried installing LOS from TWRP but it did not work.
 

yonosoyyo

Member
Oct 21, 2012
12
0
Hello everyone and specially @hvdh . It is happening to me the same that happened to @cruncher1234 . It boots on MIUI instead of recovery. Can anybody help me on fixing this ? did you manage to find a solucion, @cruncher1234 ? I know there is other option, which is to downgrade to 12.5 but I don't know how to do that. I'm a newbie and I follow steps, but I can't find tutorials in english to help me with this.

Thank you very much.
 

hvdh

Senior Member
Oct 3, 2015
59
8
Hi @yonosoyyo. As far as I know, there is no way to directy go from MIUI 13 to LOS. You need to downgrade MIUI 13 -> MIUI 12.5 first, then you can install LOS.
I was just reading my instructions again, and iirc there is something missing.
Please try this:
- also download a MIUI 12.5 recovery ROM (e.g. this one for global/EEA model https://xiaomirom.com/en/download/redmi-9-9-prime-lancelot-stable-V12.5.5.0.RJCEUXM/#europe-recovery) and copy it to SD card.
- in step 6, install this file (e.g. miui_LANCELOTEEAGlobal_V12.5.5.0.RJCEUXM_ddc3be0420_11.0.zip)
If MIUI 12.5 boots, then you can continue. If it is still MIUI 13, it did not work.
 

yonosoyyo

Member
Oct 21, 2012
12
0
I did as you told and after step 6 its on bootloop. I can not go into fastboot, recovery or even boot the device. don't know how to fix that... If anybody can help me fix it.. its firs time in my life I can not go into recovery nor fastboot
 

hvdh

Senior Member
Oct 3, 2015
59
8
I did as you told and after step 6 its on bootloop. I can not go into fastboot, recovery or even boot the device. don't know how to fix that... If anybody can help me fix it.. its firs time in my life I can not go into recovery nor fastboot
Is your phone an EEA model?
So is the phone on or off? If on: What exactly is on screen? What happens when you press power button for 10s?
When you cannot get to fastboot and recovery, there still is SP Flash Tool with MTK bypass utility. You can use that to install MIUI 12. Not sure if you need a fastboot or a recovery FW download for that. In SP flash tool, use "Download only" mode and remove the checkmark for "preloader".
I have little time today and tomorrow, but I try to support you.
 

yonosoyyo

Member
Oct 21, 2012
12
0
Is your phone an EEA model?
So is the phone on or off? If on: What exactly is on screen? What happens when you press power button for 10s?
When you cannot get to fastboot and recovery, there still is SP Flash Tool with MTK bypass utility. You can use that to install MIUI 12. Not sure if you need a fastboot or a recovery FW download for that. In SP flash tool, use "Download only" mode and remove the checkmark for "preloader".
I have little time today and tomorrow, but I try to support you.
Hello. I'm in Spain and i'm Spanish. The phone was bought trough an Spanish operator, years ago.
I assume is an EEA model, but is there any way to confirm that?

The phone is on bootloop. It appears the Redmi logo at the center of the screen, with the "powered by android" sentence at the botton center" and at the bottom right says "blow: success".

It stays like that for some time, maybe 1 minute, and then the screen goes off and again appears the same info: Redmi and Powered by android. I guess that's what people calle bootloop.

If I try to access to fastboot or recovery it just goes back to the same screen mentioned. It doesn't ever enter to those modes.

I've kept if wired to the charger, so it has not run off battery yet.

When I press the power button it happens the same as told: screen goes black and Redmi and Powered by android appear again.

I have installed SP Flash Tool but haven't found the "preloader" checkmark anyway and don't know which settings put. I assume there should be any tutorial... Oh.. this is just a headache
 

mxpower

Member
Jul 20, 2018
6
1
Yes, you cannot upgrade from Android 12 to Android 13 (Redmi 9 that is). You have to downgrade to Android 11. To downgrade i had to use the MiFlash Pro Tool and install Lancelot FW. There are videos on youtube that show you how to do it.
The tricky part is to get into factory mode so i had to wait until the battery was depleted and then windows could see the device with libusb by pressing power + volume up i think (using power from usb).
 
  • Like
Reactions: breversa

hvdh

Senior Member
Oct 3, 2015
59
8
Hello. I'm in Spain and i'm Spanish. The phone was bought trough an Spanish operator, years ago. I assume is an EEA model, but is there any way to confirm that?
Then it should be EEA.

The phone is on bootloop.[...]
Ok, I also had the same once.

I've kept if wired to the charger, so it has not run off battery yet.
Keep it on the charger. I read there's a way to recover once the battery is full drained. I tried that but it did not work for me. It also is not good for the battery.
When I press the power button it happens the same as told: screen goes black and Redmi and Powered by android appear again.

I have installed SP Flash Tool but haven't found the "preloader" checkmark anyway and don't know which settings put. I assume there should be any tutorial... Oh.. this is just a headache
Download MTK bypass utility. You should find some tutorials. You also need "MTK exploits_collection" and maybe need to install some USB drivers.
Then start MTK bypass utility and connect the phone to PC. I remember I tried for a while pressing phone buttons (it seemed that the bootloop behavior reacted a bit on button presses) and connecting the phone shortly after.
When you have luck or get the timing right, MTK bypass utility can connect to to the phone's bootloader and pauses the bootloop (it then tricks the bootloader into accepting SP flash tool write access). When you are at that point, you can start SP flash tool and flash a firmware (lots of poorly written tutorials exist).
I'm busy today. Maybe I have time tonight. I'll send you a PM with my private mail to make communication easier.
 

yonosoyyo

Member
Oct 21, 2012
12
0
I got help by people on telegram and they helped and finally installed a rom and everything is going well at the moment. Thank you very much
 

breversa

Senior Member
Mar 21, 2012
565
171
LG G4
Fairphone 2
Boots faster, feels more snappy, apps stay alive in background. On MIUI 13, Whatsapp often was killed in background, so if someone messaged me, I would get notified hours later.
Lucky you!
I’ve installed LineageOS back in July on a Redmi 9 that my SO started using only this week, and she complains that apps get killed as soon as they are no longer in the foreground (even very lightweight apps such as stopwatch).

Has anyone else encountered this issue? How did you solve it?

Also, earphone volume during calls feels low even at max volume. Sounds (See what I did here?) familiar?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    Lucky you!
    I’ve installed LineageOS back in July on a Redmi 9 that my SO started using only this week, and she complains that apps get killed as soon as they are no longer in the foreground (even very lightweight apps such as stopwatch).

    Has anyone else encountered this issue? How did you solve it?

    Also, earphone volume during calls feels low even at max volume. Sounds (See what I did here?) familiar?
    Regarding apps getting killed, you may investigate what consumes RAM.
    On phone: https://techviral.net/check-ram-usage-android/
    My 3GB Redmi 9 with LOS20 shows this (3h average RAM usage):
    - 828MB Android OS
    - 245MB for Android-System
    - 194MB for System UI
    - 200MB lots of small services
    This should leave at least 1.0GB RAM for apps.
    After a reboot, it shows 550MB free

    What earphones, cable or BT? Have the same phones been louder on stock firmware? Are they louder on other phones?
    I just tried with cabled and BT earphones and while not terribly loud, both are ok for calls well below max volume.
    1
    It doesn't matter, I'll use the sim card in another phone to activate call forwarding if necessary. Another thing I noticed is that the display doesn't turn on when I receive notifications.
    I've looked everywhere in the settings, but I couldn't find anything. Thank you.
    I've submitted a bug report at LineageOS. Let's see what happens.
  • 1
    There is official release of LineageOS 20 for Redmi 9:

    Pity, no support on XDA.
    1
    Thanks for the pointer. I tried it and finally got LineageOS working on my Redmi 9 that had MIUI 13 (bootloader unlocked) already.

    Here are the steps I did:

    Download twrp-3.4.2_A12-lancelot-dimenzino.img from https://sourceforge.net/projects/recovery-for-xiaomi-devices/files/lancelot
    Download miui_LANCELOTEEAGlobal_V13.0.3.0.SJCEUXM_f7755ce0ba_12.0.zip (or similar, should be the version currently on your phone) from https://xiaomirom.com/en/rom/redmi-9-lancelot-europe-fastboot-recovery-rom/.
    Open miui_LANCELOTEEAGlobal..., extract vbmeta.img and rename it to vbmeta-miui.img.
    Open https://download.lineageos.org/devices/lancelot, download
    lineage-20.0-20230322-nightly-lancelot-signed.zip and vbmeta.img and recovery.img from the same build. Rename the latter two to vbmeta-lineage.img and recovery-lineage.img).
    Download MindTheGapps-13.0.0-arm64-20221025_100653.zip from https://androidfilehost.com/?fid=14871746926876840643

    Copy these files to your SD card:
    - lineage-...-signed.zip
    - MindTheGapps....zip
    - miui_LANCELOT..._12.0.zip

    Now:
    1) Boot into fastboot. "FASTBOOT" in orange letters must be on screen.
    2) fastboot --disable-verity --disable-verification flash vbmeta vbmeta-miui.img
    3) fastboot flash recovery twrp-3.4.2_A12-lancelot-dimenzino.img
    boot into recovery
    4) fastboot reboot recovery
    (TWRP comes up)
    5) In TWRP, do wipe/factory reset.
    6) In TWPR, install miui_LANCELOT..._12.0.zip, then reboot.
    (MIUI logo comes up for a few mintues, then MIUI 12.5 starts)
    7) In MIUI, power off phone
    8) Boot into fastboot. "FASTBOOT" in orange letters must be on screen.
    9) fastboot --disable-verity --disable-verification flash vbmeta vbmeta-lineage.img
    10) fastboot --disable-verity --disable-verification flash recovery recovery-lineage.img
    11) fastboot reboot recovery
    (LineageOS recovery comes up)
    12) In LOS recovery, install lineage-...-signed.zip and MindTheGapps....zip. Then reboot to system. It asks whether to erase data. Answer yes.
    13) LineageOS boots. Yay!

    IMEIs etc are all preserved.
    1
    Is there any bugs with LineageOS 20? Is battery and RAM usage better with it vs MIUI 13 A12? I am currently on A12 MIUI13 Redmi 9.
    I have been using it for two weeks now (lineage-20.0-20230322-nightly-lancelot-signed), everything is fine. Performance is way better than MIUI 13. Boots faster, feels more snappy, apps stay alive in background. On MIUI 13, Whatsapp often was killed in background, so if someone messaged me, I would get notified hours later.

    Tried updating to 20230412 today, but MindTheGApps will not install there.
    1
    How is battery? Better than stock?
    Better than MIUI 13. About the same as MIUI 12.5, maybe better.
    1
    Yes, you cannot upgrade from Android 12 to Android 13 (Redmi 9 that is). You have to downgrade to Android 11. To downgrade i had to use the MiFlash Pro Tool and install Lancelot FW. There are videos on youtube that show you how to do it.
    The tricky part is to get into factory mode so i had to wait until the battery was depleted and then windows could see the device with libusb by pressing power + volume up i think (using power from usb).