yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] photonmedia:
Not sure I follow?

If you mean Dark Mode, yes. It does.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Linez:
I meant pitch black dark mode. Does the rom have it or is it still using that dark grey-ish dark mode?

Also, since it's based on Demons tree, does it have enforcing selinux?
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] photonmedia:
Looking at the background in the Settings, it looks more Dark Grey. But the pulldown Notification Shade is definitely Black. Screenshots attached.

And yes, SELinux is Enforcing. Note, however, that this build is signed with Test/Debug Keys.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] fraunos:
Just noticed the hotspot doesn't work - checked the thread, dirty flashed the new build and now it does. Thanks for the builds [MENTION=1678030]photonmedia[/MENTION] !! Awesome, I love clean Android :)
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] M1LL3R:
Thank you.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] imna357:
does lineage has random reboots too? thanks in advance, tried almost all other ROM's but has all the random reboots, never tried lineage though
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Linez:
Okay, thanks for clearing those up. ?
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] photonmedia:
I have yet to see one in the 24 hours or so that I have been running this build. And I don't recall seeing any in the previous build I ran for several weeks.

YMMV
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Phonelix:
Feedback on lineage-17.1-20200429-UNOFFICIAL-cepheus

Again, I want to express my delight that the progress on Mi9's LineageOS ROM is ongoing.

I really love this ROM because its a Stock ROM which gives any user all possibilities for personal preferences, e.g. installing F-Droid instead of Google Play.

Here comes my feedback on identified bugs and missing standard features of the aforementioned ROM:

After a certain time of inactivity the display is not entering standby state, but seems to try it (introduced by playing a sound, deactivating the display, and activating the display again).

In "Display" wake-up with double click is not functional.

In "Display" unintentional wake-up is missing.

In "LiveDisplay" color profile (incl. color temperature etc.) and automatic outside mode is missing.

The build-in camara neither enables the usage of the wide angle nor the telephoto lens.

Other camera apps, e.g. OpenCamera, enable the usage of the wide/tele lense by multiple tapping on the "rotate camera" button. However OpenCamera crashes after one (lense changing) cycle.

Anything else (I tested) is working as expected.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] spydertony:
Hey OP, any chance you'll fix double tap to wake?
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Linez:
Probably just me, but the charging is slower in this rom than any other Mi9 roms.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] photonmedia:
Unfortunately no. I'm not what you would consider a "Developer" in that I don't have the knowledge to debug those types of issues. And my Full-Time job doesn't allow me the time to learn much in that arena.

DT2W is something I miss, but with LiveDisplay configured I find myself needing it less since I can just touch the FPS to unlock the device without "Waking" it first.

I just wanted to provide a current build of stock Lineage for us Mi9 users.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] spydertony:
Okay, thanks for the work. This is not easy stuff to do... But that's the only thing stopping me now from switching from miui. Would love bug-free stock android, so lemme hope someone picks up from here.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] photonmedia:
After flashing the ROM in TWRP, did you go to Wipe then select Format Data and type "YES" on the keyboard?
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] vuvantuan59:
No sir .
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] photonmedia:
Ok, that's the missing piece.

Once you have TWRP Installed again, do a standard Wipe Date then install the ROM.

BEFORE you reboot system, go back to the Wipe menu and click the Format Data button and it will prompt you to type "yes" to continue.

THEN, reboot the System.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Sapphirion:
Ive been using this rom for about a week and it has been working flawless, I really appreciate ops work, thanks you
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] biics:
doesn't it brick your device if you format data AFTER installing the rom?
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] AbboodSY:
nope
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Linez:
[MENTION=1678030]photonmedia[/MENTION], update wen sur? :D

/runs
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] imna357:
did you experience any random reboots? if not what firmware did you use? thanks
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Ladap:
Any1 get anx camera working on this rom?
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] photonmedia:
Not sure about Sapphirion, but I was originally on V11.0.6.0.QFAMIXM (Available HERE)

