yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] MiniBlu:
Orangefox can be installed by fastboot same as any recover image. Just extract the image from the zip they choose to distribute it in and flash from fastboot.

The option for disable force encryption is definitely there. It asks for a pin because it seems you have 1 set,

As I said, fastboot flash is available. No one ever said it functions the same as twrp, if it did there would be no reason for it to exist. What's wrong is you assuming how someone else's software should function instead of finding out before you install it.

If you don't like it, don't use it. But instead of bagging out others work because of your incorrect assumptions, do your research. Or better, fork their code and make a recovery that works the way you expect.
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] Az Biker:
* * * Thread Cleaned * * *

Let's keep all comments directly related to development of this Rom.

If you have a bug report, or an issue, present it respectfully, with logs, and with the intent to aid in development,

Not to throw shade and downplay the OP's work.

As stated in Forum Rules, ALL comments must be respectful, helpful and on-topic. Not rude, or disrespectful.

All comments that violate the rules will be deleted, and those who continue to post comments that violate the rules will have their accounts reviewed for further action.

Please, be respectful, helpful and on-topic when posting.

Thank you.
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] BaamAlex:
The installation worked fine for me. No need to create a backup. Keep up the good work.
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] DarthJabba9:
OrangeFox R10.1_3 Stable released

I have released OrangeFox R10.1_3 Stable.

Downloads

:

OrangeFox download site: https://files.orangefox.tech/OrangeFox-Stable/polaris/

Changelog (General for R10.1x)

: https://wiki.orangefox.tech/en/changelog#orangefox-r101

Device-specific changes

:

- New kernel

- Several optimisations and fixes

- Tweak SAR support - mount system also

- Release date: 09 June 2020

NOTES

:

- The "Disable Forced-Encryption" setting is unticked by default, so if you want to enable this feature you will need to tick the box manually

FAQ and Guides

: https://wiki.orangefox.tech/en/guides
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] IAmWolf94:
Best recovery :D
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] DarthJabba9:
OrangeFox R11.0 Stable released

I have released OrangeFox R11.0 Stable.

Downloads

:

OrangeFox download site: https://orangefox.download/device/polaris

Sourceforge: https://sourceforge.net/projects/orangefox/files/polaris/

Changelog for R11

: https://wiki.orangefox.tech/changelog

FAQ and Guides

: https://wiki.orangefox.tech/en/guides

- Release date: 19 July 2020
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] IAmWolf94:
:highfive:
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] cidxtc:
Awesome work! Thank you.
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] berni502:
after instaling rom + few rebots files inside sd/memory disapear if they are outside any folder oO on r10 was fine

Eadit: and i cant even restore backup witchout boot loop :D nice
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] killer!os133:
Hi dev, can i flash persist.img whit this recovery? I've done yet but i dont feel Any change,

My problem Is whit the Bluetooth, dont work for me AND seems to be a persist problem, i try to flash persist but i dont have good result, that's where my question comes from ?, Thanks in advance ?
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] Big Dumb Object:
As far as I know, on non-A/B devices like our Polaris, Magisk and user-flashed MicroG/GApps cannot be saved during the OTA upgrade and their survival scripts are useless in this case. But on the other hand, we don't have any problems with the recovery surviving like on A/B devises, so I want to ask you if OrangeFox can technically (tobay or in the perspective) help to solve this issue of non-A/B devices and make Magisk and MicroG/GApps able to persist during the OTA upgrade?
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] DarthJabba9:
With any block-based incremental OTA update (eg, MIUI), the answer is "No".
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] Big Dumb Object:
Thanks for the rapid response! Does this include LineareOS and Arrow OS ? I am not well aware of how their OTA works, but my inquiry is primarily related to such aftermarket ROMs.
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] DarthJabba9:
Idk
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] DarthJabba9:
OrangeFox R11.1 Stable released

I have released OrangeFox R11.1 Stable.

Downloads

:

OrangeFox download site: https://orangefox.download/device/polaris

Changelog for R11.1

: https://wiki.orangefox.tech/changelog

FAQ and Guides

: https://wiki.orangefox.tech/en/guides

