yashsingh1/xdaforums huggingface dataset:
[Redmi Note 9 ROMs, Kernels, Recoveries, & Other De] MyBrainIsAStrainer:
Did you install the drivers? I think I remember Windows needing drivers.

If you're running the unlock software in a VM such as VirtualBox (which is what I used), rebooting the phone into fastboot will have likely disconnected it from the VM and attached it to the host again (every "mode change" looks to the USB controller like a new device being plugged in). So you'll have to tell the VM to grab the device yet again.

And lastly, the unlocker needs to be run with admin privileges, if I remember correctly.

That's all that comes to mind atm.
[Redmi Note 9 ROMs, Kernels, Recoveries, & Other De] TheAegidius:
Thank you @MyBrainIsAStrainer 🙏

Eventually I managed to do it with this tool on Linux. Now I have to wait one week 😩
[Redmi Note 9 ROMs, Kernels, Recoveries, & Other De] TheAegidius:
@MyBrainIsAStrainer I'm installing Windows 10 in a VM, in case something will go wrong next week. Which drivers do I have to install?
[Redmi Note 9 ROMs, Kernels, Recoveries, & Other De] MyBrainIsAStrainer:
That's actually a good question. Unfortunately, I have already disposed of the VM snapshot that I used to unlock mine, so I can't look it up there anymore.

And I can't seem to find an "official" download on the Xiaomi website. I guess it would be too easy to just put it there.

I can only find what seem to be unofficial donwloads, such as these:

Download Xiaomi USB Drivers for Windows and Mac | Xiaomi Advices

Xiaomi USB Drivers: Download & Install Official Xiaomi Mi USB Drivers on Windows 7/8/8.1/10/XP and Mac OS. The list of compatible phones are Redmi Note 4, Xiaomi Mi A1, Redmi 4, Redmi Note 5A, Mi Mix 2, Mi 6, Redmi Note 5 Pro, Mi Mix 2, Mi Note 2, Redmi Y1, and others.

xiaomiadvices.com

https://c.mi.com/thread-1625831-1-0.html

Xiaomi Redmi 9 USB Driver, PC Manager & User Guide Download

Here, we provide free Xiaomi Redmi 9 USB Driver, PC Manager & User Guide Download with single click on the download link below.

www.xiaomidriversdownload.com

I guess since you'll be using them in a VM, it's not that much of a security concern. So maybe they're good enough. But caveat emptor, I guess.
[Redmi Note 9 ROMs, Kernels, Recoveries, & Other De] tiefentaucher:
The download link for the Rom seems to be invalid: https://drive.officialmirror.workers.dev/lineage-18.1-20210301-UNOFFICIAL-merlin.zip

Is there an alternative source for downloading?
[Redmi Note 9 ROMs, Kernels, Recoveries, & Other De] George528:
the link with the rom doesnt work
[Redmi Note 9 ROMs, Kernels, Recoveries, & Other De] Communos:
Google Drive - Quota exceeded

drive.google.com

Check this link
[Redmi Note 9 ROMs, Kernels, Recoveries, & Other De] Buckshee:
Thanks for the build, the only thing I noticed was a "Serial Console Enabled" notification, which seems harmless.
[Redmi Note 9 ROMs, Kernels, Recoveries, & Other De] galaxyms:
Good work and many thanks. I flashed this last night on my 128GB NFC model. Without Gapps. Rooted. Early observations: In whatsapp voice my recorded messages have a continual clicking noise on them. MicroG not supported in spoofing signatures so I can't install google play services for the apps that need it. Would this be easy to do? Also is there a native call recorder in this build, since I can;t find it
[Redmi Note 9 ROMs, Kernels, Recoveries, & Other De] George528:
how do i update my android from 10 to 11? because this build as i see is for Android 11 only
[Redmi Note 9 ROMs, Kernels, Recoveries, & Other De] riccardosimo:
After installing the ROM i get the "Serial console enabled Performance is impacted. To disable, check bootloader" notification and can't me removed :( how can I remove it?​
[Redmi Note 9 ROMs, Kernels, Recoveries, & Other De] Communos:
Hi guys, Latest LineageOS build for Redmi Note 9 is here.