No random reboot for me. I've been rocking the 4/29/2020 build for the past month.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] photonmedia:
I just tried flashing the 182 build of the Camera and the VendorLibs Add-on and it's a no-go. I have run an older version of ANX on an older build of LineageOS.

Not sure what the deal is now.

You aren't likely to find a lot of love for ANX here on XDA. Best I can tell that group of Devs was kinda banished for soliciting payments or something...

OpenCamera is a nice App, but I find the stock Lineage Camera to be pretty capable.

Apparently now the ANX Installer hides/removes the stock Camera app and when uninstalling ANX, it fails to restore the stock Camera.....awesome.....
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] photonmedia:
In case anyone screws around and tries to install ANX and lets it remove your stock LineageOS Camera (like I just did), here's the Snap.apk I just extracted from this build so you can get it reinstalled....
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Ladap:
GPay doesn't work, card is added, NFC is turned on, but payment cant be done :(
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] photonmedia:
I don't think it works on any AOSP-based ROMS that are signed with debug keys. It's part of Google security (similar to it not working on rooted devices).

I could be wrong...
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Ladap:
It's shame :( I really like this clean stock ROM...
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] photonmedia:
IF I do another build of this ROM anytime soon, I will see about signing it with release-keys and see if that allows Pay to work...

Not maknig any promises. My day-job team is down to me and one other person thanks to Covid....
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Phonelix:
Some of us would be appreciated having this feature. However, updates enabling standard features are more important, aren't they?
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] photonmedia:
I agree, but as stated in my OP, I am no developer. Just compiling clean LineageOS for my own daily driver. And so far, I have not found a single "Standard feature" I miss, with the exception of DT2W.

That said, I cannot even get updated builds to compile using the Markakash or Demon000 sources that I used in the first couple of builds I did. And my day job and homestead upkeep in my "downtime" does not afford me much opportunity to look into issues.

You are more than welcome to take my initial info and run with it; debugging and adding features to release your own ROM. I take no credit for anything I've done here as it has literally just been compiling the sources created by others mentioned in my OP.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] k1l:
Look at the OP from Cozzmy13, he mentioned there what repos to use and what repopicks he uses. I stumbled over the hardware repo, too.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] photonmedia:
Thanks for the tip. I'll take a look. Honestly unless they've gotten DT2W working I'm not sure I feel a need to re-compile.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] k1l:
works for me.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Phonelix:
A great news that - thanks to k1l tip and your willingness - LOS 17.1 clean stock development is going to be continued here. :good:

Thank you all!
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] photonmedia:
New Build (2020-07-10) is live.

OP Updated with new link.

So far everything seems to work well, including DT2W/DT2S.

Thanks a1l and Cozzymy13 for pointing me to the hardware repo I was missing and the repopicks needed!
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Phonelix:
Feedback on 2020-07-10 ROM

Your new ROM It's running fine. Even screen activation via double tapping the display is now working flawlessly. :good:

However, I realised one setback: The camera lens selection (with Camera2-API) doesn't work anymore. :(

With your previous ROM this feature was still accessible (tested with Open Camera 1.48.1).
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] nicky-xda:
Thanks a lot for this ROM!

I'm on crDroid 6.7 at the moment and i'd like to try out the LOS 17.1. How can i change without loosing DATA / all my apps and their settings?
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Phonelix:
It's not a LOS 17.1 but a general question!

However, app data can be backuped on rooted devices e.g. by OAndBackupX which can be obtained from F-Droid.

If your device isn't rooted, you have to use the Android Debug Bridge (ADB) on a device with USB debugging enabled.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] d3fc0n1:
Does anyone has a clue on when ceheus will be officially supported by LOS?
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] photonmedia:
I'm not sure I am familiar with this setting. Was this a way to select which of the triple-lens cameras to use?

If so, I don't know that I have ever even played with that setting. You say it was there in the earlier builds?
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Phonelix:
Camera lens section

