yashsingh1/xdaforums huggingface dataset:
[Android Q&A, Help & Troubleshooting] Oswald Boelcke:
@alicyber76

I've moved your thread to the Android Q&A section. Additionally, I've removed the link to telegram from your post above!

As an exemption from the last bullet of rule no. 5 of the XDA Forum Rules, we grant only developers the privilege to share references to their social media in their own development threads and if thorough support is provided in the thread. These conditions obviously don't apply to this thread or you. Additional information is also available here:

Telegram Chat Channels - Way Forward

WhatsApp/Telegram Groups and Channels - Going Forward Hello XDA family! Just notifying all members that posting certain links to Telegram and other sites like WhatsApp is now allowed on XDA. What does that mean? We will allow links to messages...

xdaforums.com

Please refrain from sharing social media links in future unless done in your own development thread.

Thanks for your cooperation!

Regards

Oswald Boelcke

Senior Moderator
[Android Q&A, Help & Troubleshooting] alicyber76:
appreciate you

of course!
[Android Q&A, Help & Troubleshooting] alicyber76:
bump
[Android Q&A, Help & Troubleshooting] Lusorocaba:
TAMBÉM ESTOU PROCURANDO QUERO EXTRAIR MEU SUPER.IMG
[Xiaomi Mi MIX 4] Inkypen:
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.

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

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

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

Working:

Almost everything

Broken:

You tell me :)

Downloads:

https://sourceforge.net/projects/xiaomi-odin/files/14/LineageOS

https://sourceforge.net/projects/xiaomi-odin/files/13/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 14

ROM Kernel: Linux 5.4

Based On: AOSP
[Xiaomi Mi MIX 4] Inkypen:
Official TWRP thread:

https://xdaforums.com/t/recovery-11-official-teamwin-recovery-project.4374117

TWRP Notes:

Currently the official TWRP has issues installing on custom ROMs. It can be permanently installed on with MIUI but any AOSP based ROM causes it to hang. Until this gets fixed the only way into TWRP is to use the fastboot boot method. Also the official TWRP currently has some bugs (sideload not working, boot slot selection not working, vibration not working) which I have fixed. I've submitted these fixes to the official channels so the next official build should have these problems fixed. My unofficial TWRP build is available here:

https://sourceforge.net/projects/xiaomi-odin/files/twrp-3.6.1-odin.img/download

Extra Installation Notes:

TWRP cannot currently decrypt A12 partitions meaning you can't access your files in recovery mode. This is a TWRP problem, not a ROM bug. If you need to install something, either sideload it or use USB OTG.

Lineage 19 requires MIUI 13/Android 12 firmware. You can get that here: https://xiaomifirmwareupdater.com/firmware/odin/stable/V13.0.4.0.SKMCNXM/

Lineage 18 requires MIUI 12/Android 11 firmware, available here: https://xiaomifirmwareupdater.com/firmware/odin/stable/V12.5.12.0.RKMCNXM/
[Xiaomi Mi MIX 4] santimaster2000:
This is freaking awesome !

I know this may be a very dumb question, what's Screen off FOD ?
[Xiaomi Mi MIX 4] calledJona:
The fingerprint scanner while the screen is Off, with screen on it works
[Xiaomi Mi MIX 4] WMWLT:
I've heard that the selfie cam of MIX 4 doesn't work with LineageOS on telegram.Did this bug fixed??
[Xiaomi Mi MIX 4] WMWLT:
It means you can't use fingerprint when you closed your display of the phone
[Xiaomi Mi MIX 4] santimaster2000:
Oh OK, now I get it.
[Xiaomi Mi MIX 4] er453r:
@Inkypen I have managed to install this with OpenGapps pico and everything seems to look good - except for SIM cards :P None of the SIM slots are recognized... so uninstalling it now, since I need my phone :) BUT other than that I am super pumped - finally something other than MIUI and my beloved Lineage! Throwing you thank yous via PayPal in a moment :) Keep up the good work!
[Xiaomi Mi MIX 4] Inkypen:
Flash it again. I've discovered that if you flash to slot A you won't have SIM cards or sensors working but everything works properly when flashed to slot B. I have a feeling it's related to TWRP, for example it's currently a bit broken and can't be permanently installed on AOSP based ROMs.
[Xiaomi Mi MIX 4] er453r:
@Inkypen just tried both B and A (in that order) and still no SIM detected. I am using your TWRP from that thread :/

Also, how to change SELinux status? Lineage Trust app complains about it.
[Xiaomi Mi MIX 4] shulfei:
Great work. Thank you.

