yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mix Fold 2] AndroPlus:
@frcraig

Ignore "After restoring stock images", since other devices can't receive OTA before do that (updater detects root and block OTA) but Xiaomi allows OTA download even when rooted.
[Xiaomi Mix Fold 2] frcraig:
AndroPlus: Thank you very much! I googled "Magisk stock backup does not exist" for hours and none of the articles mentioned that you can just ignore "after restoring stock images" on Xiaomi devices. You are a genius. It worked like a charm!
[Xiaomi Mix Fold 2] dee163:
Can anyone provide feedback on this new software update
[Xiaomi Mix Fold 2] frcraig:
Before the update the font on the folded screen was so small that I found myself unfolding the phone just to read emails and text messages. After installing the update the font on the folded screen is much larger and much more readable.
[Xiaomi Mix Fold 2] knives of ice:
so with the OTA what steps did you do to install it since you are rooted with Magisk? it sounds like you can just install it normally, even if you are rooted. what did you end up doing, did you turn off magisk at all or anything?
[Xiaomi Mix Fold 2] dee163:
I recently updated the software ND the only visual change I noticed is when you transition from fold to unfolded or vice versa you are required to swipe. This is better than the app you are using dating you have to restart to view.

Home screen seems to fit more , not sure but it seems the fonts are smaller
[Xiaomi Mix Fold 2] frcraig:
You must have some setting enabled that I don't, because after the update I can switch from folded to unfolded and vice versa without having to swipe or unlock.
[Xiaomi Mix Fold 2] dee163:
I have MIUI optimizations turned on
[Xiaomi Mix Fold 2] frcraig:
I first turned off "automatically install updates" in Developer Settings. Then I went into Settings and clicked on my MIUI 13.1.16 version and it prompted me to check for updates. When it found an update it asked if I wanted to download it and I clicked yes. When it finished downloading it asked me if I wanted to install and I clicked yes. It quickly downloaded a relatively small 1.8 GB incremental update and began to install it and part way through it stopped and said "error installing MIUI ROM update". I went back and checked for update again and again was prompted to download the update. This time it downloaded a much larger 5.4 GB update and when I chose to install it took about twenty minutes to install but finished and then prompted me to reboot. I DID NOT reboot. Instead I opened the Magisk Manager app (I hadn't turned off Magisk or any of its modules) and within the Magisk Manager I chose to "install" Magisk (not 'install Magisk app) and I was then given three choices as to how to install Magisk. I chose "install to inactive slot after OTA"). When this completed within Magisk I was prompted to reboot my phone and it took about five minutes to boot back up (just like it did when I first flashed Magisk) and the phone was then up and running with the update installed and with Magisk still installed and all its modules still installed and active.

Xiaomi will allow OTA updates with root, but apparently only full, not incremental updates. When it first tries to install an incremental update it will fail, but just do it again and this time it downloads the full update and you are good to go.
[Xiaomi Mix Fold 2] knives of ice:
awesome, really appreciate the detailed instructions

now, I just need the update as it still is telling me there is no update available.
[Xiaomi Mix Fold 2] frcraig:
On other phones I have downloaded the update from firmware repositories, placed it in my system updates folder, and then just went back into check for updates and it finds it on the device and asks you to install. Both the smaller 13.1.21 incremental update and larger 13.1.21 full recovery ROM are already available online. You could try placing the incremental update in your folder and see if it rejects that installation and then automatically downloads the full package.
[Xiaomi Mix Fold 2] frcraig:
Ah - and I have them turned off because I found they interfered with my third party notifications.
[Xiaomi Mix Fold 2] knives of ice:
do you know where the system updates folder is located? i am using root file browser and can't find it anywhere. maybe its called something not as obvious that I'm missing
[Xiaomi Mix Fold 2] frcraig:
In Root/Data there are folders called "incremental" and "OTA_package". Mine are both empty, but I think the system deletes the packages after the update is installed. You could try putting the incremental download into the incremental folder and then go back to "check for updates" and see what it does. The 13.1.21 Recovery ROM and incremental OTA 13.1.16 - 13.1.21 update can be downloaded from: https://miuirom.org/phones/xiaomi-mix-fold-2
[Xiaomi Mix Fold 2] frcraig:
I see that you have released version 2 of your flag patch module. I take it this new version automatically uninstalls the second package installer that is created when you disable MIUI optimizations?
[Xiaomi Mix Fold 2] dee163:
Yes , it is in the description
[Xiaomi Mix Fold 2] frcraig:
Does the new version of your Google Assistant module magisk-module-assistant-android11.zip replace the previous module magisk-module-assistant.zip or do we still use the previous module on the Mix Fold 2 as it is Android 12 based?
[Xiaomi Mix Fold 2] AndroPlus:
Yes.

