Development [ROM][13.0][UNOFFICIAL] LineageOS 20.0 for Xiaomi MIX 4

Search This thread

Kingzak34

Senior Member
Jan 5, 2011
3,090
1,538
South
Google Nexus 4
OnePlus One
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:

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

lonpk

New member
Feb 28, 2023
4
0
18
Xiaomi Mi MIX 4
有另一个beta版本给你尝试相当多的修复/补充:

  • Safetynet的问题是由于谷歌对他们的Safetynet服务器做了一些更改,现在已经打补丁了。
  • 指纹传感器没有反应,除非你稍微移动你的手指是固定的
  • 锁屏充电信息添加(在最后一个测试版,但我喜欢的功能哈哈)
  • Github用户KawaiiZapic好心地查看了相机孔的java代码,并对其进行了调整,希望在切换肖像/风景模式时不会再有问题
  • 将Qualcomm SOC系统blob更新到新版本(LA.QSSI.13.0.r1-09000-qssi.0)
  • Mark Akash将高通的框架提升移植到AOSP,我已经做了调整,以便在沿袭中启用它(现在在电池设置中有一个性能模式可用)
也感谢[用户= 3447252 ] @ Kingzak34 [ /用户],他设法让我得到了随机媒体冻结的日志,这不是一个孤立的问题,我知道一些开发者在他们的小米拉海纳设备上也有同样的问题。希望能尽快找到解决办法。

[ URL unfURL = " true " ] https://drive.Google.Com/file/d/1l5b8utdpaszpguejsslnlyctfsp_h3ss/view?usp=share_link [ / URL ]

有另一个beta版本给你尝试相当多的修复/补充:

  • Safetynet的问题是由于谷歌对他们的Safetynet服务器做了一些更改,现在已经打补丁了。
  • 指纹传感器没有反应,除非你稍微移动你的手指是固定的
  • 锁屏充电信息添加(在最后一个测试版,但我喜欢的功能哈哈)
  • Github用户KawaiiZapic好心地查看了相机孔的java代码,并对其进行了调整,希望在切换肖像/风景模式时不会再有问题
  • 将Qualcomm SOC系统blob更新到新版本(LA.QSSI.13.0.r1-09000-qssi.0)
  • Mark Akash将高通的框架提升移植到AOSP,我已经做了调整,以便在沿袭中启用它(现在在电池设置中有一个性能模式可用)
也感谢[用户= 3447252 ] @ Kingzak34 [ /用户],他设法让我得到了随机媒体冻结的日志,这不是一个孤立的问题,我知道一些开发者在他们的小米拉海纳设备上也有同样的问题。希望能尽快找到解决办法。

[ URL unfurl = " true " ] https://drive.google.com/file/d/1l5b8UtdpAsZPGUeJSSlnlycTFSP_H3SS/view?usp=share_link [ / URL ]
 

er453r

Senior Member
Jan 1, 2012
65
14
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.
 

lonpk

New member
Feb 28, 2023
4
0
18
Xiaomi Mi MIX 4
有另一个beta版本给你尝试相当多的修复/补充:

  • Safetynet的问题是由于谷歌对他们的Safetynet服务器做了一些更改,现在已经打补丁了。
  • 指纹传感器没有反应,除非你稍微移动你的手指是固定的
  • 锁屏充电信息添加(在最后一个测试版,但我喜欢的功能哈哈)
  • Github用户KawaiiZapic好心地查看了相机孔的java代码,并对其进行了调整,希望在切换肖像/风景模式时不会再有问题
  • Qualcomm socblob(LA.QSSI.13.0.r1-09000-qssi.0)
  • Mark Akash将高通的框架提升移植到AOSP,我已经做了调整,以便在沿袭中启用它(现在在电池设置中有一个性能模式可用)
也感谢[用户= 3447252 ] @ Kingzak34 [ /用户],他设法让我得到了随机媒体冻结的日志,这不是一个孤立的问题,我知道一些开发者在他们的小米拉海纳设备上也有同样的问题。希望能尽快找到解决办法。

[ URL unfURL = " true " ] https://drive.Google.Com/file/d/1l5b8utdpaszpguejsslnlyctfsp_h3ss/view?usp=share_link [ / URL ]

有另一个beta版本给你尝试相当多的修复/补充:

  • Safetynet的问题是由于谷歌对他们的Safetynet服务器做了一些更改,现在已经打补丁了。
  • 指纹传感器没有反应,除非你稍微移动你的手指是固定的
  • 锁屏充电信息添加(在最后一个测试版,但我喜欢的功能哈哈)
  • Github用户KawaiiZapic好心地查看了相机孔的java代码,并对其进行了调整,希望在切换肖像/风景模式时不会再有问题
  • 将Qualcomm SOC系统blob更新到新版本(LA.QSSI.13.0.r1-09000-qssi.0)
  • Mark Akash将高通的框架提升移植到AOSP,我已经做了调整,以便在沿袭中启用它(现在在电池设置中有一个性能模式可用)
也感谢[用户= 3447252 ] @ Kingzak34 [ /用户],他设法让我得到了随机媒体冻结的日志,这不是一个孤立的问题,我知道一些开发者在他们的小米拉海纳设备上也有同样的问题。希望能尽快找到解决办法。