Donations

:

Support the OrangeFox Project by donating at our OpenCollective page.
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] NoGoodUserNamesLeft:
I'm looking into fully automating my backup and ROM flashing workflow.

Over the past years I have developed a batch file to somewhat automate my workflow but it requires some user interaction in several steps instead of being fire-and-forget.

Right now I'm missing a way to send the following commands to OrangeFox (e.g. via "ADB shell" command or any other way) so I don't have to do it by hand every time:

Send my password from PC to OrangeFox to decrypt the partitions

Not sure if this would be a good idea security-wise...

Create a backup of specific partitions on the phone

Here I am not talking about the ADB backup command - it produces a different result to the OrangeFox's backup

Let my PC wait for the backup to finish

Start sideload on the phone

My intention here is to remove the requirement to go to "ADB & Sideload" menue on the phone, select "Sideload" and slide the slider)

Is any of this possible with the current version of OrangeFox?

Here is what my batch file does in general:

Start ADB server

If necessary: Tell user to authorize the ADB connection on the phone's confirmation dialog

Reboot phone to recovery

Manual step

: Enter the decryption password on phone

List and delete old backups (prompt user whether old existing backups should be removed from the phone)

Manual step:

Tell user to create a new backup of specific partitions

Manual step

: Prompt user to press any key to pull the newly created backup to the PC

Compress the backup on the PC with 7z (is faster and produces a smaller archive file than doing it on the phone)

Start ADB sideload on the PC

Manual step

: Tell the user to start sideload on the phone and slide the slider

Reboot phone to system

Kill ADB server
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] DarthJabba9:
There is no read-made solution for what you are proposing - but anything is possible if you put your mind to it. Good luck!
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] DarthJabba9:
OrangeFox R11.1_1 Stable released

I have released OrangeFox R11.1_1 Stable.

Changelog for R11.1

: https://wiki.orangefox.tech/changelog

Changes for this release:

* Update the Magisk addon to v23.0

* Fix getting stuck on Android 12

* Sync the latest source code updates

* Several fixes and UI enhancements

Downloads

:

OrangeFox download site: https://orangefox.download/device/polaris

FAQ and Guides

: https://wiki.orangefox.tech/en/guides

Donations

:

Support the OrangeFox Project by donating at our OpenCollective page.

The OrangeFox App

- App Downloads | App Discussions
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] NoGoodUserNamesLeft:
Is support for Android 12 encryption in the works for the Mi MIX 2S?

I see it was implemented in OrangeFox for lavender (Xiaomi Redmi Note 7).

Today I have updated to LineageOS 19.1 and much to my surprise I found both OrangeFox and TWRP do not support Android 12 encryption on this phone:

OrangeFox: R11.1_1 Build Notes: "Android 12 encryption is not supported"

TWRP: Android 12 encryption support is available in the Android 12.1 branch only while polaris is on the Android 9.0 branch.

For now users are left with LineageOS recovery which does not let you create new backups or restore from an existing backup.
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] Big Dumb Object:
Joining you! I wouldn't like to lose either the advanced recovery or the upgrade to Android 12 on my beloved polaris.
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] DarthJabba9:
Without the device in hand, it is a very time-consuming endeavour (so, don't hold your breath). It will be ready when (and if) it is ready.

It doesn't help, either, that there are different trees (with incompatible encryption) being used by ROM developers. A choice may ultimately have to be made as to which to support.

Lavender is a very different thing, since I have the device in hand, and the ROM developers are using trees with compatible encryption protocols.
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] Big Dumb Object:
Could you confirm that TWRP 3.7.0 does not allow backups on Android 12? I may be wrong, but does it really matter if the partition is encrypted or not when it comes to NANDroid image creation and restoration?
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] DarthJabba9:
Can we not discuss TWRP here please.

Thanks.
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] NoGoodUserNamesLeft:
Can OrangeFox safely write to an Android-12-encrypted partition even if it does not support Android 12 encryption?

I assume Android 12 (LineageOS 19.1) encryption is file-based in contrast to full-disk encryption.

Question is: Can encrypted files coexist with not encrypted files on the same partition?

