yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi Mix 2S Guides, News, & Discussion] MartinGrovy:
Once again, not sure if I can post this here. But I have further decompiled and researched the mi_flash_unlock executable... The only issue is that I have hit a bit of a stump :(

See, the exe has VMProtect, which is a form of obfuscation/drm. thankfully, this is an offline version. But still to my detriment, certain segments of memory are obfuscated,

however, they did it in such a way that only special code (the code we want) is protected, making it pretty easy to find :D

//----- (00F2EAF0) --------------------------------------------------------
char __userpurge sub_F2EAF0@<al>(int a1@<ecx>, signed int a2@<ebx>, __int64 a3@<xmm0>, int a4, int a5)
{
int v5; // esi@1
int v6; // eax@2
int v7; // ecx@2
int v8; // eax@4
int v9; // eax@8
int v10; // edi@8
char result; // al@17
int v12; // esi@18
char v13; // [sp+0h] [bp-24h]@0
char v14; // [sp+Ch] [bp-18h]@2
int v15; // [sp+14h] [bp-10h]@2
int v16; // [sp+20h] [bp-4h]@1

v5 = a1;
v16 = 0;
if ( sub_F82C40(0) )
{
if ( !a5 )
{
v8 = *(_DWORD *)(v5 + 36);
if ( v8 )
{
if ( v8 == a4 )
{
VMProtectBegin("unlock_devices_found");
v9 = sub_FA7DB5(*(_DWORD *)(*(_DWORD *)(v5 + 4) + 32));
v10 = v9;
if ( v9 == 3 || v9 == 4 )
{
if ( !*(_BYTE *)(*(_DWORD *)(v5 + 36) + 60) && v9 != 3 )
sub_FA7E7B(*(_DWORD *)(*(_DWORD *)(v5 + 4) + 32), a2, 3, 1);
if ( *(_BYTE *)(*(_DWORD *)(v5 + 36) + 60) && v10 != 4 )
{
sub_FA7E7B(*(_DWORD *)(*(_DWORD *)(v5 + 4) + 32), a2, 4, 1);
sub_F30A80(*(_DWORD *)(v5 + 56), a3);
}
}
VMProtectEnd();
}
else
{
sub_F54450(4u, (int)L"should never enter here, as for different device", v13);
}
}
else
{
sub_F54450(4u, (int)L"device status readed after offline, and ignore it", v13);
}
}
}
else
{
v15 = v5 - 1204;
v6 = sub_F2FC10((int)&v15, (int)&v14, (int)sub_F2B2D9, 1204, (int)&a4, (int)&a5);
LOBYTE(v16) = 1;
sub_F72990(v7, v6);
LOBYTE(v16) = 0;
sub_F3B190(&v14);
}
v16 = -1;
result = a4;
if ( a4 )
{
v12 = a4 + 56;
result = sub_F82A90((volatile signed __int32 *)(a4 + 56));
if ( result )
{
if ( v12 )
{
if ( v12 != 56 )
result = (*(int (__stdcall **)(signed int))(*(_DWORD *)(v12 - 56) + 4))(1);
}
}
}
return result;
}

This is a function of note, you can see the "VMProtectBegin("unlock_devices_found");" part, and then ending the protected segment with "VMProtectEnd();"

Whatever is in there probably includes some sort of key generation algorithm, which hints to me that it's not given nor requested from a server, as the apps

network traffic is null, unless logging in.

I am unable to unlock my bootloader through the conventional method, as it simply states that it tried for 720 hours yet failed... Unfortunately, nobody with the proper

reverse engineering skills is stepping up to help, leaving us all who are unable to unlock in the dust. I don't think I can continue doing this too much, I do it in bursts

though. Maybe one of these times I'll crack the case :D
[Xiaomi Mi Mix 2S Guides, News, & Discussion] andyphone:
Its good to see you are looking into this. I tried cracking open the exec with Aida64 to have a look around but I stopped as soon as I found out that it had VMProtect. Looks like you have gotten much further than I did. I was first looking at the web requests and found that they didnt help.

I wonder if the phone provides the key after you register it with Xiaomi and it uses that key which has the time limit encoded in it.

The interesting part is that if you change the time on your phone and computer, it will still give you the same countdown time.
[Xiaomi Mi Mix 2S Guides, News, & Discussion] blackbravo:
hi all

i have a question

i have international version 10.0.7.0 stable

can i flash via miflashtool global version 10.0.2.0 without problems?

thanks
[Xiaomi Mi Mix 2S Guides, News, & Discussion] Pippinkid:
Thanks so much for this guide! These are always a gold mine for noobies like myself!
[Xiaomi Mi Mix 2S Guides, News, & Discussion] vibranze:
Thank you OP for the guide, it's really helpful, however, I have some questions and hope you or someone can help to answer it.

1. What is XA, XE edition and why do they matter? How to check? My Mix 2s is 6GB+64GB Global ROM 10.0.7, Model is M1803D5XA.

2. What are the advantages for flashing Treble ROM over native ROM? I found Pixel Experience has Treble version, is it better than the one in Mix2S ROM section?

3. What is the most stable ROM to recommend based on my unit model which is XA? I found all AOSP ROM has proximity sensor issue but in Arrow ROM it has been strikethrough, does that mean it's resolved?

Thank you.
[Xiaomi Mi Mix 2S Guides, News, & Discussion] wind93:
Hi notsyncing,

my data partition is encrypted, but this recovery happened to not prompt the dialog to enter password.

I used v13 on my mix2s, this is happening recently. I also tried v14, it's the same.

would please to help?
[Xiaomi Mi Mix 2S Guides, News, & Discussion] sergef94:
Bootloop problem:

I followed the process as described with the appropriate ROM and Tools. Thanks to you I found that Magisk does not work with all phone models/ROM. See below, it seems that for my model I should use Super SU and not Magisk...

Quote:

NOTE: Check your phone model in settings > my device > model (MIUI 9) or settings > my device > verification (MIUI 10). Depending on your Model and ROM Magisk may not work. See below for confirmed outcomes.

Chinese / Global / Beta + M1803D5XA + Magisk = OK

Chinese + M1803D5XE + Magisk = OK

Chinese + M1803D5XE + Magisk = OK

xiaomi.eu + M1803D5XE + Magisk = OK

Global + M1803D5XA + SR-SuperSU-v2.82-SR5 = OK

I tried Global + M1803D5XA + SR-SuperSU-v2.82-SR5 and LazyFlasher

But Again and Again it loops.

Although I have the right M1803D5XA and Super-SU....

I don't know what to do next. Is there a working set, I saw in another thread:

"XE model mix2s with Global Stable V9.5.19 Stable,SR5-SuperSU-v2.82-SR5 works fine.

Before this,i try twrp magisk 16.0/16.4 on Global Stable V9.5.19/V9.5.18/V9.5.4 Stable.

All bootloop."

I can't download V9.5.19 that is quite old though... I see also that it was done on Android 8 and I have Android 9!!!!

Help...

Thanks
[Xiaomi Mi Mix 2S Guides, News, & Discussion] hofi01:
if you want to stay on a stable, read this page (need a translater)

and download the stable package on the site wih miflash tool...

https://tradingshenzhen.com/de/cont...sh-tutorial-global-firmware-xiaomieu-firmware

Rom online

https://bigota.d.miui.com/V10.2.1.0.PDGMIXM/miui_MIMIX2SGlobal_V10.2.1.0.PDGMIXM_5aedcdcbf8_9.0.zip

or flash TWRP via fastboot...

see point.. on the page

D: GLOBAL XIAOMI.EU FLASHEN

and in TWRP you can flash DEV or STABLE ROM and Magisk (without Magisk, you lose after restart in Global Rom TWRP)

also see...

https://xdaforums.com/xiaomi-mi-mix-2s/development/recovery-twrp-mix-2s-t3790922

https://xdaforums.com/showpost.php?p=78532752&postcount=461
[Xiaomi Mi Mix 2S Guides, News, & Discussion] sergef94:
Thanks for your reply.

Following the pointer on your other page you say:

1. flash rom via fastboot or...

2. restart...

3. go to fastboot again and boot or flash TWRP

4. NO RESTART

5. flash in TWRP (after only boot TWRP from fasboot) TWRP again.

6. NO RESTART

7. flash MAGISK

8. and now you can RESTART and have TWRP...

I did all but maybe step 5 that I do not really understand:

5. flash in TWRP (after only boot TWRP from fasboot) TWRP again.

What do you mean precisely

As soon as I get into TWRP I flash Magisk and Lazyflasher or SU and Lazyflasher.

You suggest in TWRP, flash again TWRP?

Sorry I am lost

Thanks in advance to clarify

best
[Xiaomi Mi Mix 2S Guides, News, & Discussion] teddy74eva:
Guys, we have had a method to run Magisk on XE devices with Global ROM for ages now, join the telegram group and ask for it
[Xiaomi Mi Mix 2S Guides, News, & Discussion] :
Due to notsyncing TWRP is able to start without the password, I will to relock the bootloader.

Please, can you post the instructions to relock the bootloader?

I'm own a global Mi Mix 2S.

Also, if I relock the bootloader I can unlock it again without wait the time that I have waited first time or what?

Thanks
[Xiaomi Mi Mix 2S Guides, News, & Discussion] teddy74eva:
First flash a fastboot ROM compatible with your phone (any Global MIUI), then reboot to fastboot and type "fastboot oem lock". Alternatively, you can use MiFlash with its "flash all and lock" option.

You won't be waiting if to unlock it again if you first unlocked it earlier than 30 days.

Regarding your TWRP issues, you do realize that some ROMs don't encrypt data partition right?
[Xiaomi Mi Mix 2S Guides, News, & Discussion] :
Ok, I understand

Sorry, can you explain it a bit more? I'm not sure if I understand.

You are saying that I don't need to wait if I try to unlock again if I try to unlock before 30 days of the first unlock

or you are saying that I don't need to wait if the first time that I've tried to unlock the MiUnlock has permitted to unlock in less than 30 days (72 hours in my case)?

Sorry, I'm rookie on MIUI. In my previous phones /sdcard (*) data was a partition under /data space and was encrypted like /data.

It is not like this on MIUI?

(*) I'm not a physical sdcard on my phone. The internal user accessible data is mounted in this location.
[Xiaomi Mi Mix 2S Guides, News, & Discussion] bigtom5000:
Hi

Has anyone experienced a problem with unlocking Mix 2s Global? First time I run Mi unlock last Friday and it said 'Wait 72h to unlock'. Wow! Only 3 says ? But 72h passed a few days ago and now I have a message 'You have to use your device a bit longer. Try in 1 day' So I'm trying. Day after day ? Any ideas?

Edit: Logged out from Xiaomi account on the phone and logged back in. After that I was able to unlock BL
[Xiaomi Mi Mix 2S Guides, News, & Discussion] teddy74eva:
So, let's say you first unlocked it 20 days ago. If you lock it now and unlock it again, you won't have to wait.

But, if you first unlocked it, let's say, 31 days ago, you will have to wait again.
[Xiaomi Mi Mix 2S Guides, News, & Discussion] themioa:
Hi, i have made a mistake, maybe you could help me out somehow.

I unlocked my phone, fastbooted twrp, then flashed SR5-SuperSU-v2.82-SR5, Dm-verity and Forced Encryption Disabler 6.0.zip and - here's the mistake - Magisk. Now im stuck at screen with "Mi" logo and "unlocked" at the bottom, while my phone won't boot. I can access twrp, should i reinstall fresh rom on my phone, or maybe some other solution?

Thanks in advance
[Xiaomi Mi Mix 2S Guides, News, & Discussion] rtoussaint:
I'm thinking about rooting my mix2s, but I'm wondering why I should use one of the three twrp's that are mentioned in the startpost instead of official twrp (https://twrp.me/xiaomi/xiaomimi22s.html)?

What's the reason to flash an unoffical version?
[Xiaomi Mi Mix 2S Guides, News, & Discussion] :
I think official is timeout. I recommend to use the one from https://xdaforums.com/xiaomi-mi-mix-2s/development/recovery-twrp-mix-2s-t3790922
[Xiaomi Mi Mix 2S Guides, News, & Discussion] rtoussaint:
Does rooting still work on MIUI10? The startpost refers to older Android versions and betas of MIUI10, before I brick my one week old phone, I'd like to make sure that TWRP and Magisk still work on a MIUI10 M1803D5XA
[Xiaomi Mi Mix 2S Guides, News, & Discussion] :
I'm using Magisk on MIUI Global ROM (working on latest stable [10.2.1] and also on latest beta [9.1.24])
[Xiaomi Mi Mix 2S Guides, News, & Discussion] mauriciocardoso:
Hi,

I would like to install twrp and root.

Could somebody explain a walkthrough, step by step, Noob Guide?

I have a XA model with global stable 10.2.10.

Which is the sequence of the steps? With which apps editions (likesupersu, magisk, twrp, etc)?

I would really apreciate that help!

Thanks
[Xiaomi Mi Mix 2S Guides, News, & Discussion] rtoussaint:
I did it yesterday, the steps in the first post are good. Just unlock the bootloader, install twrp, install magisk (I used 16.7) and reboot. I used the TWRP that was recommended to me a couple posts above this.

The only screw up I made, but that was just really dumb on my part, was that I flashed TWRP in the boot partition XD. Easy fix luckily though. Just take your time and don't try to do it 5 minutes before you need to be somewhere like me XD.
[Xiaomi Mi Mix 2S Guides, News, & Discussion] mauriciocardoso:
Dear friend

Thanks. I Will follow that. Do you know something about the steps to follow about to Format and mount the partitions in the phone?

Greetings!
[Xiaomi Mi Mix 2S Guides, News, & Discussion] rtoussaint:
I didn't format anything (except the mandatory wipe that is done while unlocking the bootloader)
[Xiaomi Mi Mix 2S Guides, News, & Discussion] rtoussaint:
Has anyone gotten immersive mode to 'stick'? I can set it, but after a reboot my status bar is visible again.
[Xiaomi Mi Mix 2S Guides, News, & Discussion] mauriciocardoso:
Hi folks

I'm in Ubuntu 18.10 and with a Mix 2S with unlocked bootloader. The device is reconized by Adb and by fastboot (fastboot devices), but when i proceed to boot twrp or to flash twrp on fastboot, it's keep waiting to begins, but never really begins to flash.

Are there anyone who try to flash twrp with linux to Guide me?

Thanks in advance

Greetings
[Xiaomi Mi Mix 2S Guides, News, & Discussion] :
You probably need to execute adb and fastboot with sudo
[Xiaomi Mi Mix 2S Guides, News, & Discussion] mauriciocardoso:
Dear friend

Thanks for the tip, but i already did that without success.

Greetings
[Xiaomi Mi Mix 2S Guides, News, & Discussion] matheo896:
Did you choose the right file for twrp ?

What I did

1) install adb minimal and fasboot

