yashsingh1/xdaforums huggingface dataset:
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] DarthJabba9:
The instructions are to guarantee trouble-free operation, with no hidden things causing problems. You can dirty-flash MIUI - for example, if it is a small update. But something big like 9.x.x to 10.x.x requires a clean flash. The bottom line is that if you dirty-flash and you encounter problems, the first thing that anyone will tell you (if they answer at all) is "first perform a clean flash".

BTW: this discussion is OT in this thread.
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] FuLygon:
thanks, i understand it now, thank you both for helping me :good: and sorry, dont know it was OT here
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] Xipe_Totec:
Hello there,

first of all, thank you for this awesome recovery. It works very well.

Then, I would ask if someone noted a bug while setting time zone.
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] Redskitter:
Thanks [MENTION=5850987]DarthJabba9[/MENTION] You're the best.
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] HSWG:
i am thinking of using this for my mi max 3 and install magisk, how is this different from twrp?

Also, once i installed this and root with magisk, will i still be able to update my miui inside??

I read some stuff on the main post but i do not clearly understand.
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] obbama:
Hi, I want to install this recovery (Im currently on TWRP with a version of LOS 16.0) because I want to install and try a different version of LOS 16.0 that recommends this recovery. I read all those faqs, but I still have a (simple?) question that might sound a bit stupid:

As far as I've read, it's a pretty self-explanatory procedure to flash this over TWRP: just copy the zip and flash it. But you mention everywhere, and after almost every step, to "reboot OrangeFox", including when installing OrangeFox itself. Before doing so, how do I do that? Does a swipe arrow appear after installing or something?
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] HSWG:
it will auto reboot to orangefox
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] hyborian:
Some people, like me, have a problem with TWRP, an error about Treble.

Furthermore, once Note 7 gets Android 10, I think OrangeFox for Note 7 will serve us well, thanks to DarthJabba

You can update MIUI by flashing the full ROM using OrangFox. I just did a couple of days ago, updated to 10.3.12 Global Stable. No OTA support, but I think it's the same with TWRP too. Just flash the full ROM.
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] HSWG:
i flashed orangefox and it worked for me.
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] nagesh nani:
Anna mobile Bootloader relock. but encrypted problem setavuthadha.ple solution
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] hadzard:
Greetings for your great works! I want to ask how to remove my locking pattern every time my device reboot.. I already wipe all data (internal storage, data, cache, dalvik) but still I have to unlock pattern first.. Please help..
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] Aaagogo:
just came over from TWRP 3.2.3-2(unofficial) by ICEMAN over at xiaomi.eu

followed instructions, OrangeFox Recovery working perfectly.

I like the GUI of OrangeFox over TWRP.
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] DarthJabba9:
Format data (note this will also wipe your internal storage). And, next time, don't encrypt with your lockscreen password, and don't tick "Yes" on the Secure Startup screen when setting a PIN/pattern/password.
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] suba5h:
how to fix, unable to mount storage in orange fox.

Im unable to wipe.

I tried changing from pattern to pin and it says wrong pin for decryption
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] DarthJabba9:
You have not explained exactly how you got to this point. But in any case, you might need to format your data partition (which will also wipe the contents of your internal storage). For the reasons why you might need to format data, read the README file here:

https://sourceforge.net/projects/orangefox/files/lavender/
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] Redmice:
How do I clean flash custom kernels on OrangeFox Recovery?
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] nagesh nani:
Why mobile encrypted problem reason.Anna only n mobile ka all mobile ka e problem ple
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] DarthJabba9:
Wipe data and caches.
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] DarthJabba9:
You are not making any sense. :confused:
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] m7ixalis:
Hello, I made a clean install (format data) of twrp olso installed magisk beta and everything works fine ,the only problem is that i can't open play store when am connecting to wifi .What i have done wrong ?

Am on latest global stock rom .

Thank you.

Στάλθηκε από το Redmi Note 7 μου χρησιμοποιώντας Tapatalk
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] Walden0:
Um , actually he asked about kernel flashing.

---------- Post added at 10:57 AM ---------- Previous post was at 10:54 AM ----------

It is not related to recovery , still, you need to flash the boot.img of the rom first and then magisk/kernel.

Dirty flashing in the context of kernels is when you flash a custom kernel over another custom kernel. If you are flashing it over stock kernel , no need to flash the boot.img (found in the zip of the rom)
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] audinswfc:
Currently running official 10.3.6 EU ROM. I've just flashed Orange Fox via fastboot and then flashed the Orange Fox ZIP (latest version), but I can't decrypt storage. It's only giving me an option to enter a pattern but my device is PIN encrypted, not pattern. How do I make Orange Fox allow me to enter PIN instead of pattern please?

