yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi MIX 4] abcezx:
Consolidating some errors from this post and me as well

1. Battery: while mine doesn't die overnight, battery could be better

2. Sometimes ANX camera can't connect to the camera, but this only happens to ANX

3. Auto screen punch hole during selfies sometimes rotates 90* (leaving the hole on the left side of the screen)

4. Sometimes phone would reboot randomly, I had this for like 2 per week,
[Xiaomi Mi MIX 4] SanHelios:
I can confirm issues 2) and 3)

Issue 3 often occurs during video calls.
[Xiaomi Mi MIX 4] abcezx:
I can't find system partition anymore in TWRP and mounting (showing system and system_ext) changes nothing, any idea?
[Xiaomi Mi MIX 4] Inkypen:
Hey everyone, for some reason I don't always get a notification that someone has posted here. Not just this thread but most threads on XDA.

In any case I've still been working on this ROM, I have a new update for testing. It's been updated to use the new MIUI 14 vendor and I've removed a whole bunch of Xiaomi services that don't work under AOSP. MIUI 14 firmware is also included in the ROM.

Although flashing over an existing install is perfectly fine (tested by myself) I'm not going to push this build to the OTA system as it could be considered a "beta" build.

lineage-20.0-20230202-UNOFFICIAL-odin.zip

drive.google.com

A few people have commented about bugs with the camera/media, I'm not able to reproduce anything on my end. If I can't reproduce it and nobody sends me a log then there is zero chance of it getting fixed.

Also the thing with the camera dot sometimes being on the wrong side, my java skills are terrible so if anyone wants to volunteer to fix it then go ahead :)
[Xiaomi Mi MIX 4] abcezx:
Imma test this right now.

Is Gapps included in this beta build? Which one should I use if it isn't? Thanks for the ROMs
[Xiaomi Mi MIX 4] Inkypen:
Sorry, forgot to mention. Gapps included.
[Xiaomi Mi MIX 4] santimaster2000:
Hi ! First of off, thanks for your work, about the bugs, how should go about making a log for you took at ? Thanks !

Also, another bug that I have not seen anyone mention, QR scanner doesn't work when trying to launch it from my web browser (Firefox), it just shows a black screen.
[Xiaomi Mi MIX 4] Dominic9811:
Hey there, I have just updated to los20 from los19 and it's actually eliminated some of the bugs i had encountered for a while now. I think a13 theming is lacking a little regarding accent colors. Does anyone know a way to set truly custom accent colors in the wallpaper & design settings? Pls don't recommend LWP+ i tried that and it's not really what i am looking for.

Thanks for you hard work Inkypen!

EDIT:

I found a way so this post is now kinda useless.

For anyone wondering how I got what I wanted - theres an app called Repainter with which one can customize all system colors and even make pure black background colors for oleds.
[Xiaomi Mi MIX 4] er453r:
OK, so @Inkypen I have been daily driving the latest "beta" for 3 days now and:

battery drain is gone :)

media/camera handling errors still happen - though evidently less often - I am still trying to find a reproducable way to force the error and log it

everything other works - google pay, quick charge, wireless charging, google assistant, bluetoth, screencasting etc... everything is OK :)
[Xiaomi Mi MIX 4] Dominic9811:
Hey there I have an issue with safetynet not passing. The CTS profile check always fails, is there a way to fix this?

EDIT:

With Play Integrity checker I only get MEETS_BASIC_INTEGRITY.

MEETS_DEVICE_INTEGRITY fails.
[Xiaomi Mi MIX 4] Oxofrmbl:
it is because of some server side changes google did for safety net. should be fixed in next build.
[Xiaomi Mi MIX 4] Dominic9811:
Oh ok, thank you, I took a look at this for myself and thought it might be because the device fingerprint changed from pixel 5 (los19) to M2102K1G (los20)
[Xiaomi Mi MIX 4] Inkypen:
Got another beta build for you to try with quite a few fixes/additions:

Safetynet issues are due to some changes Google did to their safetynet servers, this is now patched.

