yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] yabow:
Thanks for the support. Unfortunately without success.

I tried to flash the current and official TWRP version again and renamed the file to twrp.img before. Here is the console output:

#[twrp.ing = twrp-3.2.3-0-polaris.img]

F:\platform-tools>fastboot boot twrp.img
creating boot image...
creating boot image - 43386880 bytes
Downloading 'boot.img' OKAY [ 0.914s]
booting OKAY [ 0.071s]
Finished. Total time: 1.051s

#[black screen]

F:\platform-tools>fastboot devices
19cf4510 fastboot

F:\platform-tools>fastboot flash recovery twrp.img
Sending 'recovery' (42368 KB) OKAY [ 0.951s]
Writing 'recovery' OKAY [ 0.201s]
Finished. Total time: 1.165s

F:\platform-tools>fastboot devices
19cf4510 fastboot

F:\platform-tools>fastboot boot twrp.img
creating boot image...
creating boot image - 43386880 bytes
Downloading 'boot.img' OKAY [ 0.910s]
booting FAILED (remote: 'Failed to load/authenticate boot image: 00000050')
Finished. Total time: 1.009s

F:\platform-tools>fastboot devices
19cf4510 fastboot

F:\platform-tools>fastboot reboot
Rebooting
Finished. Total time: 0.004s

#[reboot]

[MENTION=5947365]hofi01[/MENTION]: The problem starts before I get a chance to install magisk. TWRP does not boot.

I tried it with different computers/notebooks with Windows and Linux, different USB ports and cables.

am looking forward to further suggestions and ideas.

I think this is a device-specific problem. Therefore I have created a new threat with further information in Q&A:

https://xdaforums.com/xiaomi-mi-mix-2s/help/boot-twrp-circumstances-t3897079
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] albertoduqe:
Do just fastboot flash recovery twrp.img

After console shows ok and finishes, force-boot to recovery with keys, not the fastboot boot command.

It should boot to twrp.

If it doesn't you are probably not unlocked, device is not bound with account or some other miui nuisance...
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] yabow:
I followed your tip.

If I force the recovery boots with vol-up + power, I land at the fastboot screen again.

The Mi account is logged in.

It is probably a MIUI annoyance, as you say...but how do I get there?
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] albertoduqe:
Ummm it is very strange indeed that volume-up + power lands you in fastboot... Those key combinations shouldn't fail...

I guess you made sure you are unlocked with fastboot oem device-info?

Buttons should work so I really have no idea...
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] yabow:
Unfortunately:

F:\platform-tools>fastboot devices
19cf4510 fastboot

F:\platform-tools>fastboot oem device-info
(bootloader) Verity mode: true
(bootloader) Device unlocked: true
(bootloader) Device critical unlocked: true
(bootloader) Charger screen enabled: false
OKAY [ 0.012s]
Finished. Total time: 0.013s

I don't have any more ideas either, and I'm getting frustrated with this ****.

But thanks for the support.
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] albertoduqe:
Yeah that behaviour with buttons is very strange...

Were you at some point able to enter xiaomi recovery that way?

---------- Post added at 11:29 AM ---------- Previous post was at 11:15 AM ----------

I found this:

https://xdaforums.com/xiaomi-redmi-3s/help/info-entering-recovery-mode-redmi-3s-t3538457

No idea if it will work, in my device volume-up + power always worked, but worth a try...

Also found this:

http://en.miui.com/thread-405354-1-1.html

That kind of tutorial in miui forums are usually not to be fully trusted, but lacking more resources I personally would give it a chance...
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] yabow:
I don't think there is a problem with the hardware keys itself. I can regularly boot into MI-Recovery and Fastboot.

In my opinion, flashing just doesn't work, even if the console confirms something else.

I've read about some cases where flashing only worked locally on the phone. Since the phone is not rooted...there is only the possibility to patch magisk into the appropriate boot.img and install it with fastboot flash boot.

As described here: https://xdaforums.com/xiaomi-mi-mix-2s/how-to/magisk-root-twrp-t3798471