UPDATE: Just booted to system and changed from PIN to pattern, and then rebooted to Orange Fox recovery. Recovery now wants me to enter a PIN. I don't understand what's going on...

Also, Orange Fox isn't surviving reboots despite me swiping to allow system modification. I've followed the readme so I don't know what i'm doing wrong. Please help.
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] dbzdivik:
[MENTION=5850987]DarthJabba9[/MENTION]

Hi Tried Orange Fox for Lavender its so smooth truly TWRP Successor.

BTW 2 Queries :

1. Flashed MIUI 11 Recovery Rom via OrangeFox on Lavender and now when i'm getting OTA updates on First download and Reboot Recovery ROM (OF) doesn't let me update ROM, I've to download ROM again via OTA and then Recovery ROM (OF) update MIUI ROM Correctly. Any Suggestions

2. I've Custom Android Device neither Kernel,Vendor nor any other repos, So I read somewhere instead of directly trying to Create Custom Rom need to make Recovery Rom. Any TUT to make Recovery ROM i.e OrangeFox for my Device.

Thanks
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] DarthJabba9:
This is nothing to do with a recovery.
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] DarthJabba9:
Indeed. My bad. It looked like "clean ROM" to me, but it wasn't.:o
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] DarthJabba9:
Sorry, but I have never seen this behaviour before, so, without seeing the logs, I can't comment.

Make sure that "Aggresive stock recoovery deactivation" is ticked (under the "OTA & ROM" settings).
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] DarthJabba9:
1. Why would you want to do this, when the documentation explains very clearly that MIUI OTA updates are not supported?

2. Sorry, but I have no idea what you mean.
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] Tanay nag:
When i am trying it on RN7s

I flash recovery from computer it flashed successfully

Then i boot into recovery then i flashed the recovery zip again and i boot in recovery.

Then i boot in system futon recovery.

Next time when i go to recovery it replaced with stock recovery.

And also facing same problem in orange fox.:confused::confused:
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] iPAQ 6515a User:
OFR does not work with OpenRecoveryScript ;( .... it hangs on backing up system. On top of it, although only system and data chosen, all the partitions are being backed up (till system, then it hangs).

TWRP has none of these problems.

I am using Flasher for that.
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] DarthJabba9:
I have no idea what you are talking about, and unless you post the logs, I can only speculate.
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] iPAQ 6515a User:
Sorry, did not know how to log it as Fox Recovery froze. As I use the openrecoveryscript a lot, I went back to TWRP but wanted to let you know.

If testing needed, one can install Flasher from the Playstore and see for oneself.

Sorry for not being of more help.

This is not to dis your work, which btw is a massive upgrade over TWRP, but to let you know about this bug.

Hopefully someone else can help with the logs.

Cheers
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] DarthJabba9:
Thanks. But I still have no idea what exactly you were trying to do with the openrecovery script, or why there is a problem, or what the problem is. We have not experienced any problems at all with openrecoveryscript (on any device), so this is the first I have heard of.

BTW, even if the recovery seems to have hung, adb access is often still available. So you may possibly still be able to get the logs via adb commands - eg

adb pull /tmp/recovery.log
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] dbzdivik:
I meant how can I Create Orange Fox Recovery Rom for MY Custom Android Device for which I can't find Kernel or Vendor Repos online.
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] DarthJabba9:
Sorry but that is OT in this thread.

But I would recommending looking for a TWRP device tree for the device. And if there isn't one, then you will need to develop one for yourself. You can get some tips here - https://github.com/TwrpBuilder
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] a.marduk:
[MENTION=5850987]DarthJabba9[/MENTION] please bring back efs backup? imei related backup, thanks
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] DarthJabba9:
I will consider restoring it in the next release.
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] iPAQ 6515a User:
Just reporting back. After reflashing stock ROM on my lavender .... all is working 100%. Great recovery, at the end I am sold, no more TWRP. Cheers
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] DarthJabba9:
Good to know that it is all working well now. :good:
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] Walden0:
Please do , I have seen the rare cases where switching from aosp to miui wipes the IMEI number. I was also wondering why EFS isn't in orangefox for lavender.
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] hrk2:
Same problem here, running latest Xiaomi.EU weekly. But when running unofficial LineageOS 16 (by Amulyax), on the same device, all is well. Maybe credential type is stored differently in MIUI?

Edit:

https://review.lineageos.org/c/LineageOS/android_system_vold/+/231354
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] DarthJabba9:
See the README.md here - https://sourceforge.net/projects/orangefox/files/lavender/