2) enable USB Debugging in Dev options

3) polaris image for mix 2s

4) copy to main drive C:

5) rename it like trwp.img

6) launch CMD command in admin mode

7) I wrote

cd/

fastboot boot trwp.img

I Have downloaded supersu and copy it to download folder but when I go in trwp to install I can't find it

Anyone can help ?
[Xiaomi Mi Mix 2S Guides, News, & Discussion] RootNightmareX:
Do i need to unlock bootloader or something before Flash TWRP Recovery and Custom ROM ?
[Xiaomi Mi Mix 2S Guides, News, & Discussion] ChillDuder:
yes, you have to unlock if you wish to flash anything other then offical miui roms.
[Xiaomi Mi Mix 2S Guides, News, & Discussion] RootNightmareX:
How do i unlock it? Is it possible on all models or its restricted like Huawei?
[Xiaomi Mi Mix 2S Guides, News, & Discussion] rimsilva:
Hi,

My device is unlocked and using magik.

Is it safe to update de MIUI rom by downloading the update notification?

Will I loose the magik root or anything else?
[Xiaomi Mi Mix 2S Guides, News, & Discussion] XDRdaniel:
Yes you will lose magisk. My advice is to keep a copy of magisk in your phone and as soon as the phone update ends, install magisk so it doesn't get deleted
[Xiaomi Mi Mix 2S Guides, News, & Discussion] ChillDuder:
You are in the right forums. There a plenty of informations here, also a Unlockguide somewhere.