All the major bugs listed here have been fixed, Updated security patch and SELinux is now Enforcing!

Download Link

https://mirror.akshaykakatkar.dev/lineage-18.1-20210512-UNOFFICIAL-merlin-2.zip

Note:

If you're on previous build of lineage or any other rom that does not come with OSS Vendor, you will have to reflash MIUI 12.0.1 ID or 12.0.2 Global in fastboot and then proceed with flashing.
[Redmi Note 9 ROMs, Kernels, Recoveries, & Other De] Matt_slider:
Solid work, Communos; Kraken is now my second fav :giggle:
[Redmi Note 9 ROMs, Kernels, Recoveries, & Other De] beamcola:
Sounds like a great job to fix problems with the 20210512-Version - THX

I found the difference in preperation, to use Flash MIUI 12.0.2 Global in fast boot instead of MIUI 12.0.3 Global

BUT

the archive does not hold a proper version https://xiaomifirmwareupdater.com/archive/miui/merlin/

Could anybody serve an other recourse / link to get the MIUI 12.0.2 Global fastboot image please ?

thx in advance
[Redmi Note 9 ROMs, Kernels, Recoveries, & Other De] Communos:
12.0.3 global will work as well
[Redmi Note 9 ROMs, Kernels, Recoveries, & Other De] Flying_Scotsman:
Thank you so much @Communos , for building and releasing this image. (y)

I flashed it as per your instructions except I used V12.0.3.0, using TWRP-V12.0.6-wzsx15recovery.img. It was perfectly straightforward, started fine and ran fine. I do hope you will make this official.
[Redmi Note 9 ROMs, Kernels, Recoveries, & Other De] Flying_Scotsman:
duplicate.
[Redmi Note 9 ROMs, Kernels, Recoveries, & Other De] bromohendro:
Thanks for the rom. I want to flash this rom.

But, i have question about camera?

for the camera using what application? MIUI camera or GCam? Thank you very much.
[Redmi Note 9 ROMs, Kernels, Recoveries, & Other De] Communos:
Either use ANX Cam (Magisk Module)

https://dl1-sponsored-by.indianets.net/anxmirror/185R.singularity/ANXCameraUnity_185R.SaltyIntelligentPlainsqueaker.zip

OR

GCam 6

123 - Google Drive

drive.google.com
[Redmi Note 9 ROMs, Kernels, Recoveries, & Other De] fsss:
Many thanks @Communos for your work! There is a huge performance improvement over the stock rom on the device equipped with only 3 GB RAM.

The only issue I noticed so far is difficulties with getting a GPS fix in my apartment. It's only possible very near to the windows and even there it takes a lot of time to get a GPS fix. Have you noticed similar issues? My device is merlinnfc released on EU market.
[Redmi Note 9 ROMs, Kernels, Recoveries, & Other De] MyBrainIsAStrainer:
Are you sure this doesn't happen with MIUI as well? GPS always requires a line-of-sight to the satellites, so I'd actually be surprised if you managed to get a fix inside an apartment. That's why Google came up with the idea to also use Wifi for determining location, and why Bluetooth beacons exist. It's my understanding that GPS just doesn't work reliably indoors. :unsure:

