yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] slavke1976:
Hi. I am now back on latest Miui Global beta, and when instal TWRP v13 or v14, and when i want to reboot from system from twrp, there is no option to install twrp as system app?

Before on other roms , xeu, or PExperience, .. it was working well.

i did fastboot flash recovery recovery.img. Then i press buttons on/off and vol+ to enter in twrp, all is ok, it enter, and when i chose reboot to recovery it reboot to twrp, but after if i chose reboot system, it reboot but stock recovery is back
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] xordos:
Regarding the last part, as mentioned in early post, you need install magisk to prevent twrp got overwritten by stock.
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] Guycherel:
Mi Mix 2S Frozen

Hello guys, I come to you to help to reboot well my phone Mi Mix 2s (Chinese Rom on Android 9.0)

Week later I try to put my phone in global Rom by using Twrp,

First time the Twrp page don't appear the phone only reboot simply.

Second time I use this final command of adb fastboot boot, since this day my phone freeze at the Mi. Com page and reboot again, I try volume up + power to get hard reset, but nothing walk.

Please help me to resolve this problem, if I have to put a new rom how can I do it,

THANKS A LOT
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] malimukk:
Flash the chinese rom with mi flash
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] Guycherel:
Hello Guy, please can you show how to flash it with Mi Flash
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] Klunst:
Hello. I suppose I will find the problem myself in the end, but if someone can help me that would be cool. I'm experiencing the exact same problem that here : https://xdaforums.com/xiaomi-mi-mix-2s/help/twrp-install-dont-t3833633

When I install and boot in this twrp (v14), I get a black screen. I suppose it means there is a problem with the recovery flashing. My phone is a Chinese Mi Mix 2S with the global rom (10.0.9.0 stable). It's unlocked. I'd like to go on the Xiaomi.eu rom, but can't boot in twrp. When I reboot, the stock rom overwrite the recovery partition and it become stock recovery again. I understand that and everything that is happening except : why won't this recovery boot ? I should be using the good file. I'll try some other TWRP. If you have an idea, don't hesitate. When I found the answer I'll post it here. Thanks

EDIT : ok I've tried several twrp and nothing seems to work. I've even tried "XiaomiTool" the automated flash tool and it fail at the same step as me : impossible to flash/boot a custom recovery. Does the last version of the Global Rom have some sort of protection ? Am I doing something wrong ? (it's only 2 lines : "fastboot flash recovery xxx.img" and then "flashboot boot xxx.img" ! How could I get two lines wrong ?) It's driving me nuts. Any help would be very appreciated.
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] Gsrzd:
After typing "fastboot flash recovery recovery.img"

Type "fastboot boot recovery.img"
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] Klunst:
This is precisely what I do, but the phone screen just goes black. The phone still answer to fastboot command but that's it :(

Here is a video : https://youtu.be/Kw0oeVHd6oA

Is there any prerequisite ? I read that it was necessary to enter the pin, so I guess the phone must be initialized first since there is no pin to enter if not. From what I read it was not even necessary to unlock my phone ? In any case it is unlocked. I don't see what more I could do...
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] pattz:
You could try the following:

Check if you really have an unlocked bootloader. What does 'fastboot oem device-info' say?

Have you tried enabling 'OEM-Unlock' in the developer options?

Are you using the newest image file (recovery-v14.img)?

Try placing the recovery-v14.img file into the 'Minimal ADB and Fastboot' folder and access from there

Try booting into the recovery with fastboot boot recovery-v14.img BEFORE flashing it into recovery partition. Does this work?

If booting works, try to full format phone with TWRP and install custom rom. Afterwards, try to install TWRP with 'fastboot flash recovery recovery-v14.img' again

Sounds weird, but try to place the phone flat on the table instead of holding it up as you have showed in your video. Was the culprit on my old Sony due to the gyro sensors

You could try this tool from Saki-EU: https://github.com/Saki-EU/XiaomiADBFastbootTools
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] Klunst:
Thank you for your list. I've actualy tried everything you mentionned. In the end I tried to downgrade because I thought it could be a protection or something in the last version, and end up bricking my phone. It was during the unbricking procedure, that I tried everything out of despair, and I think my problem was due to the usb port. I tried all of my usb port (I have a desktop PC so I don't even now which one are usb 3.0 and which one are usb 2.0) and I think the issue came from here. suddenly, on one of my port, the debricking procedure worked out. And after that the flash procedure worked out too. So I think in my case I was using a usb 3.0 port instead of a usb 2.0 (or the other way around but I don't think so). So if people have the same problem than me, my answer would be "try with other port, or with other computer".

Thank you for the help and the suggestion. I love this phone, I was despaired. And I've been flashing phone since the Milestone 2... pfiu -_-
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] cattolicboy:
The black screen it could be just the screensaver from twrp; if you press the power button once it should show the lockscreen of the recovery
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] hofi01:
please... you must flash TWRP and MAGISK in TWRP after Global ROM flash every time and after any update again...

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...