You can unlock almost all xiaomi phones. MiMix2s for sure.
[Xiaomi Mi Mix 2S Guides, News, & Discussion] JoshuaAshton:
I want to scream. Why is this such a convoluted and backwards process??? Is there a way around it? I have to wait 72 hours now because of their incompetent broken system.
[Xiaomi Mi Mix 2S Guides, News, & Discussion] meteora001:
something weird on my mix2s

I boot into twrp 3.3.3.0 then flashed magisk19.3,everything looks great,but when I reboot to system it shuts down.

seems like system block booting process.

my system is miui global devloper 9.6.27.
[Xiaomi Mi Mix 2S Guides, News, & Discussion] :
Hello

You boot into recovery or twrp installed?

If I'm not wrong you need to install twrp if you install magisk
[Xiaomi Mi Mix 2S Guides, News, & Discussion] meteora001:
I using fastboot boot command to load twrp.if I use fastboot flash recovery,twrp will cover by system recovery.
[Xiaomi Mi Mix 2S Guides, News, & Discussion] :
Use fastboot flash recovery to flash permanent recovery, then boot into recovery using fastboot boot after that.

Finally, when in twrp, flash magisk to really make permanent the twrp install (if you don't flash magisk the stock recovery will be automatically flashed when normal reboot)
[Xiaomi Mi Mix 2S Guides, News, & Discussion] meteora001:
okay，I‘ll try, thx
[Xiaomi Mi Mix 2S Guides, News, & Discussion] jat001:
Xiaomi still did not fix this bug after a year. Here is a simple solution, you do not need to do anything after system upgrade.

https://gist.github.com/jat001/551f496112fb70930645663e8b7e2519

The filename does not matter, even if you name it r_u_ok

https://www.youtube.com/watch?v=CRU-fwS6aAU
[Xiaomi Mi Mix 2S Guides, News, & Discussion] Schlicki:
Everytime I flash a custom ROM, I went through a clean install and get stuck then. Every system boot runs into TWRP again, ROM does not boot. All I can do is flas MIUI via MiFlash. What am I doing wrong?
[Xiaomi Mi Mix 2S Guides, News, & Discussion] :
Are you willing data or formatting?
[Xiaomi Mi Mix 2S Guides, News, & Discussion] BranMakMorn:
So.
[Xiaomi Mi Mix 2S Guides, News, & Discussion] igor_anta:
Hey,

I do apologise if this was answered before, but I couldn't find anything via the search or just by reading through posts.

Is the same procedure described in the original post valid if I'm on stock MIUI 11 global, untouched, unrooted? My bootloader is unlocked tho, so that's taken care of at least.

Thank you very much :)
[Xiaomi Mi Mix 2S Guides, News, & Discussion] s327374:
Was this solved? I am in the same situation. Xiaomi used to be a hellova lot easier
[Xiaomi Mi Mix 2S Guides, News, & Discussion] igor_anta:
Yeah, it's as simple as described in the OP, as long as you're unlocked there's nothing to worry about :)