Beyond that, I'd assume that the first fix will always take a while, because the almanac may have to be updated. It's a daily updated database that tells the receiver where to find the satellites (i.e. their location in the spectrum which depends on their actual orbit - it's affected by the doppler effect an stuff like that). Without it, the phone has to scan the entire spectrum, which takes longer. Once the almanac is up-to-date, the phone should get a fix quicker - provided it has reception (see first paragraph). Doing a cold start (no almanac) can take more than 10 minutes. A hot start (fresh almanac) can be done within 30 seconds.
[Redmi Note 9 ROMs, Kernels, Recoveries, & Other De] fsss:
You're totally right. The phone belongs to my friend who asked me to help him improve the poor performance of the MIUI stock rom. So I'm not really aware how it was before. I called him and he told me it worked "just fine". Apparently my mistake was that I compared it to more expensive devices where I get a GPS fix immediately even indoor. Later I finally tested the location outside in Google Maps and it works really well (I get a GPS fix within seconds).

Thanks for great explanation of the process but I'm pretty sure it isn't related to the cold start as I used "GPS Test" app and it's true for a cold start the radar was empty and then it got populated with satellites but later even with such cache it couldn't get a GPS fix away from the window. I think my expectations were just too high. Again, outside it works just fine with the latest build of LineageOS 18.1!
[Redmi Note 9 ROMs, Kernels, Recoveries, & Other De] fsss:
duplicate
[Redmi Note 9 ROMs, Kernels, Recoveries, & Other De] TheAegidius:
Hi @Communos, would you recommend I back up the IMEI code before flashing the downgraded version of MIUI? Doing all of this for the first time on my Xiaomi Redmi Note 9.
[Redmi Note 9 ROMs, Kernels, Recoveries, & Other De] Communos:
Downgrading is safe, also you might have troubles with sp flash on higher miui Versions.

You can also backup imei with termux and root,

Place backup.sh in internal storage

Open termux

su

cd /sdcard

sh backup.sh

Done :)
[Redmi Note 9 ROMs, Kernels, Recoveries, & Other De] MartectX:
G'day y'all!

ROM is working great, I'm having lots of fun and getting work done. One problem I encountered, though. Maybe you can help! When the smartphone is locked I do NOT receive any calls! As soon as I push a button to start the unlock of the phone the call is shown.

Thank for any indicators to the solution of this irritating problem. :)
[Redmi Note 9 ROMs, Kernels, Recoveries, & Other De] MartectX:
(sorry, double post)
[Redmi Note 9 ROMs, Kernels, Recoveries, & Other De] Communos:
Weird, I never faced such issue
[Redmi Note 9 ROMs, Kernels, Recoveries, & Other De] Communos:
Latest build is up.

https://cheems.mirrorbomt.workers.dev/0:/lineage-18.1-20210524-UNOFFICIAL-merlin-1.zip

Changelog:

It was reported that Video playback in apps and video recording with camera was broken, it has been fixed.

Screen recording lag has been fixed.

Misc Improvements.

SELinux Enforcing
[Redmi Note 9 ROMs, Kernels, Recoveries, & Other De] fsss:
Do we need to downgrade to e.g. 12.0.3 Global to install this ROM? Or is there a better/faster way to upgrade from the previous LineageOS build?
[Redmi Note 9 ROMs, Kernels, Recoveries, & Other De] Communos:
If you are on the last build that shipped with OSS vendor, you can just wipe dalvik cache internal data and flash the rom, no need of flashing 12.0.3 global. If you're not on the build with OSS vendor or any other rom that comes with it, you'll have to flash 12.0.3 global
[Redmi Note 9 ROMs, Kernels, Recoveries, & Other De] renthebat:
does it means that i can use this on miui 12.06 build? how to know about the oss vendor existance?
[Redmi Note 9 ROMs, Kernels, Recoveries, & Other De] Communos:
No, you cannot use it with MIUI 12.0.6 and know about the oss vendor existence? eh, all latest rom builds for merlin now come with it, they have it mentioned in the post, look out carefully. Atleast all upcoming LOS builds will be with OSS vendor.
[Redmi Note 9 ROMs, Kernels, Recoveries, & Other De] JCVillegas78:
Tried this Custom ROM, best experience so far, I would really suggest that you add a Screenshot gesture, like if you swipe 3 fingers down it will take a Screenshot instead of pressing physical buttons Power + Volume down. No problems so far, will edit if I had problems.
[Redmi Note 9 ROMs, Kernels, Recoveries, & Other De] infinitumomega:
@Communos thanks so much for this build! I will be trying it out soon. Would love if this eventually becomes official, but I understand everyone is busy :). I've been running stock with AFWall+ and seeing the number of connections it blocks to Xiaomi servers is making me sick :sick: I feel like there's no way to trust this phone without running a custom ROM.
[Redmi Note 9 ROMs, Kernels, Recoveries, & Other De] sgrb:
Thanks for the work done! Could you publish your recent changes (on github or somewhere else)? I have built this rom from source recently, but SELinx is still in permissive mode.