Fingerprint sensor not reacting unless you move your finger slightly is fixed

Lockscreen charging info added (was in last beta but I like the feature lol)

Github user KawaiiZapic was kind enough to have a look at the java code for the camera hole and has adjusted it so hopefully no more issues switching portrait/landscape modes

Updated Qualcomm SOC system blobs to newer versions (LA.QSSI.13.0.r1-09000-qssi.0)

Mark Akash ported Qualcomm's framework boost to AOSP, I've made the adjustments to enable this in Lineage (there is now a performance mode available in battery settings)

Also thanks to @Kingzak34 who managed to get me a log of the random media freezes, this is not an isolated problem and some devs I know have the same issue on their Xiaomi lahaina devices. Hopefully a fix can be found soon.

lineage-20.0-20230218-UNOFFICIAL-gapps-odin.zip

drive.google.com
[Xiaomi Mi MIX 4] Dominic9811:
Is timelapse in ANX Camera not working a known issue?

EDIT: I can provide logs if necessary.
[Xiaomi Mi MIX 4] Dominic9811:
For some reason i still don't pass either play integrity nor safetynet tests. I have installed universal safetynet fix and shamiko in Magisk. Can this be solved?
[Xiaomi Mi MIX 4] Oxofrmbl:
Did u activate zygisk in magisk?

It works fine here with Magisk Delta and safetynet Fix Mod from HuskyDG
[Xiaomi Mi MIX 4] Dominic9811:
Yes Zygisk is activated and i have USF 2.4.0 installed. I do get basic integrity but device integrity fails. I will try installing a modded version of 2.4.0 i found on github later today.

What is Magisk Delta though?
[Xiaomi Mi MIX 4] Oxofrmbl:
Magisk delta is unofficial fork of magisk with a few small differences. You can find it if you google. It's from HuskyDG.

Edit: i mainly use it because it supports some early mounting stuff which is beneficial for the Dolby modules i like to use.
[Xiaomi Mi MIX 4] Dominic9811:
Oh ok so I guess I don't need that I only use JDSP.

I flashed a modded safetynetfix i found on kdrag0ns issues page and now play integrity checks verify how they should.
[Xiaomi Mi MIX 4] SanHelios:
Thx @Inkypen ... Testing it out. And it really seems great. Can i find a beta of this kind without build-in gapps? That would be great. Thx in advance.
[Xiaomi Mi MIX 4] Inkypen:
I have a test version of the kernel which will hopefully solve the random freezes when using multimedia apps.

You need to reboot into bootloader mode to use this.

Use this command to temporarily run the kernel (will be lost on reboot)

fastboot boot boot.img

Use these commands to permanently install the kernel (Custom recovery and/or root will need to be reinstalled)

fastboot flash boot boot.img
fastboot reboot

Download it here:

boot.img

drive.google.com

There also appears to be some issue with ANX crashing after taking a photo but other photo apps aren't affected. I'm investigating it at the moment, hopefully I figure it out quickly :)
[Xiaomi Mi MIX 4] Kingzak34:
Can I try the kernel on Evo X ?
[Xiaomi Mi MIX 4] Inkypen:
It should work no problem, all the ROMs share the same kernel after all. If you're concerned that it might not work then use the first command which will just boot the kernel and won't permanently change anything on your device.
[Xiaomi Mi MIX 4] Kingzak34:
Thank you for your answer I know but since I don't have a computer on hand I'll flash it and pray 😂

Also I just remembered that I had issue with ANX shooting 4K 60 crashing after 2 or 3 sec recording. Have to try 3 or 4 times to get it to work. I'll try to log it
[Xiaomi Mi MIX 4] er453r:
Hi @Inkypen - I've been testing the new kernel for 2 days now and can pretty confidently say that media issues are gone! :D

Everything (except for ANX wich crashes a lot) else works great - no battery drain, Google Pay, Screencasting, Bluetooth - everything is ok.
[Xiaomi Mi MIX 4] lonpk:
Brother, do you have a version without Google service
[Xiaomi Mi MIX 4] yucleto:
Hi, in which forum I can get support for Evolution-X ? some bugs, from now I get a update OTA message all the time but cannot download anything and no new update in GitHub to apply !