If this is the case, then:

Can you safely create a backup of the Android 12 system partition to an Android 12 data partition and then be able to restore this backup via OrangeFox even if it does not support Android 12 encryption?
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] DarthJabba9:
Nothing can write to (or read from) an encrypted partition unless and until the device is decrypted. So, the answer to your questions is "No".
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] Big Dumb Object:
Then how about backing up the encrypted partition entirely — is this option available in such a case? (i.e. creating the NANDroid image I asked about earlier, which is valid for both TWRP and OrangeFox.)
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] NoGoodUserNamesLeft:
If all the partitions are encrypted and can't be written to, then where are you going to save the resulting backup files to?

Or are you intending to write to a USB storage via USB OTG? Does OrangeFox even support USB OTG?

Or are you talking about the adb backup command where the resulting files are being saved directly to the PC via USB connection?
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] Big Dumb Object:
Exactly. I prefer to save backups directly on external flash drive, which doesn't seem to be a problem for OrangeFox.

As far as I know, 'adb backup' works only for apps and does not backup entire partitions. That's a shame, actually.
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] DarthJabba9:
OrangeFox R11.1_2_0 Beta released

I have released OrangeFox R11.1_2_0 (A12)

Beta

.

Changes

:

* Based on the Android 12.1 manifest

* Support Android 12+ encryption

* Update the Magisk addon to v25.2

* Update to the latest upstream commits

* New kernel

* Remove obsolete addons

* Lots of other enhancements

Variants

:

There are

three

different variants of this release - and

they are not compatible with each other

:

1.

R11.1_2_0_A12.zip

- the "

Standard

" variant;

* Supports only ROMs using keymaster 3.0 - this would represent the

vast majority

of ROMs (eg, Lineage, ROMs based on Lineage trees, etc). See the notes on the other variants for more relevant information

* It may or may not work with MIUI ROMs (if it doesn't, then stick with the last Stable release)

* Do not use with PE ROMs, or any ROM based on PE trees, or any other ROM that uses keymaster 4.0. If you try to do so, it will NOT boot at all, and will simply get stuck at the OrangeFox logo

2.

R11.1_2_0_dynamic_A12.zip

- the "

Dynamic

" variant;

* Supports only Android 12+ ROMs with retrofitted dynamic partitions and keymaster 4.0 (eg, PE13)

* Do NOT use with MIUI ROMs

* Do not use with Lineage ROMs, or any ROM based on Lineage trees, or any other ROM that uses keymaster 3.0. If you try to do so, it will NOT boot at all, and will simply get stuck at the OrangeFox logo

3.

R11.1_2_0_keymaster4_A12.zip

- the "

Keymaster4

" variant;

* Supports only Android 12+ ROMs with keymaster 4.0 (eg, PE12+, and ROMs based on the PE12+ trees)

* Do NOT use with MIUI ROMs

* Do not use with Lineage ROMs, or any ROM based on Lineage trees, or any other ROM that uses keymaster 3.0. If you try to do so, it will NOT boot at all, and will simply get stuck at the OrangeFox logo

* This variant is a one-off release, and will

NEVER

be updated.

Notes

:

* Be sure to choose the correct variant for your ROM. If you choose the wrong variant, it will NOT boot at all, and will simply get stuck at the OrangeFox logo.

* After restoring any backups that include encrypted data, and booting to Android, you should reboot the ROM once or twice, using the power button

* Always make a FULL backup of your data and internal storage BEFORE flashing

* Report problems in the "OrangeFox Recovery Beta testing" chat on Telegram. You should make a FULL report, and you MUST include the recovery log

Downloads

:

OrangeFox download site: https://orangefox.download/device/polaris

FAQ and Guides

: https://wiki.orangefox.tech/en/guides

Donations

:

Support the OrangeFox Project by donating at our OpenCollective page.
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] Big Dumb Object:
So from now on we can decrypt /data on Mix 2S running on Android 12? You really did it?
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] DarthJabba9:
Yes, yes.
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] ddaggebi:
Thanks @DarthJabba9 . Installed latest Evolution X (Android 12.1) with your OrangeFox version 'R11.1_2_0_keymaster4_A12.zip'. Thought this Rom might use PE12+ tree, and vola. Installed without issues. Thanks for the continued development!
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] DarthJabba9:
OrangeFox R11.1_2 Stable released