Also, I have discovered the cause of the clicking sound recorded through the main mic which was reported above by some users. It is an electromagnetic interference between NFC and microphone, disabling NFC solves the problem. Looks like NFC should be automatically turned off when mic is in use.
[Redmi Note 9 ROMs, Kernels, Recoveries, & Other De] Xwwz4wnn44444:
I'm using kraken ( the old version ) and I don't know if it comes with oss vendor or not

Do i have to reflash the firmware ?!
[Redmi Note 9 ROMs, Kernels, Recoveries, & Other De] rokdrigo@gmail.com:
Good afternoon, i have been used 2021/05/24 build great job, i found minor bug, when the WiFi is on and shut down the mobil data keep on with out work, if press the air plaine mode and turn on and turn off every thing works like a charm.
[Redmi Note 9 ROMs, Kernels, Recoveries, & Other De] MartectX:
Thanks for your hard work! Can I just wipe internal data and dalvik cache and then flash this AND keep all apps and my settings of apps or do I have to reinstall everything?

Thanks once more!
[Redmi Note 9 ROMs, Kernels, Recoveries, & Other De] xiaomi_user:
Hello, first, thanks for the work to build this ROM.

There are no Google Apps preinstalled, i read, perfect. Are the calls to google removed, so DNS Server, Time Server and so on?

Thanks for the answer.
[Redmi Note 9 ROMs, Kernels, Recoveries, & Other De] Nathcro:
Hello, I was tinkering for a few days to actually use lineage os in my device. I've flash multiple TWRP across these two days from xda forums, TWRP and PBRP works fine, what bothers me is everytime I install custom rom, when I reboot the system, it will go to fastboot after showing redmi logo with unlocked bootloader. I don't seem to know what's the case, but if I flash MIUI, it will work, not with other roms.

These what I've done:

Download Rom