With Open Camera it's quite simple: To switch between the lenses, one has just to press the "Switch multi-camera icon" as explained on the Open Camera Help Page.

Yes! After an upgrade from your previous ROM to your current one the aforementioned button disappears and thus, switching between the lenses is no longer possible. :(

PS: Please note that the "Switch multi-camera icon" only appears when one selects "Camera2-API" in the Open Camera settings.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] baggino:
@ Photonmedia

it would be nice to have this function as there is also in the "iodéOS = LineageOS 17.1 + MicroG + adblocker" and that is - Swipe down to clear all in recent apps.-

I find it very useful
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Phonelix:
If you want extra features you should

not

use this STOCK ROM!

By the way, double postings are unwanted!
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] baggino:
since the request is not addressed to her, in my part it is customary to say: make your *****. greetings nosy teacher
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] d3fc0n1:
god...
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] photonmedia:
So I've been digging and I do not see any of the multi-cam settings in Open Camera. Today, though, I tried out UltraCVM by UltraM8 here and can confirm that there are options to enable additional lenses.

So far, I have tested the "Main" shooter and the Wide angle and both work.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] savinity:
Thank you first of all for the Build , i am using it since April 2020 is very good.

İ would like to update it.

İs it possible without data lost or completly fresh install? So i just upload the zip? And update?

or do i have tl install everything new?

thank you for the help and the work
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] photonmedia:
Typically, dirty flashing is not recommended. I have not tested it, but I do have the OTA Update Zip that was built along with the July 10th build.

If you want to test this OTA Update, please BACKUP your data first! Then flash this via TWRP.

Again, this is untested by myself so I cannot guarantee it will work without issue.

July 10th 2020 OTA Update Zip

If you do test this OTA update method, any feedback is appreciated!
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] savinity:
Thanks i will test this. Any recommendation for the backup or the software to do it ?

---------- Post added at 02:50 PM ---------- Previous post was at 02:19 PM ----------

I did it over ADB Sideload and it worked fine ;) Thanks :) 10.07.2020 is the last release.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] photonmedia:
You could take a nandroid backup from TWRP.

Or use XDA Developer SayantanRC's Migrate tool. I've taken backups with iht but not tried a restore yet. It seems legit, though.

Either way if you end up in trouble, just re-flash the build that was working for you and then restore your backup.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] savinity:
I did it over ADB Sideload and it worked fine Thanks 10.07.2020 is the last release.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] photonmedia:
Ok, good to know the OTA works!

Thanks for testing!
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] antykat:
Migrate works great. I used it a few times without problems. I even made backup in AOSP rom and restored in MIUI and vice versa. It's very good and useful tool.

Wysłane z mojego MI 9 przy użyciu Tapatalka
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] M.WeWe:
hello

I am stuck at fastboot or bootloop after following the installation step

I have tried several times here what I do

boot to fastboot then flash TWRP_V3.4.0.0

then reboot to recovery and Flash the VBMETA PATCHER

then reboot to recovery and wipe data, cache, system then flash

lineage-17.1-20200710-UNOFFICIAL-cepheus.zip

if I reboot to system now I get bootloop on mi logo

and if I did all the above with the extra step

to Format Data then reboot to system

i stuck in fastboot again and I have to unbrick with MiFlash &

cepheus_global_images_V11.0.6.0.QFAMIXM_20200420.0000.00_10.0_global_01caf423db.gz

I have tried three times till now

first time was cumming from miui 12 global

the other two from 11.0.6.0.QFAMIXM

do I have to flash V11.0.2.0.QFAMIXM from fastboot or Recovery at first?
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] photonmedia:
You should be starting with your device running MIUI V11.0.6 if you have not yet run an AOSP-based ROM on it.

Then you flash the VBMETA and TWRP both from Fastboot. I'm not sure of a VBMETA patcher that you would be flashing in TWRP.