Cts profile failed, selinux off. And safety tests not passing.

Any idea how fix it?
[Xiaomi Mi MIX 4] er453r:
@shulfei and does the SIM card work for you?
[Xiaomi Mi MIX 4] shulfei:
Yes. Everything work fine.
[Xiaomi Mi MIX 4] Inkypen:
Not sure what is wrong here, or if it's even the same issue I have when flashing to slot A. I'll need logs to investigate. Also you can turn off the SELinux warning in Trust settings.

CTS profile and Safetynet failures are both related to SELinux. There is a hack to hide SELinux status from Google services but I forgot to add it in (although I did add in the hack for the unlocked bootloader check). It's possible to add the SELinux hack onto a running phone but it's complicated. Good news is I'm wokring on SE policy in order to get it fully enforcing.

Don't try to force enable SELinux to enforcing, your phone will quite likely stop working properly until you set it back to permissive.
[Xiaomi Mi MIX 4] shulfei:
Will be waiting your updates.

Thak you very much.
[Xiaomi Mi MIX 4] SanHelios:
I might be the one user, who is mostly excited with the prospect of leaving MIUI behind. :)

Buti have to ask,what kind of procedure, did you use to flash the LOS-Build? I tried it like the way described but, it did not go well. Btw, i come from MIUI 13.
[Xiaomi Mi MIX 4] shulfei:
Reboot phone to fastboot mode.

Boot to twrp (get Inkypen version twrp-odin.img) via command

"""

fastboot boot twrp-odin.img

"""

Wipe all data how wrote Inkypen:

"""

Formatting data (all user data is wiped, including internal storage) is a must if MIUI was previously installed and device was encrypted.

Format data (wiping is not sufficient, formatting requires you to type "yes")

"""

Install LineageOS.

Install gapps arm64.
[Xiaomi Mi MIX 4] SanHelios:
I mean between formatting data and install LOS, do you restart recovery?
[Xiaomi Mi MIX 4] MeTooCut:
No need to restart Recovery. But I suggest you to Install the Los/Gapps first, and than format data, otherwise the Rom won't boot. Also, make sure u flash the Rom on Slot B, although I had problem with flashing it on MiUi Beta. You can try it, anyway. Cheers.
[Xiaomi Mi MIX 4] paatha13:
New build succesfully installed .

Thanks for the update and especially gapps build this time.(y)View attachment 5536943
[Xiaomi Mi MIX 4] hjfisch:
Camera on 20 is closing very often at start .Need to reboot or closing in APP-Settings
[Xiaomi Mi MIX 4] Mrdream94:
If everything is working good as LOS19.1 then i don't see the problem to concentrate on LOS 20 :)

Anyway on LOS19.1 I had ANXcamera very laggy and very slow mostly on launch and if I zoom on videos. I had similar problems on MIUI. I just want to know if I'm the only one or if this is a "normal" thing. Maybe due to the MIUI firmware base? Let me know pls.
[Xiaomi Mi MIX 4] SanHelios:
No objections from me... :D
[Xiaomi Mi MIX 4] santimaster2000:
I would say wait at least a month maybe two, see if any new bugs pop up.
[Xiaomi Mi MIX 4] er453r:
If I have got a good camera working - that is all I need - lets go for LOS 20 :D
[Xiaomi Mi MIX 4] er453r:
@Inkypen and anyone who tried LOS 20 - I have just installed it and missed, that there no gapps included... What gapps package do you recommend for this build?

edit: just tried NIkGapps for T (13) and it won't install for me...
[Xiaomi Mi MIX 4] hjfisch:
Search for "[AUTO]LiteGapps_arm64_13.0_v2.7_official.zip"

Working for me with EvolutionX 7.2 . Only working with adb-Sideload .

I've updated from Android 12.1 to 13 with TWRP for 12.1 , but Gapps won't install.

So I format and reset System within Recovery and installed 13 and Gapps with

adb-Sideload and reboot to System afterwards . It is running quite good but sometimes I need to stop the Camera in the app-settings to make the camera work again. Autofocus is also not working correct.Hoping that it will be fixed in the next Update.

B.t.w. Nova Launcher is runnig great with 13.
[Xiaomi Mi MIX 4] er453r:
@hjfisch sideloading worked with NikGapps! thanks!
[Xiaomi Mi MIX 4] SanHelios:
Thanks @Inkypen

i finally flashed it... this time, i refused to flash magisk, just to see if i need root-access in my daily life.