Thanx !
[Xiaomi Mi MIX 4] xtacb4:
Hi!

Regarding the ANX, is there any known workaround or alternative app that is able to use all 3 cameras?

edit: some issues I've been experiencing since flashing this rom and even now after flashing this kernel, are ANX just frezzes when I select the .5x camera. And after taking a picture with the regular or tele lens, it closes, the picture is saved tough, but its annoying as hell.

What can I do to help troubleshoot this issue? I'm just a power user though, not a programmer, I could provide logcat or something? Please let me know.

Thanks!

edit2: typo.
[Xiaomi Mi MIX 4] santimaster2000:
OK, media issues seem to be fixed, quick question, could you test if QR scanner works on Firefox ? Because for me it doesn't, it just shows a black screen.
[Xiaomi Mi MIX 4] er453r:
I've been using this GCam port https://www.celsoazevedo.com/files/android/google-camera/dev-bsg/f/dl129/ which works almost perfeclt - except the 0.5 lens does "squashed" photos - they look like they have been compressed horizontaly
[Xiaomi Mi MIX 4] xtacb4:
Thanks! Which apk and and config file are you using?
[Xiaomi Mi MIX 4] er453r:
Just the basic MGC_8.7.250_A11_V11_ENG.apk with the default config.
[Xiaomi Mi MIX 4] xtacb4:
Exactly the same for me on both issues. Media Fixed, Firefox qr scanner black image screen from camera.
[Xiaomi Mi MIX 4] Inkypen:
I'm quite aware of all the issues with ANX. In the Pixel Experience thread I explained my reasoning for swapping out ANX with Google Camera in the latest PE build. It's becoming an uphill struggle to keep ANX functioning correctly, the current implementation is A13 source code hacked to be backwards compatible with the A12 camera libs and with each monthly security patch this approach is becoming more difficult due to changes to AOSP brought in by Google. I can't use the camera libs from MIUI 14 because they rely on certain symbols which don't exist in AOSP and no open source equivalent exists.

I will try and get ANX working again but I can't promise anything. When Google finally decide to release the March security patch it's quite likely the next build will just have the Lineage Aperture camera app by default rather than ANX.
[Xiaomi Mi MIX 4] Inkypen:
Got some good news, got ANX working back to the same level as before (mostly everything works except for slow mo/hdr video recording)

Just waiting for March security patch to release :)
[Xiaomi Mi MIX 4] santimaster2000:
Woohoooooooo !!!!
[Xiaomi Mi MIX 4] xtacb4:
That is outstanding Inkypen! thanks for all your hard work, my fellow human being! As a former flashaholic, I can't wait to try it out!
[Xiaomi Mi MIX 4] Inkypen:
March update is out and pushed to OTA system. Google changed the camera API yet again for QPR2 but I worked around it and ANX is back. I also updated the firmware to MIUI 14.0.3.0

Check the updater app in System settings to get the update or download from sourceforge

xiaomi-odin - Browse /13/LineageOS at SourceForge.net

sourceforge.net

I also updated TWRP and fixed fastbootd, so that is now working in case you have need of it.

https://sourceforge.net/projects/xiaomi-odin/files/odin-twrp-3.7.0_12-3.img/download
[Xiaomi Mi MIX 4] SanHelios:
thanks to you @Inkypen made a clean flash today... so far so good, camera is back on, which is kind of nice and even rooted, i can use GPay. but there two things i noticed.

1) I think the recent apps button fell out of use. It doesn't show any recent apps

2) When pull down the top-menu, the clock is a bit off.

Maybe it's just me, since i use NikGapps...