in GLOBAL ROM without flash Magisk, you lose TWRP...

and also see...

https://xdaforums.com/xiaomi-mi-mix-2s/how-to/mix-2s-chinese-version-flash-to-global-t3878659
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] pavanmaverick:
With latest Chinese Dev, seems like decryption is no longer working? Is there any way around it? Thanks.
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] tokyo-ueno:
Mix2s does not start after restoration

I backed up my mix 2s using twrp's recovery-v14.img.

After that, I restored it with twrp recovery.

After the restore, mix2s will not restart.

Am I something wrong?
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] Saiger:
do a factory reset, reflash the rom you want and only restore data from the backup
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] tokyo-ueno:
How can I restore properly with twrp?

Of course, I initialized and reinstalled.

I would like this teach you to tell me how to successfully restore with twrp.
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] hofi01:
have any user a newer China TWRP? (this is my latest recovery-TWRP-3.2.3-1130-XIAOMI_MIX2S-CN-wzsx150)

greetz
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] tokyo-ueno:
Here's the recovery-v14.img you downloaded.
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] Kacee:
I booted v14 with my global mix 2s and touch screen doesn't work, tried with v8 and it's working as normal, but I can't see anything useful in /sdcard (encrypted?)
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] tokyo-ueno:
When using V13 and V14 in custom ROM, it always fails.

In case of unencrypted ROM like miui.eu's global ROM, it must be V8.
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] hofi01:
v14 works fine with XA Modell on MIMIX 2S Global_8.12.27

thanks
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] ulaon:
can I install with this recovery miui.eu dev roms?
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] redjamesg:
Yes, no problems there.
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] ulaon:
I flashed the recovery v8 via fastboot, boot it with fastboot, format all, install MIUI EU from otg drive, and all works fine except one thing: when I try go to TWRP it goes to stock recovery instead, is there a way to change it so I do not need to use fastboot each time I want go TWRP?
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] vietnam100:
Yes, once flash the recovery.img in TWRP.

Gesendet von meinem Redmi S2 mit Tapatalk
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] ulaon:
Can you share flashable zip of V8 recovery? I assume I can not flash IMG file?
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] damarwardoyo:
you can flash an img file
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] redjamesg:
In TWRP chose install, select advanced option, select image and specify recovery, then you're flashing the .IMG file instead of a flashable .zip file.

Sendt fra min MIX 2S med Tapatalk
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] notsyncing:
v15 is out. This should fix the decryption issue on android 9.0 roms with 2019-01 security patches. Please see OP for details.
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] GiantMagcPterodactyl:
I just tried to use v15 and I seem to be having the encryption issue. My internal storage appears as bunch of random number sequences and I can't transfer any files to the phone. (I also tried v14 and v13 with no luck)

Thank you for your continued development.
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] tokyo-ueno:
After formatting mix2s, I restored the backup of xiaomi.eu as it was.

Then I got into boot roop.

Perhaps I should have restored in the following order.

After formatting with twrp, I should reflash the Rom of xiaomi.eu.

Then only the data partition is restored.

Then it is guaranteed that all lock authentication passwords, face authentication and fingerprint authentication, mail accounts and SNS accounts, SIM's APN and user account, icon arrangement, game settings etc. are all restored.

I will try on the next holiday.
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] Saiger:
Almost. here is what you have to do:

factory reset (wipe system, data, cache) -> flash xiaomi.eu -> restore backup (DATA only) -> then you have to remove your password: https://xdaforums.com/android/software-hacking/remove-lockscreen-recovery-t3530008 -> reboot
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] tokyo-ueno:
Yes Yes.

When I create a backup, I need to invalidate password lock, fingerprint lock and face lock before creating a backup.

It was a place I forgot, thank you for your advice.
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] tokyo-ueno:
I remembered it well.

In mobile phone twrp (ver 3.0.2) two years ago, even if you back up password and fingerprint authentication on, it was possible to restore.

With current twrp (ver 3.2.3), even if you back up your password or fingerprint authentication you can not restore it.

When will you repair this bug (password and fingerprint verification can not be restored)?

I do not want to keep using bad twrp.
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] hofi01:
v15 works fine with MIMIX2SGlobal_9.1.10

thanks
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] tokyo-ueno:
If you restore only the data partition, you can not return the systemized app.

Is there a way to undo everything?
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] :
Hello,

I own a Global 2S.

I have unlocked the bootloader then flashed recovery v15.