Once you flash both of those in FASTBOOT, then boot into TWRP and do a base Wipe Data.

Flash the LineageOS build

Then go BACK into Wipe Data in TWRP and click the "Format Data" button. This will then require you to type 'yes' to continue.

If you miss this step, you WILL get bootloops.

Now you should be able to reboot system.

Install:

From TWRP:

1) Wipe Date (standard wipe)

2) Flash lineage-17.1-20200710-UNOFFICIAL-cepheus.zip

3) Format Data (Wipe -> Format Data -> type "yes"

3b) - OPTIONAL - Flash Magisk Zip for Root

4) Reboot to system
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] M.WeWe:
MAN, thank you for this tip it boot now :good:

is Magisk dual Stereo Mod working ?
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] photonmedia:
I have never tried that mod so I cannot confirm.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Phonelix:
New release within the range of vision?

I'm wondering if there has been any progress with respect to this wonderful ROM since the last announcement dated 2020-07-10.

Is a new release within the range of vision?
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] photonmedia:
I have not yet felt a need to compile a new version. The 7-10 build is still my daily driver.

I am in the process of putting together a new, faster PC. Once I have that done, I will build a new release.

Is there something specific that is included in LineageOS that you are having trouble with? I do not plan to add any additional features beyond stock LineageOS.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Phonelix:
That would be great!

The only one thing is still the problem that the LOS stock camera does not allow to switch between the lenses and to resolutions higher than 12MP.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Phonelix:
Bug report

Yes, I have trouble with at least one thing I'll explain in what follows.

Yesterday, I realized that the ROM shows a bug in the following set-up:

The screen is turned off

Two running apps are which are actively working in the background,

e.g. a warning app (A) and a navigation app (B)

App (B) has been started only after (A)

When now the most recently started app (B) tries to turns on the screen in order to report something the other app (A) is displayed in the foreground.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Phonelix:
Bug report

To preclude any user mistake, it would be fine if someone can confirm or not confirm the aforementioned bug.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] photonmedia:
So,

I have been running this latest build from the OP as my daily diver for a few months now and I have not noticed the app swapping mentioned in the previous post. I have not noticed any instance where one app replaces another when the screen turns on.

Has anyone else noticed this?
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] photonmedia:
MOD DELETE

Duplicate Post
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] 5dprince:
:highfive: Looking forward to LOS18 :)
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] momcilosystem:
mirror?

Hi friends!

Seems like image is gone from mega.nz.

Anyone still got this file or a mirror for it?

Highly appreciated!

Momo.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] photonmedia:
Not sure what happened, but I updated the link in the OP. You should be able to DL now.
[Redmi K20 Pro / Xiaomi Mi 9T Pro Questions & Answe] boomboomer:
Had my Mi 9T Pro for a few weeks now and after debloating with the tool and learning not to let any of the 'power saving' options in the MIUI free, it's pretty stable and excellent battery life.

However, it still does random things like kill Accubattery, Greenify or my smartwatch bluetooth connection - which I can't track down the cause of. MIUI optimisation is off and every power saving box is unticked but it still manages to kill things at will, which I might not then notice for hours. Permissions keep changing, even when I've gone and set an app to have every permission available, which I suspect is again the MIUI brutally killing apps and corrupting their settings in the process.

The MIUI is a bit of a learning curve, with some nice features, but it all feels a little like the bedroom coding of a custom ROM to me; it's not really mature and fully joined up - the bugs mean you can turn something off in one place but it still keeps happening 'cos of another setting elsewhere and the random s**t is quite annoying.

So, other then changing to a custom ROM and losing some of the hardware is there any way to permanently stop MIUI from being anything more than just a skin over Android 10?
[Xiaomi Mi 9 Questions & Answers] Vagabond123:
Hi everyone, my Mi 9 8gb 128gb China Version has died. It switched off during the night and I booted it up this morning, it switched itself off again. Same thing a couple of times now there's no life.