:good: This code has been part of TWRP-based recoveries for a long time. It is now a matter for ROM devs.
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] hrk2:
I have read your readme, and my lavender is truly encrypted (FDE). The Xiaomi bug you describe does not apply here. Maybe it is another bug. Probably is, because twrp (two separate versions) suffer from the same.
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] DarthJabba9:
This is not really an issue of "truly encrypted" or of "bugs". As explained,
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] hrk2:
Yes I have formatted data. But obviously this is not a recovery issue. Sorry I asked. To be able to use xiaomi.eu on the lavender, I must either remove lock screen password or not enable "encrypt device using lock screen password" (secure start-up). No problem with my other Xiaomi.
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] DarthJabba9:
Our beloved lavender is in a class of its own ...
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] hrk2:
When one notices that decryption works fine from terminal command line:

twrp decrypt 1234

... one is lead to think that the problem is on UI level after all, and could be solved by simple special-casing. Xiaomi.eu probably is the most-used custom rom on Lavender, and should be supported if possible.
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] DarthJabba9:
One is free to think whatever one wishes to think. ;) And one is welcome to contribute a fix for the "UI level" problem that one thinks that one may have discovered.
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] nagesh nani:
Havoc os lo magisk not safety security this is images .what is the problem
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] IThinkALot:
Sorry for the off topic but I got this error when I flash orange fox thru fastboot. I unlock the bootloader successfully and flash orange fox thru fastboot successfully on the first try, and I reboot to system successfully, but when I reboot to recovery it only shows stock recovery and when I try to flash orange fox again thru fastboot I got this error
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] Tatoh:
I never flashed this recovery with fastboot, but, when you flash a recovery you have to boot to it first if you are on miui or it will be replaced by stock. The command is fine, a recommendation though, if you have more than one phone i will not recommend using the downloads folder to flash things.
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] Najmulnirob80:
Thanks You man
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] Walden0:
Wrong thread .
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] IThinkALot:
Like fastboot boot twrp.img? And then when I boot to twrp I'll then need to flash twrp.img using twrp?
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] Walden0:
you should check the correct commands over the net , for me 'boot' command didn't do anything but 'flash command' worked. Then I booted directly to recovery with buttons and flashed the recovery.zip

you should remember to keep pressing the power and vol up button only until redmi logo shows up , then you should release the power button but keep holding the vol up.
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] IThinkALot:
The 'flash' command for me didn't work, it gives the error that I posted with the pic. I must messed something up with the button pressing process. Now when I boot to bootloader mode, the phone automatically reboot to sytem but not if I manually boot it with 'adb reboot bootloader' and when I try that 'flash' command (once again it fails) there's a little text on the phone saying 'press any button to shut down'. Do you think flashing firmware using mi flash will fix this?
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] FuLygon:
try download and install minimal adb and fastboot, after install, copy orangefox image to minimal adb and fastboot folder (default is in C:\Program Files(x86)\Minimal ADB and Fastboot), open cmd, change directory to that folder as well and try fastboot flash command again, if succeed hold both volume+ and power button to boot to recovery, release power button once Redmi text show up, after orangefox boot up, flash orangefox zip file let it boot to recovery again, if fail try run cmd in administrator mode, check driver and other thing on your pc (you can use "fastboot devices" to see if your pc detect device or not). If you use miflash to flash rom, it will restore stock recovery back, if you planning on clean install phone using miflash, do not choose "clean all and lock" option. Good luck, that all i can help, maybe OP will have better knowledge and solution to this.
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] unhallowedone:
I did it on Linux, but I guess you are interested in every little detail. I used the Xiaomi Unlock Tool to unlock and flash the OrangeFox image. It said OK and I wanted to enter recovery just to see there is no OF recovery. Then I went into fastboot and used the command fastboot flash recovery recovery.img which did the trick - for whatever reason. Of course I made sure by checking in fastboot my phone was recognised correctly. But that's the two details on my story:

That already mentioned fastboot command should be correct, so maybe check your ADB/fastboot installation.

There is an unlock tool which (maybe) helps you. Just because it didn't work for me doesn't mean it also doesn't work for you. Worth a try.
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] CGA1:
In security there's the option "run adb on startup". Does this mean that the phone is accessible through adb even if I haven't entered my pin?
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] DarthJabba9:
I would not recommend trying to access via adb without first entering the PIN. The recovery itself will be accessible (in the same way as it would be, if you just hit the "Back" button when prompted for PIN/password) - but of course the internal storage and user data will NOT be accessible (in the same way as they would NOT be, if you just hit the "Back" button when prompted for PIN/password). In short, you would be in exactly the same position as hitting the "Back" button when prompted for PIN/password.
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] CGA1:
Ok thanks. So if I understand you correctly if I leave this box unticked the phone will not be accessible via adb at all from recovery?
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] DarthJabba9:
If by "the phone" you mean user data and internal storage, yes. The recovery itself will still be available, because it is the last resort if system and recovery are not booting up. In such cases, adb access to the recovery may still be possible (for the purpose of obtaining logs).
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] CGA1:
Got it, thanks for taking the time to explain.
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] yamal:
While the recovery seems to do its job as advertised, the orangefox website linked in the OP uses an invalid security certificate. See https://www.ssllabs.com/ssltest/analyze.html?d=files.orangefox.website&hideResults=on