Afterwards I can work with TWRP-Manager, right?

But I suspect that the fastboot commands run empty again.

So, also a dead end?

Concerning the MIUI forum:

I have read about this ifwi.bin thing here:

https://miui-germany.de/forum/index.php?thread/14857-mi-pad-2-twrp-boot-installation-fehler-mit-blackscreen/&postID=142195&highlight=mipad%2Btwrp#post142195 (forum in german language)

Exactly the same problem is described only with other hardware.

And here is a corresponding tool...unfortunately for the Mi Pad 2.

https://xiaomi.eu/community/threads/universal-tool-for-managing-mipad-2.36891/

For me the question arises where I can get a suitable ifwi.bin for polaris?

How can I flash this *bin...because fastboot probably doesn't work?

I have a feeling this is going in the right direction.

The DNX mode (I do not know) cannot be reached by pressing all three keys. The device simply boots into loop.

Her some further detail information:

fastboot version 28.0.1-4986621

MIUI-Version 10.2.1.0

Model M1803D5XA

This thing definitely exceeds my current abilities!

Sometimes you win, sometimes you learn.
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] albertoduqe:
I have no real proper knowledge either but maybe you point in the right direction and if the problem is with commands it might (should) be related to the platform tools... You on windows? There are a whole f***ng lot of problems making adb and fastboot work properly on windows... But the web is luckily full of all kinds of guides and troubleshooting...

Before that I would even consider another approach: why not setting up VirtualBox and installing ubuntu in there? In ubuntu you very easilly setup latest platform tools for linux and it is usually bullet-proof...

---------- Post added at 02:47 PM ---------- Previous post was at 02:45 PM ----------

But those are just my non-expert ideas. Maybe someone with real knowledge can help properly :)
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] yabow:
Okay. Now it's getting really crazy.

I already tried to use fastboot with Linux and the tools (adb/fastboot) available from reposetory.

When using the fastboot boot or flash command the command line hangs...forever.

In this respect the more obvious behaviour.

But I will try some more this afternoon...

Thanks.
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] yabow:
So, I tried some TWRP versions (v15, v14, and others) to get the black-screen error again and again. Version v8 finally allowed me to boot into TWRP. Yeah!

Before I closed the bootloader,

got a message about a destroyed device,

reloaded the stock-ROM with MI-flash,

booted TWRP v8 from this thread,

only saw cryptic files and just used an OTG adapter to install more *imgs and *zips.

Not everything works as it should yet, but it will...

Thanks for your help.
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] Pfofeldix:
Maybe this thread can help you:

https://xdaforums.com/xiaomi-mi-mix-2s/help/twrp-install-dont-t3833633
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] albertoduqe:
Hope you sort it out friend... Be aware that with v8 you are bound to encounter all kinds of issues, especially regarding encryption and stuff.

For the look of it, very strange buttons behaviour, not working properly even from a linux machine, some destroyed device messages... Might be beginning to look as if you got a faulty device in your hands... Just to not discard anything. I mean, you seem to have done everything right. I did the same first steps and never had any trouble getting twrp to work...

Anyway let's hope you figure it out :)
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] yabow:
I have a feeling everything's fine now.

I installed a custom ROM, then Magisk, and then successfully flashed the current and official version of TWRP.

The attempt to flash the official TWRP via the system booted with "fastboot boot recovery_v8.img" was successfully confirmed but didn't work.

It only worked from the local Android OS as described above.

This fits the "old known" bug of the forgiven days.
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] cos4:
I flashed TWRP and backed up the Stock ROM. As mentioned here before TWRP gets overwritten on reboot by the default Recovery. However on the the TWRP page is stated:

I followed these instructions but no change.

I planned not to root the phone if possible. Is installing Magisk the only way of preserving TWRP?

I didn't wipe of flash anything so far, since I wanted to get TWRP stable first. Would you recommend to wipe first?

edit: In case Magisk is inevitable. What is the recommended order? 1)Flash TWRP 2)Flash Magisk 3)Wipe 4) Flash Custom Rom? Or is Magisk removed too when doing the wipe?