I am using Lineage OS 17.1 since I posted this, moved from MIUI 11 Q official, no issues whatsoever.
[Xiaomi Mi Mix 2S Guides, News, & Discussion] s327374:
oops - wrong forum. Mod, please delete
[Xiaomi Mi Mix 2S Guides, News, & Discussion] paolo00:
hello guys,

do you know if with tthis guide I am able to unlock the phone which is actually locked with one carrier (Three)?

I found mant threads talking about bootloader etc...but seems no one has the phone locked with a carrier :)

Thanks for your support!
[Xiaomi Mi Mix 2S Guides, News, & Discussion] underlines:
I waited 1 day but this was 2 years ago. My girlfriend 3 days, this was last month. Others now wait between 1-5 days I heard.
[Xiaomi Mi Mix 2S Guides, News, & Discussion] ruicc:
Well, in my case it toke 2-3 hour...i've requested it on Sunday 11 PM, and receive it on Monday 01 AM...:eek:

But for now, waiting for the 360 hours to go.
[Xiaomi Mi Mix 2S Guides, News, & Discussion] ruicc:
I've found this site, giving some good advice about optimizing chinese roms, and some good downloads, like a tool to debloat chinese apps, which i found very easy to use.

Just sharing it, here, if the thread owner's (underlines) don't agree, just tell me, and i'll remove it.