TWRP (already installed) & vbmeta ( https://xdaforums.com/t/vbmeta-img-...omi-redmi-note-9-xiaomi-redmi-10x-4g.4218909/ )

Reboot to recovery

Wipe DATA (the right button in TWRP)

Reboot to recovery again

adb push file or copy rom zip to /sdcard or internal storage

Install Rom

Wipe data and not wipe data already tested with no avail

Reboot to system

My problem is, is it really possible to install lineageos? I've tried to install lineageos17 which is fail with logs arround the line of Error 7, and then /product (no such file is found) or something like that. My device is Redmi Note 9 Helio G85, is it not compatible? or should I try using GSI treble rom?

I've also tried to downgrade to MIUI 12.0.3.0 from 12.0.6.0, I downloaded 12.0.1.0, but haven't tried it yet.

Any help is appreciated, my pc is linux based, so if possible without much tinkering to move to windows. Thank you.
[Redmi Note 9 ROMs, Kernels, Recoveries, & Other De] xiaomi_user:
@Nathcro

Hello,

I had the problem yesterday too, exactly the same, only Redmi and sometime Recovery again.

At https://wiki.lineageos.org/devices/beryllium/install is the tutorial, more precisely this paragraph:

Installing LineageOS from recovery​

Download the LineageOS installation package that you would like to install or buildthe package yourself.

Optionally, download an application package add-on such as Google Apps (use the arm64 architecture).

If you are not in recovery, reboot into recovery:

With the device powered off, hold Volume Up + Power. Keep holding both buttons until the “POCO” logo appears on the screen, then release.

Now tap Factory Reset, then Format data / factory reset and continue with the formatting process. This will remove encryption and delete all files stored in the internal storage, as well as format your cache partition (if you have one).

Return to the main menu.

Sideload the LineageOS .zip package:

On the device, select “Apply Update”, then “Apply from ADB” to begin sideload.

On the host machine, sideload the package using: adb sideload filename.zip.

check

Tip: If the process succeeds the output will stop at 47% and report adb: failed to read command: Success.

(Optionally): If you want to install any add-ons, repeat the sideload steps above for those packages in sequence.

So, you have to go into recovery and then sideload to adb and install the system from the computer to the phone.

adb sideload lineage.zip

With this the reboot in LineageOS worked immediately. Stock MIUI was 12.0.3 for me.
[Redmi Note 9 ROMs, Kernels, Recoveries, & Other De] rozsalyib:
Hello,

I'd like to thank the LineageOS Team for their work put into this ROM, I successfully flashed from miui 12.0.6.0 to LineageOS.

By now with all the hurdles placed by Xiaomi to deter average users to flash to a custom rom, I'm not sure if I'll ever buy a Xiaomi again. It was fun but it's too much time spent reading/testing/tinkering for somebody who's doing this every now and then.

Regards from Toronto, Canada
[Redmi Note 9 ROMs, Kernels, Recoveries, & Other De] TheAegidius:
Hi @Communos, I just wanted to thank you for this build. I have installed it about one month ago and I'm loving it. The only problem I've found so far is that I can't record videos. As soon as I press the record button the preview freezes and the produced video doesn't play.
[Redmi Note 9 ROMs, Kernels, Recoveries, & Other De] MyBrainIsAStrainer:
Out of curiosity: Was this this any particular app? Because I'm normally using OpenCamera (with the Camera2-API) and I don't recall any issues with any of the custom ROMs I tried.
[Redmi Note 9 ROMs, Kernels, Recoveries, & Other De] TheAegidius:
Not a particular one, the default that came with LineageOS.
[Redmi Note 9 ROMs, Kernels, Recoveries, & Other De] :
Thank you @Communos for this build!

The download link for the ROM no longer works (download quota exceeded).

EDIT: fixed!
[Redmi Note 9 ROMs, Kernels, Recoveries, & Other De] Priyash Patil:
Waiting for VO-WiFi fix to try this ROM. Thanks @Communos for this ROM and appreciate your work.
[Redmi Note 9 ROMs, Kernels, Recoveries, & Other De] Rika_san:
Rom download link not working
[Redmi Note 9 ROMs, Kernels, Recoveries, & Other De] NotVinx:
"Flash MIUI 12.0.1 ID or 12.0.2/12.0.3 Global in fast boot."

So I need to flash the whole rom from mi flash tool or can I just flash the vendor of the same version. If only vendor works then how to flash vendor from fast boot ?

(Sorry for this noob question but redmi note 9 is much more complex than other devices.)

And yeah the link is not working pls update :(
[Redmi Note 9 ROMs, Kernels, Recoveries, & Other De] PatrykMis:
For almost month the link is dead. :(
[Redmi Note 9 ROMs, Kernels, Recoveries, & Other De] MyBrainIsAStrainer:
lineage-18.1-20210524-UNOFFICIAL-merlin-1

MediaFire is a simple to use free service that lets you put all your photos, documents, music, and video in a single place so you can access them anywhere and share them everywhere.

www.mediafire.com
[Redmi Note 9 ROMs, Kernels, Recoveries, & Other De] austerrific:
Link for downloading the ROM is not working.
[Redmi Note 9 ROMs, Kernels, Recoveries, & Other De] minicm94123:
full rom ._.
[Redmi Note 9 ROMs, Kernels, Recoveries, & Other De] cvzalez:
Congratulations for the good work, I wonder what it takes to make this ROM Lineage OS official? Best regards
[Redmi Note 9 ROMs, Kernels, Recoveries, & Other De] Communos:
I've updated the link to the latest build in the post itself.

Happy flashing ;)
[Redmi Note 9 ROMs, Kernels, Recoveries, & Other De] :
Is this the same build as the previous one ? Or is it a completely new build ? If new then what is changed in this build ? Great work btw :)
[Redmi Note 9 ROMs, Kernels, Recoveries, & Other De] :
Can I report bugs here ? (No custom kernel, root or anything)

This is a probabilistic issue, I use gesture navigation, on note 9. Sometimes I cannot swipe up to open the recent apps menu. The other gestures work, but only the 'swipe and hold' to reveal recent apps doesnt work. It gets stuck in animation mid way and then goes back to the previous position before the swipe was attempted.

Sorry for the long message, and for not sending the log file, the issue only happens a few times in a couple of days.
[Redmi Note 9 ROMs, Kernels, Recoveries, & Other De] jonezy82:
I found a bug in my device, BT MAC address seems wrong.

Pairing and file transfers still work.

Anyone else have same possible issue?
[Redmi Note 9 ROMs, Kernels, Recoveries, & Other De] Communos:
Media playback fixed for some apps,

Kernel upstreamed

VoLTE fixed for all carriers

Misc performance improvements.

Also to mention the fact that the latest build is by "@chcepizze on telegram".

I've stopped building roms due to me being overburdened by exams. I'll still be updating the links here with builds by pizzeria.

Thank you all for the support!
[Redmi Note 9 ROMs, Kernels, Recoveries, & Other De] sgrb:
Thank you for the work performed, but where can I see the last fixes you have done in the source code? The github repos referenced in the first post seem to be outdated (last update about 6 months ago for device tree).
[Redmi Note 9 ROMs, Kernels, Recoveries, & Other De] Max@2245:
I need to know that I am on miui 12.0.8.0 , do I need to downgrade to miui 12.0.1.0 or I can just flash this directly.

It's my first time.
[Redmi Note 9 ROMs, Kernels, Recoveries, & Other De] minicm94123:
downgrade to miui 12.0.1 ID for full compatibility
[Redmi Note 9 ROMs, Kernels, Recoveries, & Other De] athenason:
This rom works perfectly, except for one little thing for me. I have location access enabled and location on, but osmAnd and google maps both cant get my location. They both have permissions so I am slightly confused. Any help would be greatly appreciated I know you are all very busy :)
[Redmi Note 9 ROMs, Kernels, Recoveries, & Other De] cvzalez:
Lineage don't use Google services, so it won't use Google Wifi Location or Cell Tower Location Services from Google, but it should use the UnifiedNLP protocol to get location from several plugins, Mozilla Wifi Location Services, Cell Tower Location services etc, there's several modules, check F-Droid app store for UnifiedNLP and it should appear a list. If you don't have this location protocol installed then will be only possible to have location by GPS what is not battery friendly nor is as fast, there's a side project called MicroG that goes even further, not only replace Google Location services with UnifiedNLP modules but also simulates Play Services making possible to receive Google Services Notifications, but with lot more control and way better battery life. This phone Redmi Note 9 (Mediatek CPU) is not officially supported by Lineage or Lineage for MicroG, if that wouldbe the case, then free easy installed ROMs with everything working would be available, so or you ask this developer to make this Lineage port to have MicroG support (it needs signature spoofing on the ROM) or we must do it by ourselves, I myself will try to install Lineage and MicroG later when I have more free time too. But would be awesome if the develloper would bake it already in this ROM. Best greetings, and Many Thanks for Who's making the hard work porting Lineage to Redmi Note 9!
[Redmi Note 9 ROMs, Kernels, Recoveries, & Other De] Kebel:
Communos sir proooo!!! I am on the global version miui 12.5.1 stable, I want to know if I can install the ROM or do I have to wait for an update?
[Redmi Note 9 ROMs, Kernels, Recoveries, & Other De] athenason:
Thank you so much for this reply! I have microg installed (I used magisk and lsposed for signature spoofing) and following this I have installed unifiedNlp as well as the Mozilla back end installed off fdroid. It works like a charm and I like that I can toggle them in microg. Thank you for your reply :)
[Redmi Note 9 ROMs, Kernels, Recoveries, & Other De] athenason:
Also can I ask, if you do port this will you try going official with microg?
[Redmi Note 9 ROMs, Kernels, Recoveries, & Other De] cvzalez:
If I can yes, I think we all should after all is Open Source based software / ROMs. At least a version with and without.
[Redmi Note 9 ROMs, Kernels, Recoveries, & Other De] athenason:
I think the only thing that would make this ROM better is OTA updates, however I know its tricky. I'm just worried about how a dirty flash would work. It would be awesome if lineage would add support for this model like the previous notes :)