It's for Android 11 devices.

Older Android can't load system APK built for newer version so I added A11 version.
[Xiaomi Mix Fold 2] carlitobahsoun:
hello guys , happy with my mix fold 2 :

plz if u can help :

1-when i fold , on lock screen , there is camera down the screen right and round circle on the left , can i change it ?.

2- how can i add more fount plz ?

iam not rooted.
[Xiaomi Mix Fold 2] frcraig:
ANOTHER BOOTLOOP

After my last bootloop experience while trying to install the global flag module I was eventually able to wipe and reinstall everything, so I thought I would give it another try. This time I carefully read your instructions and did the following:

1. I enabled MIUI optimization and rebooted,

2. I installed the lite (most recent global flag) module and rebooted.

When rebooting the phone just goes to the Mi logo and after a few minutes brings up the screen with:

Main Menu

MIUI Recovery 5.0

Reboot

Wipe Data

Connect with Mi Assistant

Safe Mode

I use volume down key to select Safe Mode and power key to confirm. Phone boots past Mi Logo to my default lock screen (which says "safe mode" in the bottom left corner), but before I can enter my four digit PIN code to unlock the phone it goes to a black screen with a spinning which circle, hangs on that for a few mintues, and then reboots to the same Recovery screen menu. It won't go past that. I've tried several times and it doesn't stay on my lock screen long enough for me to enter a password.

The only module I had installed in Magisk, before installing the Global Flag module, was the Universal SafetyFix module. I really don't want to wipe and start all over again. Any advice as to how to proceed?
[Xiaomi Mix Fold 2] AndroPlus:
@frcraig

Maybe in some situations MIUI installer disappears and flag module try to remove AOSP installer so no installer become available and bootloop. So complicated... fxxk Xiaomi for having two abnormal installer...

I don't know why safe mode doesn't work since Magisk should disable all modules when entering safe mode (not after unlocking).

You can disable the module with this command:

adb wait-for-device shell su -c "touch /data/adb/modules/xiaomi-miui-conv-lite/disable;reboot"
[Xiaomi Mix Fold 2] knives of ice:
should we have AOSP installer after installing both modules? All I have with both is still the Xiaomi installer.

with that being said - I think if you install full module, then lite module you are fine with no bootloop. if you don't do them in that order you can get bootloop.

I also think there are definitely weird changes in how the signal strength of cell connection is either measured or displayed because I constantly have zero bars now at home and that definitely is not the case.
[Xiaomi Mix Fold 2] AndroPlus:
Android assumes that there is one package installer at the same time, but when you disable MIUI optimization, Xiaomi enables both MIUI and AOSP installer.

You can use AOSP installer if you disable MIUI installer, but if MIUI optimization is enabled accidentally, AOSP installer will be disabled automatically and the both installer will not exist = cause bootloop.

Maybe Global ROM has different "optimization" for signal strength display and just changing the flag global won't enable optimization for each carrier.
[Xiaomi Mix Fold 2] knives of ice:
ok, the signal strength is no big deal

should we disable miui optimization after installing successfully your modules then? if we do this are we then ablet to update miui apps when they get updates? because right now every update fails which is not a huge deal but was wondering about that.

my biggest wants still to fix:

- ok google working with the screen off

- I messed with rboard for over an hour today and still can't figure out how to import @AndroPlus flags. if anyone has done this and can post a step by step I'd appreciate it
[Xiaomi Mix Fold 2] frcraig:
I'm also experiencing odd radio network issues after installing the CN-Global Lite (global flag) module. I never had any signal issues before, but now my VoLTE (HD) symbol disappears from time to time and every hour or so the mobile signal symbol in the status bar goes down to one or two, or even zero bars. Rebooting the phone always restores 5G or LTE and VoLTE. Does the module change the modem config file on the device? It seems as if radio network optimization isn't working properly after installing the module. Because Magisk is 'seemless' root I assume that uninstalling the module would undo any changes it might have made to modem config or radio network optimization?
[Xiaomi Mix Fold 2] frcraig:
I have the Google Assistant module enabled and have run into an issue. The Assistant works on both the folded and unfolded screens for general voice commands, but on the unfolded screen if I tell it to send a message or make a call it responds "sorry, I can't send messages yet", or "sorry, I can't make calls yet". These do work on the folded screen.
[Xiaomi Mix Fold 2] Henry:
So sorry if this if this the wrong thread - but i've unlocked bootloader and also installed magisk to try and resolve Android Auto and connecting my Galaxy Watch 4.