ps: Sorry if the answer is hidden somewhere in the 50+ pages thread. Would be maybe good to add it to the summary if it's a common issue.
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] hofi01:
please see... in Global Stable, DEV Rom...

No Magisk=No TWRP

https://xdaforums.com/showpost.php?p=78833551&postcount=514
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] auggie2k:
I still get the decrypt prompt when rebooting into TWRP (via fastboot, advanced restart or power button + volume up button) using 3.2.2.0 - does anyone know of a version that doesn't prompt this?
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] DahakePL:
Use the latest, you are using older version.

Flash xiaomi.eu MIUI rom to remove encryption as well.

Format data too.

It will work 100%
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] auggie2k:
Apologies, I am on 3.2.3.0 so its the newest build. It works fine once I remove the PIN / fingerprint on my phone but I'd like to avoid having to remove that each time.

OS: Current stuck in a boot loop of TWRP and I cant leave it, don't want to format my phone as its all setup. Are there any commands it get out of it?
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] DahakePL:
Can't help you much I think.

You have to format data and flash xiaomi.eu latest
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] auggie2k:
Cheers will do that. Got out of TWRP with "fastboot erase cache" but need to start fresh since the update / Magisk wouldn't let me boot again (next time, I'll backup!)
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] evronetwork:
I did ask for official support from TWRP team ages ago, glad we have official support :D ...now I feel more confident about our device
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] 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 ROMs, Kernels, Recoveries, & Othe] HTCNoblesse:
If you are getting error 255 while trying to do a data backup, chances are, your twrp v15 didn't ask you for decryption password at the boot of the recovery, while still being decrypted somehow.

While twrp tries to make backup of data, that data is encrypted (based on logs) . Therefore you get 255.

The solution is as simple as flashing the official recovery on top of the existing one from the first link in thread.
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] pblasi:
Hi, I can boot, flash and use twrp, but after power off it reboots to stock recovery again, not twrp. How can I have permanent twrp? thanks
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] :
If you're using a miui global room you need to flash magisk before reboot in order to maintain TWRP
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] gtshiftin6:
I formatted data to decrypt and flashed twrp and magisk and password still prompts and says encrypted what did I do wrong I have newest twrp and magisk ..
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] :
You have wiped device or really clicked into formatted data button then typed "yes" into the confirmation dialog?
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] gtshiftin6:
Typed yes and swiped
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] :
And flashed magisk before reboot?

Edit: but if you're in global rom the device is automatically encrypted on first reboot. You need to flash any not encrypted rom, like UE miui Rom before reboot to stay decrypted
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] mattman83:
Looks like lineage encryption has changed again with official release. Needs format going from unofficial to official and twrp not decrypting (not asking for passkey). Sideload still working like always so not end of the world at this point.

Edit - disregard, didn't realise official builds had progressed further, it works fine.

M.
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] bugac:
hi,

have a problem.

via stock miui recovery updated to latest miui stable 10.2.2 , then as always tryed to root with twrp v14 and magisk 18.1, but twrp not dexrypted my files, so i looked for newest twrp and found that this become official, so i downloaded, and booted this official one. So, this one worked correctly, installed magisk18.1 zip, rebooted and from now my mix 2s always reboots only to recovery (which is stock). no mater what i press, and how i reboot, it always boots to recovery.

My model - XE (not global) this is big problem..... but can i make my device normally boot to system without data wipe?
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] malimukk:
Try this:

XE model had some issues with global when flashing magisk.

btw. you connect it to the pc via usb and do the operations in a terminal on the computer
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] m7x9:
I installed this via fastboot, did a full wipe in twrp, then flashed the RR custom rom. It reaches to the boot animation and after a short while it boots into twrp. It does this every time. I know I probably missed something during the process, but anyone know the cause of this?

I tried with LOS rom, same issue.
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] bugac:
lol

read just a little above, my friend.