Google Play said "device not certified" and Google Wallet and my banking apps won't start.

Anyone got some good advice?

I used Nikk-Gapps-Full btw.
[Xiaomi Mi MIX 4] hjfisch:
I go with EvolutionX 7.2 , which is the same as LOS 20 with Pixel Launcher and some extras .

No probs with google wallet and VR-Pay . The gapps I'm using are

"[AUTO]LiteGapps_arm64_13.0_v2.7_official.zip" .

All pass in Safety Net Test.
[Xiaomi Mi MIX 4] Inkypen:
I haven't made a gapps build for LOS 20 because I haven't yet found an A13 gapps package that doesn't replace all the LOS apps with Google ones. Because of this, I forgot to patch the ROM to pass safetynet. October security patch is out, so I've released an updated build that also includes safetynet patches. I installed Nikgapps T core edition and I confirm safetynet passes with no issues. I also found a patch that should fix fingerprint scanner randomly staying on screen (I was only ever able to reproduce this bug once)

@hjfisch EvolutionX has gapps already built in, no need to flash separate gapps package. This might be the root of your camera problems. I have no issues with camera on any of my builds, both AOSP camera and ANX camera in the new builds is working fine.
[Xiaomi Mi MIX 4] hjfisch:
Hello ,

Do I need to install the gapps now seperatly or are they build in in your new Release ?
[Xiaomi Mi MIX 4] Inkypen:
I don't know if this is a translation issue or what, I clearly stated I didn't make any gapps builds for LOS 20. If/when I start doing gapps builds for LOS 20, then "gapps" will be in the filename.

If you're talking about EvoX, that is a fork of Pixel Experience so of course gapps are built directly into the ROM.
[Xiaomi Mi MIX 4] hjfisch:
Thank's @ Inkypen for your quick reply .

Now I've one question left to the Community.

Is it somehow possible to add some custom Fonts to LOS without rooting ?
[Xiaomi Mi MIX 4] WiselyXIV:
Hello, where did you find the evolutionX rom?

I cannot find the evolutionX for odin anywhere, even on their official website.
[Xiaomi Mi MIX 4] hjfisch:
xiaomi-odin - Browse Files at SourceForge.net

sourceforge.net
[Xiaomi Mi MIX 4] hjfisch:
Back to LOS 20 now. Camera and banking apps are working now with the last Version. But Seedvault is crashing at start .
[Xiaomi Mi MIX 4] xtacb4:
Hi!

I'm currently in the last LOS19:

- Do I need to upgrate to odin-twrp-3.7.0_12-0.img before upgrading to LOS20? I currently have installed odin-twrp-3.6.2_12-1.img

- What is the smallest gapps package recommended for LOS20? or are already included?

- I'm planning on dirty flashing, aside of making a TWRP backup and taking it out of the phone before doing anything else, are there any other considerations/things to keep in mind/anything I'm missing?

Thanks!
[Xiaomi Mi MIX 4] subject4:
Hi, I found that the core version of NikGapps does not replace any LOS apps. Maybe that is the one you are looking for? I have flashed it with your newest LOS build and it is super clean and working perfectly!
[Xiaomi Mi MIX 4] hjfisch:
@ subject4

Does seedvault work for you ?

For me it is crashing at start .
[Xiaomi Mi MIX 4] subject4:
No, it doesn't. And it keeps notifying me that backup failed.
[Xiaomi Mi MIX 4] hjfisch:
Same for me .
[Xiaomi Mi MIX 4] er453r:
@Inkypen a little report from me - I have installed lineage-20.0-20221003-UNOFFICIAL-odin with NikGapps-stock-arm64-13-20220908-signed, used odin-twrp-3.7.0_12-0 and:

gapps installed only with sideload - they did not want to install normally

the ROM still overwrites the TWRP recovery with LOS one

OTA worked for me with the next released @Inkypen update :)

everything for daily use, banking apps, ANX, voice match - all work without issues

launchers sometimes die between lockscreens - this is an issue when using gesture navigation - only reset helps then

seedvault backup crashed and cannot be disabled @hjfisch

battery life when locked seems to be drained by something, but batter usage reports seem not to work...

Everything else smooth and nice :)
[Xiaomi Mi MIX 4] Inkypen:
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.
[Xiaomi Mi MIX 4] hjfisch:
OTA took nearly an hour , but all seems to work now , Thank's
[Xiaomi Mi MIX 4] Inkypen:
The first integrated gapps build is up! MindTheGapps contains only the core components needed to get GMS working and nothing else. It's the gapps package officially endorsed by the LOS team which makes sense as it's one of the LOS directors that maintains it :D