In 2019, that's unacceptable for any website, let alone one used to distribute security-relevant software such as a recovery. Please do fix.
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] TobiPeter:
Search for "safety patch" in modules.

"bug" occurs because of api changes by Google.
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] DarthJabba9:
Magisk issues are not recovery issues.
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] DarthJabba9:
In case you did not notice, all it does is to redirect to "https://files.orangefox.tech" (and in due course, even that will be replaced by a simple banner). In any case, the links have been updated to https://files.orangefox.tech
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] hasanandnexus:
i facing some encryption issues when flash new rom. phone quickly booting and asks password, recovery too. i just changing rom to eu to miroom or minovo to masik and i wiped data,system,cache as well. and ranking like: rom + kernel + magisk. can anyone help to solve problem? its really annoying.
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] Pr3z3s:
The only annoying thing is that you didn't use search function because it was answered multiple times and has nothing to do with recovery. Recovery doesn't encrypt your device, ROM does.
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] yamal:
Obviously I did notice; however, that redirect from an insecure website to another, very similar sounding domain name only served as an additional red flag. After all, that is exactly what an attacker would also do.

Anyway, modifying the links to point directly to files.orangefox.tech as you did eliminates the problem. Thanks.
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] FuLygon:
okay some weird thing happen, im updating miui 10.3.12.0, i flash magisk uninstall zip first and reboot, after that i boot recovery again and stock recovery is restored, i have to install orangefox again from cmd, after that i flash orangefox zip again, boot back to orangefox and dirty flashing MIUI 10.3.12.0, while flashing, Orangefox progress start and it removing dm-verity, patching image, disable dm-verity was unticked in the first place, as you said to untick 2 option, but it still do that progress, i check the OTA and disable dm-verity auto-ticked, i dirty flash 3 time and it got auto ticked and start progress, there nothing i can do, i just leave it ticked after flashing, reboot back to recovery to flash magisk, this time i check OTA again and disable dm-verity is unticked (even tho i leave it ticked before boot, weird), after everything done, phone boot normally, magisk working fine, stock recovery no longer restored, just like before i dirty flash, tho i have some question:

1. Why stock recovery restored after im uninstall magisk ? is there anyway to prevent this, or i dont need to uninstall magisk when dirty flashing

2. I dirty flash on both Orangefox R10.0-1 and R10.0-2, same thing happen, it just gonna auto-tick Disable DM-verity and start progress, there nothing i can do to prevent that progress. Even tho phone boot normally and i havent face any issue so far, should i worry about dm-verity thing ? i did planning to extract boot.img from rom package and flash it manually in orangefox, is this a good idea ? I need some advise
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] Walden0:
1. Flashing miui generally replaces OF with stock recovery , you should keep "aggressive stock recovery deactivation" ticked.( It isn't because you uninstalled magisk).

One thing you can do to prevent it is to flash OF again before booting to system each time you flash memeui.

2. That behavior is normal. If you want to disable dm-verity and/or disable force encryption , you check the boxes before flashing the rom and before booting to system or recovery & it does the job. The proof is the fact that your device booted. Still, you can confirm it from the 'advanced settings' in magisk.
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] FuLygon:
Thanks, first question make thing a bit clear, but second answer, i dont want to disable dm-verity, as the OP said, dont tick disable dm-verity and disable force encryption box, but it still start disable dm-verity even tho i didnt enable that in the first place, i have try many thing, rollback to older orangefox, tick the box and untick again before flashing, but there nothing i can do to prevent that progress from starting, it just gonna start right after rom flashed, so im a bit worried even tho phone boot normally and no issue
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] Walden0:
Open magisk manager and see in advnaced settings if dm verity and forced encryption are enabled or not.
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] FuLygon:
it was enabled, lol, so basically that progress do nothing ? :eek:
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] Walden0:
It was implying that recovery isn't disabling dm verity and encryption. I hope you can sleep sound now :p
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] FuLygon:
lol thank for helping :laugh:
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] IThinkALot:
Am I doing something wrong? I can't get to boot to twrp, once I reboot to system and reboot back to twrp by power button and volume up, twrp is gone and I got stock recovery instead
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] IThinkALot:
This is my step
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] P.Rabbit:
So how can I resolve the situation?

Can I flash the rom using the fastboot method? I am afraid of damaging the device, although I have used the Fastboot method in other Xiaomi.