Flashed Eu rom with OTA, being working fine for 7 months no nothing.

No led

No Recovery

PC doesnt pick it up

Phone is ice cold even though its being on the charger for hours

One positive is that when its plugged into the power bank the bank doesn't switch off, means there is a connection. Will leave it on charge overnight and see what happens.

No blunt force trauma or swimming was involved with this device.

Any ideas?
[Xiaomi Mi 9 Questions & Answers] Pungasul:
Maybe a dead motherboard.

Don't know the cause. But it seems so by the looks of it. RMA it.
[Xiaomi Mi 9 Questions & Answers] Laptapper:
Hi

You've written no recovery boot (means pressing power and volume+ button)

Did you tested also buttons power and volume- to start fastboot mode?
[Xiaomi Mi 9 Questions & Answers] Bryceicle1971:
Glad I'm not alone

I'm glad I'm not the only one with a dead Mi9.

Mine died today after acting wierd an nothing booting?

Black screen an no battery light an no button input. Hard brick it looks like.

Im off to buy a $40 piece of crap on pay day for work an family if it is really dead.

Wierd? Same as you. At least charger indicates its charging but cold an black an no button command responses?
[Xiaomi Mi 9 Questions & Answers] Vagabond123:
RMA?
[Xiaomi Mi 9 Questions & Answers] Vagabond123:
Same here, do you have a global version?

Just bought a rocking 60$ POS, bezels like a crt, battery life a galaxy s2 and the charger buggered straight out of the box :cool:
[Xiaomi Mi 9 Questions & Answers] Vagabond123:
No button combos worked. Was able to boot into recovery just before the final failure.
[Xiaomi Mi 9 Questions & Answers] DJ_Thirtheen:
even press and hold power button for 20-30 sec no response?
[Xiaomi Mi 9 Questions & Answers] Vagabond123:
You can throw a minute or two depressed on all key combos, nothing.
[Xiaomi Mi 9 Questions & Answers] juanpard:
Hi.

I have the same issue. Did you manage to fix it?
[Xiaomi Mi 9 Questions & Answers] Vagabond123:
Hi, no still nothing. I'm waiting for the coronavirus to blow over a bit them send it to China to assess. I hope they will fix it under warranty, replacing a dead mainboard is not worth the $.
[Xiaomi Mi 9 Questions & Answers] lusp00ky:
Same issue. Dead phone. Tried power on for a minute, volume up and power, volume down and power, etc.

I bought mine just after it was launched, so zero RMA available. Also, I live in Brazil so the likelihood of someone being able to service it where I live is almost zero.
[Xiaomi Mi 9 Questions & Answers] head_djmusic:
Many times, this problem occurs because of the FPC of buttons! So, open the phone, disconnect the power button FPC and try to power on the phone with a metal needle by shortcut the pins in the port! Tested on many devices like Mi5, Mi6, Mi8!
[Xiaomi Mi 9 Questions & Answers] juanpard:
Hi, I tried searching for a guide video or something but did not find anything. Could you provide details?

Thanks
[Xiaomi Mi 9 Questions & Answers] Theknowledge:
Same problem

Hey I had the same problem my mi 9 8 GB ram 128 GB with installed miui beta for miui 10/or 11 ( I don't know exactly ...long time ago) than one day I plan some game and right away It became black and I couldn't use it no buttons no usb connection ... So after 6 months in my Drawer when I charge It my phone come back to live ( don't know how I did this )

So after 5 hours happy time it became back black very embarrassing
[Xiaomi Mi 9 Questions & Answers] TerryChung2001:
any update ? still dead ?
[Xiaomi Mi 9 Questions & Answers] giorgos13:
i have the same problem... i had some restarts with no reason and yesterday it died. i think its battery or motherboard. but the battery it was good . anyone who can help????
[Xiaomi Mi 9 Questions & Answers] Rustrobski:
I think it's "Return Merchandise Authorization"