When I install a Global ROM (Stable or Beta) from the recovery the phone enters bootloop if I try to reboot without install Magisk, and the only way to solve the bootloop is enter TWRP again then flash Magisk or format data (I'm refer to format data, not wipe device) even if the previous installed ROM is the same that I'm installing.

This has sense for you?

EDIT1: This doesn't occurs with v14

EDIT2: In v14 and also in v15, when I start in recovery, the keyboard is unresponsive for 5 seconds approximately.

EDIT3: A bit confused... My device is encrypted and v14 and also v15 are asking for the password, but v13 doesn't ask for the password but is displaying the /sdcard contents. The unresponsive time also exists in v13
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] E78870:
I'm using MIUI 10 CN, and have the same problem too. However, before you mentioned , I didn't regard it as a "problem".
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] :
There are 2 problems here:

1) I need to "format data" every time I flash a ROM or a update of a ROM. I have 50GB of data at /sdcard and I need to backup it to a PC before "format data" and also restore it from a PC after "format data", but I can live with.

2) The security breach of the recovery. How is this possible that I can access to my data without set the password? I have asked friends that owns the phone and it seems that it is possible to access the phone data in /sdcard with any recovery whose version was less than the one used to perform the "format data". This is is incredible that this is so and I ask [MENTION=9159243]notsyncing[/MENTION] to explain how this happens and to solve it ASAP!
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] notsyncing:
I guess this might be something wrong with verified boot. If you were experiencing bootloops, could you try entering TWRP and give me the logs under /sys/fs/pstore?

Yes, on some miui versions it did not ask for password and can decrypt the data! I don't know why, but I never encountered into this on lineageos. I guess that miui is not actually using your password, but the default password, to encrypt your data. TWRP itself will never magically got your password and decrypt your data.
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] :
OK, I will provide after next flash.

But that's terrible!

Please, how I can confirm it? What's the "default" password?

And also, why it is displaying sdcard contents only for prior versions than the used to format data?

By example: I have formatted data using v14 and if I start on v14 it asks for the password. But if I starts on v13 it doesn't asks for it.

Thanks
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] notsyncing:
You started v13, and it did not ask for password, then decrypted your /data correctly instead of showing a list of random filenames? You can check /data/app or /data/data to see if it really decrypted your data.
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] :
Nope, /data is encrypted but sdcard data doesn't.

The problem is I can access all my data imn /sdcard without write any password.

EDIT:

Tried v13 again and is not asking for password.

sdcard(*) files are here and not encrypted, I can confirm it.

data files are probably encrypted (names are only letters and numbers and doesn't coincides with the names that appears when I do a "ls" with the device started in normal mode or using v14 or v15 recoveries).

But the issues is here: All the data on sdcard(*) is accessible by any!

(*) sdcard is not a physical sdcard, is a mountpoint in the phone internal memory.

EDIT 2:

I have started at v14 and tried to connect via "adb shell" BEFORE set the password and...

I can access all the files in /data.

The filenames arent crypted and the contents neither.

Also, I have clicked "cancel" button instead of write the password and...

the main menu of TWRP was displayed 8-(

How is that possible?
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] notsyncing:
Then I guess miui did not encrypt /sdcard at all :(

I'm on lineageos 16.0 and v15 twrp, and I checked just now, if I did not enter password, /sdcard is also encrypted. Sorry but I'm not able to check miui though.

As for the "cancel" button, TWRP is able to work even /data is not decrypted. That's normal.

And every android security patch update will break TWRP decryption, until I build a new TWRP with latest omni tree. So v13 (with 2018-11 security patch level) did not ask for password, and cannot decrypt, while v14 (with 2018-12 security patch level) can. Though I don't know the reason for now.
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] :
But TWRP v14 is displaying the correct contents of /data even if I click "cancel" at password page. This confirms than /data isn't encrypted, I think

Terrible! :(

EDIT: I have tried to write into /data without set the password using v14 and no one problem :(
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] :
I have recorded a video displaying the issue (twrp version is v14)

https://mega.nz/#!Y49HDSZK!E9OcASwcKQqQVfvOkXJSjVMqtfjqAiFP-RJoy1qqX5Q
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] NatronCH:
For me, /data is not encrypted either but /data/data is and this is also where the app data is stored as far as i know.

The files in /sdcard are encrypted as well.

I'm using the Pixel Experience ROM and twrp v14 if i remember correctly.
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] :
Yes, it seems to me that is a terrible miui bug
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] simonsmh:
Your rom have bad support of encryption. That's not TWRP's fault. Please find a button of secure boot.
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] tokyo-ueno:
In which partitions are photos, music, images and maps?

When I restored the data partition, the backed up photos, music, video and map had disappeared.

In which partitions are photos, music, images and maps?

Which partition will I restore, can I return photos, music, images and maps?
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] :
Again,