[ URL unfurl = " true " ] https://drive.google.com/file/d/1l5b8UtdpAsZPGUeJSSlnlycTFSP_H3SS/view?usp=share_link [ / URL ]Brother, do you have a version without Google service
 

yucleto

Member
Mar 11, 2013
19
2
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 !
 

lonpk

New member
Feb 28, 2023
4
0
18
Xiaomi Mi MIX 4
Thx [ USER = 9382231 ] @ Inkypen [ / USER ] ...
Google服务没有选择。我需要删除谷歌服务
7f3d22fb859846af6807cd25d126f4ef.jpeg
 

xtacb4

Senior Member
Oct 11, 2010
136
31
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.
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.
 
Last edited:

santimaster2000

Senior Member
Dec 25, 2009
416
109
Buenos Aires
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:

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 :)
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.
 
  • Like
Reactions: xtacb4

er453r

Senior Member
Jan 1, 2012
65
14
Hi!

Regarfing 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!
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
 

Inkypen

Senior Member
Aug 19, 2018
511
1,562
London
Samsung Galaxy Note 4
Xiaomi Mi 5s
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.
 

xtacb4

Senior Member
Oct 11, 2010
136
31
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 :)
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!
 

Inkypen

Senior Member
Aug 19, 2018
511
1,562
London
Samsung Galaxy Note 4
Xiaomi Mi 5s
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

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

Top Liked Posts

  • There are no posts matching your filters.
  • 15
    2okPze5.png

    LineageOS is a free, community built, aftermarket firmware distribution of Android 12 (S), which is designed to increase performance and reliability over stock Android for your device.

    Code:
    #include <std_disclaimer.h>
    
    /*
    * 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.
    *
    */

    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. You will need to provide your own Google Applications package (gapps). LineageOS does still include various hardware-specific code, which is also slowly being open-sourced anyway.

    Base source code is available in the LineageOS Github repo. And if you would like to contribute to the project, please visit our Gerrit Code Review.

    GPL compliance:
    yG18r6g.png


    Working:
    Almost everything

    Broken:
    You tell me :)

    Downloads:
    https://sourceforge.net/projects/xiaomi-odin/files/13/LineageOS
    https://sourceforge.net/projects/xiaomi-odin/files/12/LineageOS
    https://sourceforge.net/projects/xiaomi-odin/files/11/LineageOS

    Installation:
    Reboot to recovery
    Copy LineageOS zip to internal storage
    Install LineageOS zip package
    Install [optional] a Google Apps package of your choice
    Format data (wiping is not sufficient, formatting requires you to type "yes")
    Reboot

    Important notes:
    GApps can only be flashed on clean installs.
    Formatting data (all user data is wiped, including internal storage) is a must if MIUI was previously installed and device was encrypted.

    Contributors
    Inkypen
    ROM OS Version: Android 12
    ROM Kernel: Linux 5.4
    Based On: AOSP
    6
    New builds are up:
    • June security patch
    • Kernel upstreamed to 5.4.197 and latest lahaina CAF tag
    • LHDC Bluetooth codec added (untested as I don't have a BT device that supports this)
    • Some ANX tweaks (should start a little bit faster)
    Regarding the conversation about the visible camera hole at maximum brightness, that's a hardware limitation. You must have seen Xiaomi's promotional image of the pixel array above the front facing camera showing the smaller pixels allowing light to pass through to the image sensor. A smaller pixel will not be able to shine as brightly as a larger one hence the slightly darker view on max brightness. MIUI gets around this flaw by displaying a sun symbol over the camera hole at max brightness. On a couple of builds I tried limiting the max brightness by about 15% so this wasn't noticeable but I had a few people in sunny areas complain about the change, so I reverted back. If it bothers you just turn the brightness down a little bit.

    Are there any plans to fix the widevine level from l3 to l1? I know that the China/eu Rom habe l1,so it should not be impossible to fix
    I've had L1 support since before I even released any builds. Download any media codec info app from play store and check for yourself.
    5
    New build is out, fixes seedvault among other things. Check changelog here: https://github.com/Inkypen79/OTA/commit/15f3c51b1ca99eaea2c026a47a6d0a02d3f5f583

    Turns out seedvault is a bug in Lineage, I used the main seedvault repo instead of the Lineage one and it's all working. This was fairly straight forward to fix but for future reference please, please, please provide build version and logs when giving a bug report.

    @subject4 Thanks for your suggestion. Nikgapps is actually what I would personally recommend if someone needed a gapps package, but unfortunately it can only be flashed on top of an installed ROM and is not suitable to integrate into a build from source.
    5
    New test build is up. It has a new version of minimal gapps installed and it also passes safetynet from clean flash without the need of root or any additional patches or modules. OK Google detection is now working with the screen switched off. Biggest change is a much improved ANX camera experience. There are no more crashes when using certain camera modes, the only thing not working is slow motion. I'm considering making ANX the default camera for all future builds (gapps and non gapps) and I would appreciate any feedback about this change.

    Build is here: https://sourceforge.net/projects/xi...220426-UNOFFICIAL-gapps-anx-odin.zip/download
    5
    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.