I have released OrangeFox R11.1_2 (A12)

Stable

.

Changes

:

* Based on the Android 12.1 manifest

* Support Android 12+ encryption

* Update the Magisk addon to v25.2

* Update to the latest upstream commits

* New kernel

* Remove obsolete addons

* Lots of other enhancements

Variants

:

There are

two

different variants of this release - and

they are not compatible with each other

:

1.

OrangeFox-R11.1_2_A12

- the "

Standard

" variant;

* Supports only ROMs using keymaster 3.0 - this would represent the

vast majority

of ROMs (eg, Lineage, ROMs based on Lineage trees, etc). See the notes on the other variant for more relevant information

* It may or may not work with MIUI ROMs (if it doesn't, then stick with the last Stable release)

* Do not use with PE ROMs, or any ROM that uses keymaster 4.0.

2.

R11.1_2_dynamic_A12

- the "

Dynamic

" variant;

* Supports only Android 12+ ROMs

with retrofitted dynamic partitions

and keymaster 4.0 (eg, PE13)

* Do NOT use with MIUI ROMs

* Do not use with Lineage ROMs, or any ROM based on Lineage trees, or any other ROM that uses keymaster 3.0.

Notes

:

* Be sure to choose the correct variant for your ROM. If you choose the wrong variant, it will NOT boot at all, and will simply get stuck at the OrangeFox logo.

* After restoring any backups that include encrypted data, and booting to Android, you should reboot the ROM once or twice, using the power button

* Always make a FULL backup of your data and internal storage BEFORE flashing

* Report problems in the "OrangeFox Recovery Recovery Support->Stable Support" chat on Telegram. You should make a FULL report, and you MUST include the recovery log

Downloads

:

OrangeFox download site: https://orangefox.download/device/polaris

FAQ and Guides

: https://wiki.orangefox.tech/en/guides

Donations

:

Support the OrangeFox Project by donating at our OpenCollective page.
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] NoGoodUserNamesLeft:
Works fine for me.

Thank you very much for your hard work! :love:

I am now using the standard variant of R11.1_2_A12 with LineageOS 19.1 and I have successfully used the following functions:

Pin entry and decryption after booting to recovery

Installing of ZIP files (first I have booted to recovery using the recovery.img file without flashing, once there I have installed the recovery zip file)

Creating a backup of multiple partitions (did not try restoring from backup yet)

Accessing phone's file system via USB

ADB commands:

Executing shell commands

Pulling files from phone to PC

Sideload of custom ROM ZIP file

Rebooting to system
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] NoGoodUserNamesLeft:
The Mi MIX 2S has been added to the LineageOS 20 build roster:

https://lineageos.org/Changelog-27/

https://wiki.lineageos.org/devices/polaris/

https://buildkite.com/lineageos/android/builds/51344

Will development of OrangeFox Recovery be continued for the Mi MIX 2S to support Android 13 ROMs?
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] DarthJabba9:
It already supports PE13 (in a separate variant). Everything will depend on what other A13 ROMs do, in terms of their encryption protocols.

BTW: the same build that works for LOS-19.1 should work equally fine with LOS-20.0, since it doesn't seem that the encryption protocols have changed between them.
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] NoGoodUserNamesLeft:
Thank you very much for the confirmation!

I have now upgraded from LOS19.1 to 20 and I can confirm the decryption is still working with the "Standard" variant (OrangeFox-R11.1_2_A12):

There is a PIN entry after booting to recovery and the user files are being shown.
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] Truelan:
does Disable Force Encryption worked on LOS20?

I tried several time. but does not work.

in installation log, found FE and DFE applied. but, after reboot. encrypted.
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] Seosam:
I used it to upgrade PE12 to PE13 without formating and it works. Thank you so much for this!😍
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] Big Dumb Object:
Having a problem with the restoring. Yesterday I successfully created two backups on the OTG flash drive after activating the digest verification option. Then, after a short time, I tried running the restore, but both backup images started with the digest verification error on either partition.