Edit: 2) Never mind that one anymore.
[Xiaomi Mi MIX 4] fourrure:
Already installed it without any issue. Thank you, Inkypen!!
[Xiaomi Mi MIX 4] santimaster2000:
First of all, thanks for the update, but QR scanner remains broken on Firefox, just to try and help troubleshooting this, it worked fine on LOS 19.
[Xiaomi Mi MIX 4] Inkypen:
Try installing a camera app from the Play store such as Open Camera (also available on F-Droid in case you're Google free) and see if your QR scanner works. If it does then there is probably some overlay somewhere that needs to be set. Either way, I don't use Firefox so please send logs.
[Xiaomi Mi MIX 4] santimaster2000:
Sorry, this might sound dumb but, how am I supposed to scan a QR code using Open Camera ?
[Xiaomi Mi MIX 4] Inkypen:
Install Open Camera/Google Camera or some other camera app. Open Firefox and read a QR code. See if QR code scanning now works in Firefox. If it does work, send a log. If it doesn't work, send a log. 👍
[Xiaomi Mi MIX 4] santimaster2000:
Didn't work, here's the log:

--------- beginning of main03-29 00:02:38.207 963 963 E WifiHAL : get_wifi - Pastebin.com

Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.

pastebin.com

Also, thanks, now I know how to make a log :)
[Xiaomi Mi MIX 4] pyonhere:
Hello Inkypen, thanks for your ROM, but how can I open the calibration menu in the newest system? I have tried type *#*#6484#*#* in phone dialer but it doesn't work.

I asked this because I have my screen repaired and the fingerprint sensor seems to be disabled.
[Xiaomi Mi MIX 4] er453r:
@Inkypen just wanted to let you that I have been using the latest release since day one and everything essential works without a problem. I use daily:

google pay

bluetooth

screen casting

anx camera

no battery drain :D

no media issues

Could not be happier! Thank you again for your hard work!
[Xiaomi Mi MIX 4] Thai Tran aof:
When i flash Gapps package, my phone got a bug with incall volume, it's alway at max level when i receive or start a call.

I have tried to turn on/off the hearing aids option in call settings but the bug is still there.

Is there any solution for this, thanks
[Xiaomi Mi MIX 4] fares94400:
I have a similar issue except that the call volume appears to be at minimum but it's still loud.

The volume goes back to normal after pressing the "speaker" button a few times. ( This image is not mine btw, it's just to explain better)

As if the speaker source is selected by default. but when you actually select the speaker source the button is encircled like this

So I think it's like this : The volume is at minimum but is still loud BECAUSE it is the minimum volume of the speaker source even though you didn't turn on the speaker (the button is not encircled)

Sorry I'm very bad with english but I hope it got through. I'm running the latest LOS 19 GAPPS build. I didn't update to LOS20 yet because I don't like android 13.
[Xiaomi Mi MIX 4] fares94400:
Sorry for the double post. I decided to stop being stubborn and finally installed LOS20, I no longer have issue with call volume but now my phone keeps rebooting randomly. This never happened to me when I was on LOS19.

Please take a look.
[Xiaomi Mi MIX 4] botwinka:
after doing that and installing twrp windows no longer recognizes my phone in adb

Windows Device Manager reports unknown USB Device (set address failed.)

edit: it works on old intel laptop. The system I was previously trying it on has amd cpu
[Xiaomi Mi MIX 4] SanHelios:
It's just a wild guess, but have you tried to change the driver to "Android Composite Device"? I've been using AMD for years now and i never had any problems with Android and AMD.
[Xiaomi Mi MIX 4] fourrure:
No more updates? :)
[Xiaomi Mi MIX 4] NULLOBANDITO:
Haven't seen @Inkypen around in a long time, I hope they come back.
[Xiaomi Mi MIX 4] SanHelios:
Or you build one yourself.. i did but without the anxcamera.
[Xiaomi Mi MIX 4] vagenrider:
which camera you using on your build?
[Xiaomi Mi MIX 4] SanHelios:
Actually, i use the stock-camera and the gcam-mod.
[Xiaomi Mi MIX 4] vagenrider:
agree,gcam is always a good choice! I would like to ask you if you would like to share your build:)
[Xiaomi Mi MIX 4] SanHelios:
Yes, sure. How shall i share it?
[Xiaomi Mi MIX 4] vagenrider:
for example google drive is the best for that..you can post the link here or with pm:)
[Xiaomi Mi MIX 4] SanHelios:
Okay, i can build one tomorrow.