malimukk, thank you, that helped
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] m7x9:
I already did it:

C:\Downloads>adb pull /system/build.prop
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
443 KB/s (4538 bytes in 0.009s)

Edited ro.product.name to "polar1is". Then:

C:\Downloads>adb push build.prop /system/build.prop
443 KB/s (4539 bytes in 0.010s)

I still have the exact same problem. It's stuck for about a minute in the boot animation, then it boots into twrp. I did something wrong?
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] evolucja:
I installed newest Pixel Experience and now TWRP 3.2.3.0 won't decrypt my data. What is wrong and what can I do?
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] m7x9:
I got it working now. Had to do a "Format data" (the menu where you type y-e-s to continue).
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] simonsmh:
The encryption issue of TWRP in these days is caused by the upstream TWRP project. I am preparing a self-build for you guys now. The TeamWin team will upload new images in a few days.

TWRP MIX2S v16 (2019-03-09)

Download link: https://mega.nz/#F!95MnXSra!nKaSWuMDSkEi4snC0u4yCw

Build with latest omnirom 9.0 & TWRP trees.
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] sjf53t8i:
I had a similar issue using a USB-C-USB-A-cable with an USB-A-C-adapter on my notebook with an USB-C-port (I had no USB-C-USB-C-cable at hand ;). Using these cables I got a similar error. Using the USB-C-USB-A-cable with a USB3-hub with USB-A-ports did work. It is worth trying different USB-cables and connectors. I had similar issues with heimnmdall on Samsung phones ang got rid of them trying a different cable.

---------- Post added at 02:29 PM ---------- Previous post was at 02:04 PM ----------

It was already mentioned several times that restoring with TWRP 3.2.3.0 currently is an issue. I can confirm that - a full backup of LineageOS 16 can't be restored. The Mix 2S gets stalled while booting and then reboots into TWRP. What did help (as already mentioned some posts before) is to factory reset the phone, reinstall the custom rom and then restore the data partition. In my case I had to do the following:

1) reinstall Global ROM Dev in bootloader mode (polaris_global_images_9.2.28_20190228.0000.00_9.0_global_3b5d593191.tgz)

2) reinstall LineageOS 16 (see https://wiki.lineageos.org/devices/polaris/install

3) reinstall gapps and root (like Magisk 18.1)

4) reboot system and quickly go through new phone configuration

5) reboot into recovery and restore data partition

6) reboot system and reinstall Magisk modules (if needed)

I'd like to understand what causes this restore issue. Is this a TWRP issue which might be fixed? Or is there another reason?
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] evolucja:
Be careful as there are at least two versions of 3.2.3.0 version! I got trapped because I was thinking that I was having the newest one (which was not decrypting my data after february update) but then I downloaded it again and even if that was the same version it actually was different size. I flashed it and everything started working after that. What a nonsense.
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] sjf53t8i:
I know, I tried different ones. Only the 3.2.3.0 from twrp.me was able to deal with encryption. But all had issues restoring a backup.
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] zhourj:
I use the latest TWRP on my mix2s and it can't see any file under \sdcard. it can only see lots of random name folders. what could be the reason? some say encryption. but is it the latest version should be able to handle? Phone is from China with chinese rom on it originally.
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] sjf53t8i:
I had the same issue until I installed the latest recovery-vXXX.img version or the one from twrp.me. But I don't recall with which recovery-vXXX.img version encryption started to work
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] zhourj:
I have the latest one from twrp.me. It should be the official and latest without a doubt. 3.2.3.0 polaris. I got it on Friday

---------- Post added at 09:23 PM ---------- Previous post was at 09:21 PM ----------

I'm already using this latest version, or as I thought I was. Is it possible to try any older version? There are several older version from one of the post here, V14 V13 and V8, I tried to boot into them but none of them is responding to touchscreen command.

---------- Post added at 09:40 PM ---------- Previous post was at 09:23 PM ----------