By browsing the forum, I found similar complaints on this part, but couldn't find any mentions of digest verification bugs in your own documentation, so I hesitate to determine on which side the problem lies. Please help me to understand.

And another question to top it off. Looking at all these OrangeFox's options and settings related to the OTA, I wonder if any of them can help Magisk to survive through the ROM update. I still miss the good old days when we could receive updates over the air without worrying about losing root.
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] DarthJabba9:
The broken digest verification check is a known issue. It will be fixed in the next release.

Magisk survival is overseen by Magisk survival scripts (if any).
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] Big Dumb Object:
Then looking forward to the next release!

And thanks for the tip about survival scripts. I dived into this topic and learned that in order for Magisk to survive through OTA, it needs to be installed by flashing .zip from recovery with encryption support (like OrangeFox), or replaced with its fork Lygisk, at least on A-only devices like ours. Now I want to experiment with this, but first I would like to wait until the backup function is fixed.
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] DarthJabba9:
You're free to wait if you wish, but this is not a priority that will trigger a quick new release, because there's nothing wrong with the backups. It is only the verification checks for the digest that return false negatives. All you need do is to untick the "Enable Digest verification ..." box before swiping to restore a backup. If you don't wish to do that (which is what everybody else does) that's fine. But there's no hurry on my part.
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] DarthJabba9:
I'm sure whatever you're saying is very interesting. But it's not English.
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] Phuchaudf:
Sorry, I used Chrome but yesterday it translated my answer and I didn't check it again, sorry for that, but it seems Crdroid has a problem, hopefully it can fix it because this is my favorite recovery
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] Phuchaudf:
But I think yes, don't know why but the latest release conflicts with Crdroid A11, other Android 11 based roms (DotOs, Pixel Experience, LOS, ...)it's fine until i use Crdroid, user decryption not working, It will always say wrong password. I have to use older versions, it works but decoding is quite slow.
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] DarthJabba9:
"Based on the Android 12.1 manifest" means do not use with Android releases below 12.1
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] XDRdaniel:
Yes, I am encrypted with a pin. Orangefox did not ask for a decryption pass on boot. I then flashed twrp, and it still won't ask for a password. So I dirty flashed the ROM (miui beta 9.1.24) and it works again but it seems that twrp still won't decrypt
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] DahakePL:
It isn't. I hate encryption
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] DarthJabba9:
I am not sure that dirty-flashing is the solution (just replacing the boot image with stock might have been a better solution) - because dirty flashing can lead to a state where there is a disconnect between what is in the system partition and the data partition. I am afraid a clean flash might be the best option. Presumably you have a backup of your ROM?

PS: there shouldn't be a problem with MIUI - is this stock MIUI or Xiaomi.eu ?
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] DarthJabba9:
It does tend to cause a lot of problems - but it is a very good thing to have - if you value the privacy your data (I know that some people believe that the notion of privacy on a smart phone is a pipe dream, seeing that our devices are leaking all sorts of information all the time!).
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] XDRdaniel:
It was the solution in my case, just to get the ROM working again without having to reset the device. I don't really use twrp and as long as I have magisk installed I'll be alright
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] DarthJabba9:
Ok. Are you running Xiaomi.eu ?
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] teaken:
1. Not encrypted;

2. EXT4

3. Pixel Experiance

4. nt35596s

5. Just OrangeFox

6. No log file as I had to do a full wipe to get my phone to boot again
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] XDRdaniel:
No, I'm using global official beta
[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] DarthJabba9:
Thanks. But this is now more mysterious than ever. If you are not encrypted, there is no reason I can think of why there should have been

any

problem at all - and certainly not any problem that a dirty flash should not have solved. In fact, just flashing the stock boot image should cure all problems (all that happens is that the boot image and the fstab file are patched for dm-verity and forced-encryption, and a full wipe should be totally unnecessary). TBH, I think there is something else going on there. Unfortunately, since we have no logs, there is little else that I can do to investigate this.