After the 20th of January, i will be back from vacation and can provide a build every monday. Hope that's okay.
[Xiaomi Mi MIX 4] vagenrider:
thank you very much!
[Xiaomi Mi MIX 4] SanHelios:
Here you go people...

Disclaimer

* Your warranty is now void.

*

* We are not responsible for bricked devices, dead SD cards,

* thermonuclear war, or you getting fired because the alarm app failed. Please

* do some research if you have any concerns about features included in this ROM

* before flashing it! YOU are choosing to make these modifications, and if

* you point the finger at us for messing up your device, we will laugh at you.

Dropbox

www.dropbox.com

includes

- boot.img

- LineageOS-Zip

- LineageOS-Zip.sha256

- LineageOS-OTA

What's working?

so far everything

Thanks 1000 times to @Inkypen

Without his repos, that would hve never been possible.

Device tree source code: https://github.com/Inkypen79/device_xiaomi_odin

Kernel source code: https://github.com/Inkypen79/kernel_xiaomi_odin

NikGapps

Downloads - NikGapps

NikGapps Website

nikgapps.com

Camera i recomment GCam-Mod

Recommended Stable Google Camera Port Versions

A list of suggested / recommended and known to be stable Google Camera apks.

www.celsoazevedo.com

TWRP

xiaomi-odin - Browse Files at SourceForge.net

sourceforge.net

For rooting i recommend

Magisk Delta and Play-Integrity-Fix

Flashinginstructions can be found on the first page
[Xiaomi Mi MIX 4] vagenrider:
thats some great news! @SanHelios can i dirty flash it over this Los build?
[Xiaomi Mi MIX 4] SanHelios:
I'm personally not the biggest fan of dirty flash, so i haven't tried it yet. I usually push the ota-file on the phone and select the the file in the updater-app.
[Xiaomi Mi MIX 4] vagenrider:
checked updater now but i cant see some manual ota select (trying to download but says need permission)
[Xiaomi Mi MIX 4] SanHelios:
Hmm.. i will fix the permission in the download-folder tomorrow.

Maybe i need to be more precise.😅 Download the ota-file onto the phone. In the updater app hit the 3-points-button in the upper-right-corner and select "local update" and then choose the ota-file.
[Xiaomi Mi MIX 4] vagenrider:
man im not that noob:ROFLMAO: there is no local update option here:LOL:
[Xiaomi Mi MIX 4] SanHelios:
Oh, i totally forgot about it.. actually, i meant this one. Hmm.. clean flash?
[Xiaomi Mi MIX 4] vagenrider:
hehhhe! yeah i think clean flash is the best..its A13,right?

edit: forgot to look at your screenshot...it is A13 and thats perfect because i hate A14
[Xiaomi Mi MIX 4] vagenrider:
flashed as update on los recovery then flashed gapps and then flashed your boot+magisk patched on fastboot and all works fine...respect man for your work and tons of thanks to inkypen for the time he sacrifice on this project!

hope you give us an update some times!:D
[Xiaomi Mi MIX 4] SanHelios:
Well, since i will have my device a little longer, i will come up with new build. :D

I'll go on vacation though and will return in the 20th of January. After that i think i will provide builds every monday. Let's see how that will run in the future. Little disclaimer, i don't have any clue of debugging... ;)
[Xiaomi Mi MIX 4] vagenrider:
what module you are using for your status bar?
[Xiaomi Mi MIX 4] SanHelios:
If you mean the icons in the status bar, i use the build-in icons. You can find it in the settings.
[Xiaomi Mi MIX 4] Inkypen:
Merry Christmas to those that celebrate it. This is the busiest time of year in my job, so I've been quiet on the development front. Here is a sneak peek of what is to come in the new year :)
[Xiaomi Mi MIX 4] vagenrider:
thank you so much again @Inkypen for keeping our great device alive! wish you Merry Christmas and wish health and hapiness to you and your family
[Xiaomi Mi MIX 4] Inkypen:
Here is an initial build of LOS 21. It's still in development so consider this to be a beta. There may be bugs or missing features but the major stuff is working correctly. Fingerprint enrollment screen is not showing the sensor circle but the sensor is working correctly.