However, I was trying to setup Google Wallet - and it says I can't add credit card because my device is rooted.

I read somewhere that i should go to Magisk and configure DenyLIst (to include Google Wallet) but my DenyLIst is greyed out?

Any pointers would be appreciated....
[Xiaomi Mix Fold 2] knives of ice:
i think you need universal safetynet fix module and sytemless hosts module
[Xiaomi Mix Fold 2] Henry:
Haha thanks - i'm a newbie at this and just managed to unlock and install magisk ... but this .... this is another level!!! 😂. Haha and actually i just did this by following these instructions, it was actually really easy. https://magiskroot.net/universal-safetynet-fix/
[Xiaomi Mix Fold 2] Henry:
@frcraig - so did you resolve this? I want to do the global flag module as well (and follow your step-by-step instructions) but I'm worried that you werent able to get past the recovery screen? But then i read your other posts, and it seems you were able to install this?
[Xiaomi Mix Fold 2] frcraig:
I was able to boot to recovery (with the phone unfolded) but couldn't get into safe mode to disable the Magisk modules, so I wiped from Recovery and had to reinstall everything. I decided not to reinstall the Global Flag module as it seems to really screw up your radio network optimization, and with it my phone often had no bars or no VoLTE. Just uninstalling the module didn't help, so I wound up unrooting and doing a complete factory reset by reflashing the recovery.rom then reinstalled everything and re-rooted with Magisk. I haven't had a signal issue since.
[Xiaomi Mix Fold 2] Henry:
@frcraig - sorry to ask a noob question. So when you initially installed the Global Flag module - I think your phone went into bootloop? Is that right? But that is unusual because most other people havent had the same issue? Also, i think you must be in the USA - as this VoLTE issue is only applicable to US carriers? (i'm in Aust)
[Xiaomi Mix Fold 2] frcraig:
I installed both the full CN-Global module and the CN-Global Lite (global flag) module and when I rebooted my phone for the changes to take effect it went into a bootloop. AndroPlus explained that was because installing the global flag module adds a second Package Installer App (ASOP in addition to the existing Xiaomi app) and one of the Package Installer apps has to be uninstalled before rebooting. I'm in Canada, but we have the same mobile networks as the USA and American users have also had cell signal issues (often no bars) after installing the global flag module. The only reason I had installed the global flag module in the first place was to get OK Google working, but since it doesn't work when the screen goes off (AndroPlus is working on it) I decided I didn't need it. I just tap on the Google Assistant app and it then listens for voice commands.
[Xiaomi Mix Fold 2] Henry:
OMG i'm so confused. So whats the difference betwen CN- Global Module and the Global Lite ? And do I have to install both? Also for context, I'm trying to sync my Samsung Watch 4 and I believe I need to install Global Module for it to work.. but I"m not sure what Global Lite is.
[Xiaomi Mix Fold 2] Henry:
I just installed the Lite version (only) but I didnt switch off MIUI optimiser... not sure whats that for?! Anyway, now i'll try and sync my galaxy 4 watch.

Weirdly now I have the word "Volte" come up in my signal bar. 👍👍
[Xiaomi Mix Fold 2] dragonnightx:
Did anyone got google pay to work after rooting?
[Xiaomi Mix Fold 2] frcraig:
Yes. Install the Universal Safety Net module, enable zykisk in your Magisk settings and add Google Play, Google Play Services, and Google Pay to the deny list in Magisk settings. You can also hide Magisk completely by enabling that option within Magisk.
[Xiaomi Mix Fold 2] dragonnightx:
I wouldn't turn off MIUI optimiser on lite version 😂 I did it and got stuck on a boot loop. Gone into safe mode didn't fix it had to wipe data 😭😭. Learning what not to do 😉 this would be my 5th wipe data
[Xiaomi Mix Fold 2] Henry:
Haha .. i've given up on Fold 2 ... and my Samsung Fold 4 is arriving tomorrow. I've had to wipe my phone so many times, and I sitll cant get AA to work ... and most recently, I cant seem to pay on Uber (i use Uber everyday). There's a whole host of other issues as well, fairly trivial individually, but when you put all together ... super annoying. Ultimately, (for me) the benefits of the bigger size phone does not quite outweigh the ease-of-use of the Samsung Fold 4 🥲

Expect to see a new Xiaomi Mix Fold 2 on ebay and gumtree soon. 🥲
[Xiaomi Mix Fold 2] dragonnightx:
I catch Uber work for me ☺️ how much u selling it on eBay? Lol
[Xiaomi Mix Fold 2] frcraig:
I confirm that turning off MIUI optimization while running the light version causes a bootloop that can't be repaired without wiping data. Been there. Done that. Got the t-shirt.
[Xiaomi Mix Fold 2] frcraig:
On Chinese ROMs the HD symbol indicates that VoLTE is enabled, but on global ROMs the HD symbol is replaced by the VoLTE symbol. The CN/Global Lite module globalizes your phone including the physical appearance of its symbols. HD and VoLTE are exactly the same thing, just different symbols are used in China versus the rest of the world.
[Xiaomi Mix Fold 2] Glesi2323:
I love my mix 2 I have no issues with it but miss the functionality of android auto and the swipe left from Home Screen for google feed—would you share what site or video you used to root your mix fold 2? I currently found this website and wondered if this is what you used:

How to Root Xiaomi Mix Fold 2 via Magisk Patched Boot

In this comprehensive tutorial, we will show you the steps to root your Xiaomi Mix Fold 2 via Magisk Patched boot.img file.

www.droidwin.com

Also, is there a module to activate the google feed screen on this phone from Home Screen? Or is that only possible in like global rom phones? (Sorry, super new to all of this so I apologize if I don’t explain myself well).

Other question, since I just thought of it, will rooting my phone factory reset my device including all my on board memory data like photos and videos?
[Xiaomi Mix Fold 2] Glesi2323:
Does this mean you can update normally and once updated, phone will still be rooted?
[Xiaomi Mix Fold 2] Glesi2323:
Sorry just found this! So, everytime there's a new update, this would be the route to installing it?
[Xiaomi Mix Fold 2] Glesi2323:
Hello can you list out the other side affects for the global Rom flag patch? I understand that enhanced keyboard is one. Thanks! 🙏
[Xiaomi Mix Fold 2] invensmaster:
Good mooning

First wanted to thank you for all the great work and effort.

Second i have a question, So i have the Mix Fold 2 rooted and all is working great. Installed Android auto module and it works perfect in the car. Now i installed Fermata auto and Fermata control only the control shows on the head unit. My question is there any way to get this to work or did any one ran into this issue and was able to install extra apps like S2A ang got it to work? Please let me know how.

Thanks
[Xiaomi Mix Fold 2] Owiepa1:
Does anyone know the work around on how to make notifications show on the lock screen of the Xiaomi mix fold 2?
[Xiaomi Mix Fold 2] Dfis:
Hi. I can see it's still version 01 in the url. Any updates on this?
[Xiaomi Mix Fold 2] Dfis:
Can we Re-Lock the bootloader if we change our minds? :)
[Xiaomi Mix Fold 2] Goronok:
I really appreciate these modules, though am sad to report that I am unable to get Android Auto working either. Have the activity running with all permissions, but my car still pretends like nothing is connected.
[Xiaomi Mix Fold 2] adamski777:
My fold 2 is on the way from Giztop. Wondering if anyone has tried Xiaomi's Carwith app - a supposed Android Auto developed by Xiaomi.