https://www.reddit.com/r/Xiaomi/wiki/roms/optimise
[Xiaomi Mi Mix 2S Guides, News, & Discussion] Bill Power:
Thanks for replying guys! There is been few hours since i requested. When i get will they send with a link? I'm asking it because i went to the site and it seemed like i did not request so i did it again. I hope this does not come in the way.
[Xiaomi Mi Mix 2S Guides, News, & Discussion] ruicc:
No, mate, no links at all...just a message saying:

"You've been granted the permission to unlock your device...followed by your Mi account number
[Xiaomi Mi Mix 2S Guides, News, & Discussion] Bill Power:
Thanks again. Probably the next step will change after this message arrival.
[Xiaomi Mi Mix 2S Guides, News, & Discussion] Bill Power:
Now they removed, again, references to the Global Rom for Mi Mix 2s.
[Xiaomi Mi Mix 2S Guides, News, & Discussion] nuudisco:
Anyone wanna DM me their Xiaomi account so I can unlock my phone? ? Gosh, I know it's greedy of me to ask but I still got 306 hours according to the tool ???
[Xiaomi Mi Mix 2S Guides, News, & Discussion] ruicc:
I saw that, too.

---------- Post added at 11:34 PM ---------- Previous post was at 11:31 PM ----------

There are no Stock Global roms to flash, so the wait cost less... ;)
[Xiaomi Mi Mix 2S Guides, News, & Discussion] malimukk:
360hrs is per device I think, not per account
[Xiaomi Mi Mix 2S Guides, News, & Discussion] tasar:
How to flash the latest global stable? I mean, i read somethimg about to flash directly after flash the rom with twrp, flash a regio zip file too. But i cant find it again and here stand nothing about regio flash.
[Xiaomi Mi Mix 2S Guides, News, & Discussion] tsuishui:
same as me, 360 hours to wait...
[Xiaomi Mi Mix 2S Guides, News, & Discussion] racerider:
Have someone tried the project treble Lineage OS rom?