https://sourceforge.net/projects/xiaomi-odin/files/13/LineageOS/lineage-20.0-20221012-UNOFFICIAL-gapps-odin.zip/download

Sourceforge can be lightning fast or super slow depending on where in the world you are and which mirror it selects for you. It's still a lot better than what I used to use (Android File Host) which could have download speeds in the 100kb/sec range. Not a lot I can do about it unless you want to pay for file hosting 😁
[Xiaomi Mi MIX 4] SanHelios:
Thanks @Inkypen ... seeing my device doing an OTA-update was awesome. :D :D :D

So far no issues, that interfered with daily-driver usage.
[Xiaomi Mi MIX 4] er453r:
@Inkypen installed latest build via OTA - everything OK - Seedvault is fixed :)
[Xiaomi Mi MIX 4] Marko1000Marko:
Thanks for the awesome ROM! Any chance we could get signature spoofing support so microG can work properly? The lineageos sig spoofing patches are available here and info about how to include them here

I used LSPosed to get it on android 12 LOS but the LSPosed signature spoofing modules don't seem to be working on 13...
[Xiaomi Mi MIX 4] bitcoin_satoshi:
Thank you for this awesome ROM. Everything works, except two things I came across:

1 - sometimes when I launch Camera app, it can´t connect to the camera. I have to close the app and relaunch.

2 - with my bluetooth headphones Huawei Freebuds 4 - when I play media, headphones are connected and play. Then I put then in the case, they disconnect. Then I open the case, put them on, they connect, but when I hit play, the audio goes through the phone, even if they are connected. I have to manually go to media options, where the headphones are selected, then select This phone and then back to Headphones a then they work. Can somebody help me with this? It is really annoying...
[Xiaomi Mi MIX 4] inkbjuu:
The FakeGApps sig spoofing module is now listed as being compatible with Android 13! https://github.com/whew-inc/FakeGApps/releases/tag/4.2

Hypothetically this would mean that patches are not needed, although installing an Xposed module is an extra step, but this the usual functionality in LineageOS. Could be argued either way for including or not including patches, but for security reasons and to stay close to upstream Lineage decisions, I wouldn't consider it to be the best option.
[Xiaomi Mi MIX 4] symbianfan:
Please Help how to Root ? Twrp ben I don't see magisk zip.
[Xiaomi Mi MIX 4] AskHarrissss:
u can download by yourself
[Xiaomi Mi MIX 4] bitcoin_satoshi:
Found another bug - in Camera app, the video stabilization (Steady video) doesn't work for me. When I hit record, the app freezes and then crashes.
[Xiaomi Mi MIX 4] er453r:
That is probably the same issue as with slow-mo - it is a known bug with this rom.

@Inkypen I have noticed something wrong with Media API (my educated guess) in LOS13 releases - this has NOT happened in LOS12. Sometimes (this seem random, but frequent) when I have media app like VLC opened with video - then switch to another app - I can't play any videos in the browser, or open the Camera app (can;t connect to camera). If I then close all the apps in the overview - it starts working again.
[Xiaomi Mi MIX 4] Inkypen:
In the latest November build i tried to recreate this. I installed VLC, played a video and switched between camera, YouTube app and YouTube in a browser. It all seems to be working fine, perhaps it was a bug in LOS source as no one has brought this up on any of the other ROMs. I'm uploading the new builds now, should be available a bit later today.
[Xiaomi Mi MIX 4] er453r:
Great and fast as ever! Thank you!
[Xiaomi Mi MIX 4] Kingzak34:
I have same problem with reddit, twitter or browser sometimes twitter says that sound is used by another app and video cant play, sometimes on browser video wont play or in reddit, have to close everything and open back or restart the phone.

I had this on all ROM I tried (LOS, EVO X and PE)

I'll try to catch some logs to help
[Xiaomi Mi MIX 4] abcezx:
Hey @Inkypen , been using your latest LOS19 A12 build as my daily driver without a single problem :).

What would be a good procedure to move on to LOS20 A13 that you recently updated? Thanks. What about firmware since I'm still on A12?
[Xiaomi Mi MIX 4] robined:
I have this problem also, which I've logged in the pixel experience thread. For more stability / faster updates, is the lineage ROM better?
[Xiaomi Mi MIX 4] SpicyM:
On LOS 20, I have firefox and the Google Family Link app crashing sometimes.

Netflix makes an error (5.10) if I press +10s too often.

This did not happen on LOS 19.