And I noticed one other thing. While Im in TWRP, in the advanced menu, there is a adb sideload option. however when I entered it, the PC didn't seem to recognize the phone. what other driver do I need to get this adb working? I have adb installed already, fastboot mode is ok, but "adb devices" shows nothing when in this adb sideload mode.
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] sjf53t8i:
I checked quickly under Linux - in recovery mode the Polaris phone's USB Device ID is "2717:ff68", when in recovery adb sideload mode, the USB ID changes to "18d1:4ee7 Google Inc.". Depending your PC operating system you might need an additional USB driver to cover that.

---------- Post added at 12:55 PM ---------- Previous post was at 12:52 PM ----------

Has anyone tested a full backup and restore with recovery-v16.img? Does that work now?
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] WarcoLLapsE:
Have tried the latest v16. No luck with restoring full backup.
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] highdiver_2000:
I am stuck in recovery, running ADB Pull returns device not found.

"adb: error: failed to get feature set: no devices/emulators found"

Am I suppose to do this when the device is fully booted up ?

I need to check System in the Mount menu only. Changed the build.prop file.

The phone can now boot into the system properly. Safetynet test failed CTS profile. How can I fix this?

Magisk v18.1, manager v7.0

Mi Mix2S with Global Beta MIUI 10, Model 5XE
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] malimukk:
You could try the "MagiskHide props config" magisk module, that might help.
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] highdiver_2000:
I used the mod and got Safetynet to pass.

Strangely Google play only allows me to install One credit card the second credit card fails and it complains that I have rooted the phone
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] hoehm72:
It seems that after the second last xiaomi.eu/Global/China Beta ROM TWRP is not able to decrypt the phone anymore.

Let me explain my setup: I'm currently on TWRP 3.2.3.0 (should be the latest version) and xiaomi.eu 9.3.28

I am using the"pre-built" encryption which means I did not encrypt the system myself but had this done when I was still on the "normal" beta ROM (not Xiaomi. EU). I never went into the settings and activated the encryption. It was just there out of the box after I entered a PIN. I need the encryption for my work apps.

When I went from global beta to Xiaomi.eu, I had to do the"trick" to modify the fstab files to keep my phone encrypted in this way.

During the last months, I upgraded my xiaoni.eu ROM a couple of times. Every time I entered TWRP, it asked me for a password (my PIN), I upgraded the ROM and modified the fstab file. The last time this worked was with the 9.3.28 ROM.

Today, however, when I wanted to upgrade to the newest 9.4.11 ROM and rebooted the phone to enter TWRP, it did NOT ask me for a password and does not show the content of the phone (just random characters).

Therefore the question: can it be that with one of the last global beta or China ROMs (either 9.3.28 or 9.4.11) the kernel was modified in a way that TWRP is not able to decrypt anymore? Do we need a new TWRP with some updated kernel files?

Thanks for reading this long post!
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] sjf53t8i:
I also had several issues in the past with encryption on different ROM versions (either China, Dev or Xiaomi.eu). In my case it worked to install a different TWRP version (like an older one) and return to the current one. Don't ask me why. I solved that issue now by installing LineageOS 16 on the Mi Mix2s. There is even a MIUI camera port available for the Mi Mix2s.
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] hoehm72:
Thanks for the tip! I just reinstalled the latest TWRP again (it was already installed before) and after that it asked for my password again and I could install the latest ROM
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] Saiger:
TWRP 3.3.0.0 just got released

https://twrp.me/site/update/2019/04/15/twrp-3.3.0-0-released.html#
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] evronetwork:
Does USB-OTG actually works? I've put an 8gb usb stick with an OTG type-c adaptor and it's not working(file system is fat32, should I try with fat?)

Using latest twrp
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] sjf53t8i:
I am using this OGT USB-C adaptor (https://www.amazon.de/gp/product/B077H6PD78/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&psc=1&pldnSite=1) without any issues, so yes, OTG works. Do you specifically mount the thumb drive in TWRP (when you try to use it there)?
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] yogirug:
Hey mate, hope you are doing well.

I had sent you a mail 5 days ago, If you get a chance please check it out. It' really important.