Android Auto would be my only reason to root as can live with all the other restrictions.

EDIT - from further investigation seems that Carwith is only for head units that will eventually be released on Chinese vehicles. So, root it is :)
[Xiaomi Mix Fold 2] Goronok:
Hope you get it figured out! I haven't read of anyone successfully enabling android auto even with root.
[Xiaomi Mix Fold 2] Koursaros:
If i don't disable miui optimization at all, will i avoid bootloop or it is always a chance with this module?
[Xiaomi Mix Fold 2] Dfis:
Hello.

What exactly the Global ROM Flag Patch contributes?
[Xiaomi Mix Fold 2] illuzn:
@AndroPlus Thanks for the Android Auto patch - this was so useful.

Any idea how to activate Screen2Auto or AA Stream (or any other custom Android auto apps)? Using AA AIO Tweaker doesn't seem to enable them using this method.
[Xiaomi Mix Fold 2] invensmaster:
I am sure this is not gonna be of much help to you so I apologize I am just adding to your findings maybe some one can help both of us. So I have the same issue as you do. AA stream and S2A does not show up on Android auto in the car. Only AA mirror shows in the car and when I click it it says not ready. Also I have Fermata Control shows in the car but not Fermata Auto. Though Fermata Auto was updated to 1.9 still does not show in the car. I tried resetting and reinstalling all over but that didn't help. The patcher didnt help also. Hope some one can help us.
[Xiaomi Mix Fold 2] invensmaster:
ok so i found the solution (its not me credits go to

AndreyPavlenko on Gituhub Fermatta forum) i will post the link.