xiaomi-odin - Browse /14/LineageOS at SourceForge.net

sourceforge.net
[Xiaomi Mi MIX 4] FiszL:
Hyi, wanna is this a14 or a11. Btw is there any gaming rom for mix 4?
[Xiaomi Mi MIX 4] juuma:
long press for torch in settings/System/Buttons and advanced restart in Power menu don't work any more,Network traffic monitor and Battery percentage don't show up,Battery status style can't change.
[Xiaomi Mi MIX 4] Inkypen:
Did you miss the bit where I said "There may be bugs or missing features"? In any case, these have all been fixed along with other improvements in the latest build.

xiaomi-odin - Browse /14/LineageOS at SourceForge.net

sourceforge.net
[Xiaomi Mi MIX 4] juuma:
sry for missing the latest update,all those have been fixed
[Xiaomi Mi MIX 4] SanHelios:
Happy New Year, everyone. As promised here, here is link to the latest LOS 20. Feedback is welcome.

Dropbox

www.dropbox.com
[Xiaomi Mi MIX 4] vagenrider:
I was waiting for it so much! thanks mate!
[Xiaomi Mi MIX 4] Just A:
Thank you for making this!

Also, I wanted to report a few bugs/odd behaviour:

1. When using 3 buttons for navigation Invert Layout will only apply after restarting the device.

2. One-handed mode settings menu is missing the "demonstration animation", instead a black rectangle is shown.

3. Status bar is buggy in general:

setting clock position might do nothing at all or cause it to disappear. It reappears in the correct position after locking and unlocking the screen.

Same can happen with battery indicator when battery status style is set to text.

Battery indicator icon is duplicated on the left side of the status bar in a slightly different style.

Clock might become smaller and/or vertically misaligned. Fixing it requires a phone restart.

Disabling battery icon, locking screen and then enabling it again produces a broken and misaligned icon, which is fixed after locking/unlocking. And there's probably more.

4. Playing around with colors in Homescreen settings can cause them to crash and lock the phone.

5. Not sure if a bug or a feature, but "Wallpaper & style" seems to be a different application (?) rather than part of settings, which means when it's opened from "recents", pressing back will send you to homescreen rather than going back to an upper settings level.
[Xiaomi Mi MIX 4] Inkypen:
Fresh builds with February security are up. It appears that LOS 21 is very close to being officially released as the code has progressed to the point where I don't have to pick patches from gerrit to get it to build. Most bugs should be fixed but a few minor ones may still remain.

Get the latest build

xiaomi-odin - Browse /14/LineageOS at SourceForge.net

sourceforge.net

KernelSU addon for those that require it, flash via TWRP recovery

https://sourceforge.net/projects/xiaomi-odin/files/Odin-KernelSU-v0.7.6.zip/download
[Xiaomi Mi MIX 4] ketan_patel25:
Hello Genius

i want to Xiaomi MIX 4 to remove wifi, Bluetooth, GPS, NFC, and camera

hardware parts we can remove but I want to remove them in ROM also

I try to find the system.img in stock firmware ROM but not available

Xiaomi Mi Mix 4 Stock Firmware ROM (Flash File)

Download the official Xiaomi Mi Mix 4 Stock Firmware ROM (Flash File) for your Xiaomi Mobile. We also provide all other Xiaomi Stock Firmware for free.

firmwarefile.com

How to remove in setting screen layout in button ui
[Xiaomi Mi MIX 4] fourrure:
I've been using this release for more than a month without any issue. Thank you for the hard effort
[Xiaomi Mi MIX 4] xtacb4:
Hi there

What's the current status? is this dead?