Finally I've managed to solve the issue with the encryptation...

Seems than wen you are in MIUI and try to "format data" from recovery the partitions aren't created correctly (or not at the correct size) and phone can't capable to encrypt data and sdcard after the first boot.

To create it correctly and have the correct partitions, you need to wipe device from stock recovery or from the phone settings.

EDIT: Wipe from recovery is working well. Is "format data" the issued option.
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] lucadelc:
Decryption issue

decryption issue on v15 founded, when enter recovery mode, twrp don't request password for decryption
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] toxicbrain:
Hey there, I own a Global 2S. I have unlocked the bootloader then flashed recovery v15, installing LOS 16 without any problems. LOS 16 works fine. Now I want to flash Magisk and I boot into recovery. It seems that the touch didn't work now. I shut down the phone and boot into recovery again. The same problem, I can't chose anything, the display didn't response. I have the fw v9.1.24 installed. Thanks for your help.
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] :
Sometimes display isn't working when you start TWRP. Normally the issue is automatically fixed in 2-3 seconds but other times you need to reboot into recovery again (pressing the power button for 10 seconds, then press the volume up button after)
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] toxicbrain:
Thanks. Good to know. I will try it.
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] notsyncing:
It's official now! People can go to https://twrp.me/xiaomi/xiaomimimix2s.html to download the latest TWRP for MIX 2S.
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] :
Thanks

Is based on v15 or what?

Solved the encryption issues that I've reported?
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] kleinholzinferno:
Thank you so much for your hard work and the efforts you made for our device!
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] jaydee 77:
Latest changelogs from https://twrp.me/xiaomi/xiaomimimix2s.html

Song Fuchang

2019-02-02T02:39:26Z

Merge "Set PLATFORM_SECURITY_PATCH far into the future" into android-9.0

Song Fuchang

2019-02-02T02:39:07Z

Merge "Adding screen infos and setting default brightness" into android-9.0

Song Fuchang

2019-02-01T01:32:11Z

Set PLATFORM_SECURITY_PATCH far into the future This fixes decryption on every android security patch update. Change-Id: I6121ebe6c9d79f89ecde4a06b3be5490c6b4799c

mauronofrio matarrese

2019-01-30T22:53:05Z

Adding screen infos and setting default brightness Change-Id: I2839053210f4eed15dab967d6cb898475f39d2ba

notsyncing

2019-01-18T14:43:11Z

Remove TARGET_HW_DISK_ENCRYPTION. * It's for FDE, while we are FBE.
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] yabow:
flash successful, but TWRP won't boot...

Trying for hours to put the official version of TWRP for polais into operation.

I have brand new devices with MIUI Global 10.0.2.0. with unlocked bootloader.

I always fail due to the following situation:

boot into the boodloader

A)

fastboot flash recovery <img>

fastboot boot <img>

or

B)

fastboot boot <img>

The entries are confirmed successfully on the command line.

The device has a black display that is switched on.

If I try to boot into recovery afterwards using hardware keys, I end up in Mi-Recovery.

What am I doing wrong?
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] wizardfics:
try that black screen without removing the cable to do as you go back to recovery volume + and power and put back fastboot boot img

Enviado desde mi MIX 2S mediante Tapatalk

---------- Post added at 02:20 PM ---------- Previous post was at 02:12 PM ----------

The same thing happened to me, and I also failed in the adb to put (dir enter) and see exactly the commands I had to write, initially I put .img and it turns out that I had to put .img.img

Enviado desde mi MIX 2S mediante Tapatalk
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] yabow:
Thanks for your suggestions.

After executing the fastboot commands (flash, boot) I pressed the Vol+ and Power keys during the black screen.

The device now reboots to fastboot mode. Now I can execute the fastboot commands again until a black screen appears again.

If the device is switched off, the key combination Vol+ and Power leads back to MI-Recovery.

Unfortunately not successful.

I am still struggling.
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] Flatric:
I had issues when the name of the file was too long(sounds strange I know:D) but try to give it a short name like twrp.img and make sure you got file extensions enabled in windows so it's not named twrp.img.img or something. How long did you wait until you decided it's not booting? You should see something copying in the command line after entering the commands
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] hofi01:
you must flash Magisk in TWRP in MIUI Global Stable or Dev ROM, after flash TWRP or boot TWRP with fastboot.

do it not, you have after reboot Mi_Recovery again and again....

that has been written in threads so many times...

fastboot boot recovery twrp-3.2.3-0-polaris.img

after starting TWRP on the phone flash twrp-3.2.3-0-polaris.img file again in TWRP

and after this, no restart

flash MAGISK v18.1

restart

and TWRP remains

dont forget install Magisk Manager Version: v7.0.0.apk