It works for main smartphone usage?
[Xiaomi Mi Mix 2S Guides, News, & Discussion] teddy74eva:
I've tried the AOSP one and apart from flickering when locking/unlocking the phone, the ROM was fairly usable, no major bugs encountered. Obviously not mentioning camera performance as it's extremely subpar compared to MIUI.
[Xiaomi Mi Mix 2S Guides, News, & Discussion] bricky23:
That's so strange. Received my mi mix2 white 64 global today. Went through the process to unlock the bootloader, and bam, it unlocked it. Didn't have to wait at all. Sweet!
[Xiaomi Mi Mix 2S Guides, News, & Discussion] teddy74eva:
Has anybody succesfully installed Magisk? No matter how hard I try and what I flash, it keeps bootlooping. I really need that Google Pay working :(
[Xiaomi Mi Mix 2S Guides, News, & Discussion] Bill Power:
Not strange, lucky! Maybe the Global version does not need to wait? I believe all the reports till now are from people on Chinese Rom.

You are running Global, aren't you? How come your Gplay is not working? Saw many reports from people on this ROM claiming they have all Gapps working.
[Xiaomi Mi Mix 2S Guides, News, & Discussion] teddy74eva:
Yep, I'm rocking the Global one and my problem is to get mobile payments through Google Pay working. Everything is okay with my Play Store, but due to unlocked bootloader my SafetyNet status is tampered and apparently Magisk isn't working as of now.
[Xiaomi Mi Mix 2S Guides, News, & Discussion] Bill Power:
WOA! Thanks for clarifying Teddy. So many issues to use the phone on a Global ROM that is not released by Xiaomi on their website. Maybe i'll just wait until they decide to release it. I don't think this moment is that far.
[Xiaomi Mi Mix 2S Guides, News, & Discussion] Flatric:
You can try xiaomi.eu Rom, it supports same languages as global rom and with magisk it passes safety net test
[Xiaomi Mi Mix 2S Guides, News, & Discussion] pancomido:
Nope. Global here and 360h hours wait, one week to go. But I'll wait until they start publishing official ROMs or custom ROMs start popping up. I got rid of ads with DNS66, which was my main concern.

Other people not having. to wait seems to be related to being MIUI platinum members or Beta testers.
[Xiaomi Mi Mix 2S Guides, News, & Discussion] teddy74eva:
Tried it numberous times, even the latest 8.5.17 but I hate the notifications and various other things in it. I'll take Global without SafetyNet over Xiaomi.eu anytime.

And I'm not fond of the "will it boot" lottery when updating Xiaomi.eu ROMs.
[Xiaomi Mi Mix 2S Guides, News, & Discussion] allrockedout:
There is a way to unlock bootloader instantly i used it on Redmi Note 5. You dont have to wait the 360 hours. Someone try it and let me know if it works. https://xdaforums.com/redmi-note-5-pro/how-to/solved-bypassing-360h-wait-to-unlock-t3791083

The Trick is to login with 2nd account.
[Xiaomi Mi Mix 2S Guides, News, & Discussion] Bill Power:
If i'd come to this before i've certainly tried, but for me it doesn't matter anymore, about 48hs hours to unlock here.
[Xiaomi Mi Mix 2S Guides, News, & Discussion] allrockedout:
Yeah in your situation you should wait. Because this way you have to sign out of mi account and if doesn't work than your time is reset. ? But it does work.
[Xiaomi Mi Mix 2S Guides, News, & Discussion] ArctiX:
Doesn't work. I'm getting "current account is not bound to this device" when trying to unlock on different account. Also, after reverting to my main account the limit is still there, it didn't reset, 282 hours like before :)
[Xiaomi Mi Mix 2S Guides, News, & Discussion] allrockedout:
You have to bind second account meaning add email.