AndreyPavlenko

So that LSPosed zygisk module fixed all my issues with apps not working under android auto in the car. Now AAM works Fermata works and bunch of other apps were not working. No need for aa patcher with this module.

Again Credits goes to AndreyPavlenko
[Xiaomi Mix Fold 2] illuzn:
Did you use any special method to install AAM? Fermata auto and fermata control now shows up but still no AAM for me (or AAM plus) and neither does any other custom aa apps.
[Xiaomi Mix Fold 2] Dfis:
Thanks!
[Xiaomi Mix Fold 2] invensmaster:
Well honestly I don't remember how I installed them coz I have been doing lots of things and trying before i found the fix. I always use AAAD AAEase or King installer so for sure one of those. Or for Fermata you can use the GitHub link it's in
[Xiaomi Mix Fold 2] annimali:
Has anyone connected there Galaxy watch to the phone yet? after rooting?

Please advise!
[Xiaomi Mix Fold 2] Dfis:
Yes. After installing both modules, it works perfect
[Xiaomi Mix Fold 2] Azizgoldfire:
How about battery life after root and enabling module?
[Xiaomi Mix Fold 2] Goronok:
Battery life is no different after rooting or modules.
[Xiaomi Mix Fold 2] rowihel2012:
So

What's your opinion about this fold

Is it great ?
[Xiaomi Mix Fold 2] Goronok:
Now that I have it rooted and configured with some of AndroPlus's modules, the Mix Fold 2 is one of my favorite phones of all time. (and I've had a LOT. Every Samsung fold, oppo find n, huawei mate x2, etc)
[Xiaomi Mix Fold 2] illuzn:
Just a quick update in case anyone finds this. After a day, somehow the Android Auto app suddenly shows s2a. I didn't do anything to change it. I did notice Google pay changed to wallet in this time so maybe some google services updated in the background.
[Xiaomi Mix Fold 2] rowihel2012:
Great. Thanks brother

I will buy the new edition soon 💕
[Xiaomi Mix Fold 2] Dfis:
Again, thanks a lot for the guide and hard work!

GetApps store keeps notify me for system/user app updates and it doesn't peform it. When clicking on the upgrade button, it spins for a sec and stopped.

Any ideas?
[Xiaomi Mix Fold 2] Dfis:
Can we use ("Install to Inactive Slot" method) to upgrade to MIUI 14?
[Xiaomi Mix Fold 2] OrionBG:
Hey guys,

I finally got my Fold 2 just in time for Christmas and after waiting a week for the bootloader unlock I finally began setting it up. I installed Magisk, put the Language and Global flag modules, disabled MIUI Optimisations, and so on...

I do have a couple of issues though.

1. The MI GetApps store will not update any of the Xiaomi apps. It will not download anything. Just say connecting for a sec and then goes back "update" (for the installed apps or "Install" for the rest) Play store is working properly.

2. Lloyds Banking app is complaining about a rooted device and not allowing me to login. (hid Magisk, added the app to the deny list, installed adaway as suggested in one thread) nothing helps.

3. Another UK app called "Power Rewards" will not start at all (no error messages) Same app works fine on my previous phone (also running Android 12)

Any ideas?

Thanks!
[Xiaomi Mix Fold 2] invensmaster:
Not sure if this will help. U did not mention anything about Zygisk. I had the same issue with my Banks app but when i enabled zygisk and enforce deny list also make sure in the deny list all is ticked under each app inside the denylist. All worked for me after doing that. Also sometimes u have to clear data in the apps that are not working. Hope this help u.
[Xiaomi Mix Fold 2] OrionBG:
Thanks but I have already done all of this and Lloyds app is still detecting root. (it also detects the unlocked bootloader even without the root part installed at all with a completely stock China ROM)
[Xiaomi Mix Fold 2] invensmaster:
Then I think the only last chance is to create a shortcut for the bank link in chrome or any browser and see if this will work for u. It's a partial solution till u figure a way. Good luck.
[Xiaomi Mix Fold 2] OrionBG:
Yeah, I think that I'll have to use the website. At least it has almost the same interface and functionality... Just having to log on every time is a bit of a nuisance...

I'm however afraid that there will be other apps that do not like the Chinese ROM (like Power Rewards) and will not start at all. I checked the logs from the crash of the app and I think that there might be something wrong with the Java support in the phone... Might be wrong though...