Thank for the builds @Inkypen
[Xiaomi Mi MIX 4] robined:
I have this in pixelexperience as well
[Xiaomi Mi MIX 4] xtacb4:
Hi!

I just flashed TWRP odin-twrp-3.7.0_12-1.img then rebooted, installed lineage-20.0-20221116-UNOFFICIAL-gapps-odin.zip, flashed TWRP again using TWRP itself, and them installed Magisk-24.2.zip. No errors.

But when I boot into LOS there is no root, and there is no option to enable root in the developer settings.

For context, I had LOS19 lineage-19.1-20220910-UNOFFICIAL-gapps-odin.zip installed and rooted, including TWRP odin-twrp-3.6.2_12-1.img, all without issues.

Is anyone familiar with this kind of issue? perhaps I'm doing something out of order? What can I try/check, provide feedback/logs? (which kind? logcat? other/s?)

Thanks!

edit: Nevermind! I used Magisk app to patch odin-twrp-3.7.0_12-1.img and then flashed that in TWRP and it worked!(? i don't understand why it worked though, since I was installing TWRP after flashing LOS20 and then installing magisk.zip to patch the boot image, in that order).
[Xiaomi Mi MIX 4] SpicyM:
I add to the list a bug probably on google services that affects the playstore. It is disconnected with an empty icon in the top right corner instead of the menu. A restart solves the problem.

This is probably the reason why Family Link is not working. It's totally random.

I tried to reinstall gapps without success
[Xiaomi Mi MIX 4] SpicyM:
... and the round light on the fingerprint scanner that sometimes stays on and starts to annoy me.

If anyone knows how to disable it
[Xiaomi Mi MIX 4] abcezx:
Hey guys, I'm on LOS19 A12, do I need MIUI A13 Firmware before installing LOS 20 A13?
[Xiaomi Mi MIX 4] Mrdream94:
No, just flash
[Xiaomi Mi MIX 4] abcezx:
Thanks, I did it without waiting for anyone replying anyway, worked perfectly and nothing is lost except magisk
[Xiaomi Mi MIX 4] yucleto:
Hi, just installed, automatically it went to B partition, TWRP is no longer decrypting (the new version you got in here), what should I do ? Install again on Partition A ? This should make TWRP work again so I can install Magisk ? Sorry to bother on this noob question, trying to search for a solution without any luck ! Regards !
[Xiaomi Mi MIX 4] Mrdream94:
Give this command via ADB: adb reboot sideload

It should boot directly in twrp and ask for decryption password.

Let me know
[Xiaomi Mi MIX 4] yucleto:
It not, it booted in lineageos recovery and fastboot not working, thaks again
[Xiaomi Mi MIX 4] yucleto:
OK Fixed, installed TWRP directly from TWRP option, restarted in system, give me the option do decrypt and magisk installed ! THANX !
[Xiaomi Mi MIX 4] yucleto:
Hi, another issue password auto fill seems not be working, any advice?

Thanks !
[Xiaomi Mi MIX 4] SanHelios:
Happy New Everyone...

I'm curious, why did my LOS-updater not list the update of the 22nd of december? Do i need to flash manually?

Thx in advance.

Edit: Never mind... Just updated to January 23. Thx.. :)
[Xiaomi Mi MIX 4] bitcoin_satoshi:
Same here...
[Xiaomi Mi MIX 4] santimaster2000:
I'm also experiencing this issue on LOS 20, latest build with gapps, running Firefox, it only happens if I have for example YouTube running in the background, Firefox will display an error at launch and no kind of media would play, only after closing it (Firefox) and opening it back again will the issue go away, it doesn't happen all the time, but it happens enough for it to be noticeable.

@Inkypen thanks for all your work man !
[Xiaomi Mi MIX 4] er453r:
hey @Inkypen is there any other forum/place where you are communicating about your ROMs? just asking since there is little activity here and I see you're still doing the work on sourceforge and github - kudos to that! - I just would like to help testing / reporting issues

anyways - I've tried the newest January Lineage / PixelExperience ROMS - and they are both functionally flawless, but there are still 2 issues (in both ROMs) that still make me go back to Xiaomi.eu

Battery drain - the phones dies overnight if I forget putting it on charger - and battery stats show blank for that time - on xiaomi.eu I can easily last 2-3 days on moderate usage

Media/Camera handling - it is like others here report - camera sometimes is not able to connect, sometimes media can not play as if it was busy in another app

Other from that everything is miles and beyond better than anything on xiaomi.eu

Thank you again for your great work!