[OFFICIAL][RECOVERY]OrangeFox Recovery Project [R11.1]

Search This thread


Senior Member
May 29, 2011
Ok, I will give a detailed answer, which hopefully will also clear some misconceptions about previous versions "working" without having to remove the lockscreen protection.

1. If you want access to the data partition or the internal storage in recovery mode, you will have to remove your lockscreen protection before booting to recovery.

2. If all that you want to do is to flash a ROM and then reboot to Android, then you won't normally need access to the internal storage (unless that is where your ROM zip file is located). You can just bypass the password prompt in recovery by pressing the back key. But then you will only be able to flash ROM zips from your MicroSD card or via adb sideload.

3. If a previous version of the recovery allowed you to access your internal storage without actually decrypting the data partition, then you should consider that a bug. I realise that many people see it as a feature. But it is a bug (because people shouldn't be able to access the internal storage without decrypting the data partition), and that bug has now been fixed.

I hope that this clarifies everything.

That makes perfect sense now, thank you. I always flash ROM updates from my external SD card so that should fine


Jan 11, 2017
It may be ok if the ROM has FBE. You probably should first format the data partition before flashing the new version, so that you can be sure there will be no encryption issues.
Should I wipe and formate everything and flash the new version of OF, then reboot into the recovery again and flash the Android 12 rom?

Top Liked Posts

  • There are no posts matching your filters.
  • 143
    OrangeFox Recovery Project
    * Your warranty is now void.
    * We're not responsible for bricked devices, dead SD cards,
    * thermonuclear war, or you getting fired because the alarm app failed. Please
    * do some research if you have any concerns about features included in this recovery
    * before flashing it! YOU are choosing to make these modifications, and if
    * you point the finger at us for messing up your device, we will laugh at you.
    OrangeFox is FREE SOFTWARE

    Supports Treble, Miui, Custom Roms

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

    Read very carefully the contents of post #2 below.

    0. Backup your ROM, your data, your internal storage, and your settings/apps, to an external device
    1. Download the OrangeFox zip file to your device
    2. Reboot to your custom TWRP-based Recovery
    3. Install the OrangeFox zip file as a normal zip
    4. The device will automatically reboot into OrangeFox recovery after installation (allow this to happen)
    5. Enjoy!

    Guides; Frequently Asked Questions; Installation; Troubleshooting; Sundry Information:
    * See https://wiki.orangefox.tech/en/guides

    * TeamWin - for TWRP
    * The OrangeFox Team - for your hard work
    * All our testers - for your patience and help

    * Updated with latest TWRP commits
    * Built-in support for installing init.d functionality
    * Built-in support for installing Magisk
    * AromaFM
    * Flashlight
    * Password, torch, led
    * Support for Miui and Custom ROMs
    * Superb new UI and themes
    * OrangeFox theme engine:
    - choice of theme (black, dark, etc)
    - choice of color scheme
    - choice of splash screen
    * Alternative lockscreen
    * And many more!

    Other useful information - see below

    XDA:DevDB Information
    OrangeFox Recovery Project, Tool/Utility for the Xiaomi Redmi Note 7

    DarthJabba9, MrYacha
    Source Code: https://gitlab.com/OrangeFox

    Version Information
    Status: Stable
    Current Stable Version: R11.1
    Stable Release Date: 2021-05-10

    Created 2019-06-21
    Last Updated 2021-05-10
    OrangeFox R11.1 Stable released

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

    Changelog for R11: https://wiki.orangefox.tech/changelog

    FAQ and Guides: https://wiki.orangefox.tech/en/guides

    1. The UI for OrangeFox is very different from that of any other recovery. All the expected features are there, but you need to look around and familiarize yourself with the new interface.

    2. * A very good place to start is by reading the guides here: https://wiki.orangefox.tech/en/guides

    3. Kernel sources: https://github.com/stormbreaker-project/android_kernel_xiaomi_lavender.git

    4. For lavender, always leave "Disable DM-Verity" and "Disable Forced Encryption" unticked.

    5. Backup and restore - see post number 3 below. Do not try to backup/restore anything without first reading it.

    6. Encryption is fully supported on lavender. However, there are different protocols for lavender encryption, and some of them are not compatible with each other. If you change from a ROM using one protocol to a ROM using a different one, you will need to format your data, otherwise decryption will be impossible. This is not an OrangeFox issue, so please do not ask us to "fix" it. Basically, lavender encryption is extremely flaky (ie, you should consider it to be deeply broken). So if you want to try different ROMs, then you must be prepared to format your data partition. It is best to do this before flashing the new ROM (after backing up your internal memory, of course).

    7. If you are returning to MIUI from a custom ROM, you must format your data partition before flashing MIUI. Then bootup MIUI and let it encrypt the data partition again, before doing anything else.

    8. If you are returning from MIUI to a custom ROM (or from one custom ROM to another, or from one MIUI base to another), you must first format your data partition, then reboot the recovery, then flash the full custom ROM, then boot the ROM, let it encrypt the data partition, then reboot to recovery (and if you have a backup of your data partition, you can now restore your data backup). Do not skip any of these steps, or there may be tears.

    9. If you ever move from MIUI 10 to MIUI 11, then do not be in a hurry to return to MIUI 10, because the road ahead is fraught with untold difficulties and headaches. Just suck it, and stay with MIUI 11. If you really must return to MIUI 10, your best bet is to flash a full MIUI 10 fastboot ROM with the Mi Flash tool (just make sure that you don't accidentally lock your bootloader again). And even with this approach, you will probably still have problems. Please note that I will not answer any questions relating to any dramas arising out of trying to move back from MIUI 11 to MIUI 10. You have been warned!

    10. If you are going to report any problems, you must provide full and complete details of the problems, and what led to those problems, and you must also post the recovery log.

    11. If you experience a situation where you have set a PIN, but the recovery asks for a password (or vice versa, etc), then you must ask your ROM devs to fix their ROM by applying this patch. This is not a recovery issue, so please do not ask us to "fix" it. Alternatively, you can always open a terminal in the recovery (or via "adb shell") and run "twrp decrypt password".

    12. This device originally only had Full-Disk Encryption ("FDE"). This situation still remains with respect to MIUI ROMs, and ROMs based on Android Pie. However, many new AOSP ROMs based on Android 10 are now using File-Based Encryption ("FBE"). If you are moving from a ROM with one kind of encryption to the other kind, you must format your data partition before booting the new ROM for the first time. Furthermore, if your ROM has FBE, and you have set up a lockscreen password/PIN in the ROM, then you will always be prompted for your password every time you want to enter the recovery - and you must supply your lockscreen password/PIN in order for the recovery to be able to decrypt data. This is how FBE works, and there is no getting around it (other than not using a lockscreen password/PIN in your ROM).

    Our channel - https://t.me/OrangeFoxRecovery
    Download - https://orangefox.download/device/lavender
    The OrangeFox App - App Downloads | App Discussions
    Creating and Restoring backups

    Backing up and restoring can be very problematic if not done properly. Since you will be relying on the backups, this needs to be done with great care. So, I am devoting a separate post to this topic.

    Here, I will explain what works for me (your mileage may vary). But, first of all, read this: https://twrp.me/faq/whattobackup.html (and note especially the recommendations concerning "system" versus "system_image", and "vendor" versus "vendor_image").

    1. In my opinion, only your data partition (and perhaps the internal storage) should be backed up via a Recovery. While this may seem a bit unusual, you really should always keep a copy of your full ROM's zip installer.

    By keeping a copy of your ROM's zip installer, restoring the ROM would be a simple matter of formatting data, clean-flashing the ROM, booting up the newly flashed ROM (to make sure that it actually boots, and to let it encrypt the storage in its own way), and then rebooting to recovery mode. This would give you a working device, and a fresh copy of the boot, system, and vendor partitions. Then you only need restore the backed up data (and internal storage), and you have your system again.

    2. For full backups in recovery mode (if you must), the safest option would normally consist of:
    • Boot
    • Data
    • System_Image
    • Vendor_image
    • Internal storage
    3. Do not rely entirely on a nandroid (ie, Recovery) backup of your internal storage (ie, your user data, photos, etc). It is wise to have copies in the cloud, and/or on your PC.

    4. Do not rely entirely on a nandroid (ie, Recovery) backup of your data partition. It is wise to let your ROM backup your settings and apps data to the cloud (eg, google drive), or use an app to do the same. This provides a second line of defence. The reason for this advice is the dreaded "extractTarFork() error 255" which can sometimes (and randomly) occur when backing up, or (more devastatingly) when restoring a /data partition backup. Nandroid backups of the /data partition are potentially unreliable, and that is just the way it is. You might also want to read this.

    5. Always take a backup of your user data (to an external storage device or the cloud) every time you want to flash something (anything - ROM, recovery, mods, OTA updates, or whatever else). Particularly, with a device like lavender (with very flaky encryption), flashing or updating anything at all can potentially lead to your needing to format your data partition to get rid of broken encryption (this is especially the case with regard to moving from any ROM to any other ROM). Ignore this advice at your own peril.

    6. Creating backups of encrypted data is fraught with risks. If you want to backup the data partition of an encrypted device, you would be very well advised to first delete the lockscreen password/pin in the ROM before booting to recovery to create the backup. If you don't do this, you must accept the invitation to delete the ROM password (also available in the OrangeFox add ons menu) immediately after restoring the backup. Note - with lavender, if you have any of those new Android 10 custom ROMs that use FBE, you will have to work out for yourself what works for you ...

    7. Do not try to restore a backed-up data partition from one ROM to another ROM.

    8. Do not try to restore a backup of an encrypted device to a device that is not encrypted, or to a device that is encrypted with a different encryption protocol.

    9. Watch this space for more stuff to be added in the future.
    OrangeFox R10.0_2 released

    I have released OrangeFox R10.0_2 Stable (OrangeFox-R10.0_2-Stable-lavender.zip)

    Changes: Supports Android 10 encryption (tested on Pixel Experience)

    1. OrangeFox download site: https://files.orangefox.website/OrangeFox-Stable/lavender/
    2. SourceForge: https://sourceforge.net/projects/orangefox/files/lavender/
    OrangeFox R10.1_3 Stable released

    I have released OrangeFox R10.1_3 Stable.

    OrangeFox download site: https://files.orangefox.tech/OrangeFox-Stable/lavender/
    Sourceforge: https://sourceforge.net/projects/orangefox/files/lavender/

    Changelog (General for R10.1): https://wiki.orangefox.tech/en/changelog#orangefox-r101

    Device-specific changes:
    - New kernel
    - Several optimisations and fixes
    - Release date: 05 June 2020

    FAQ and Guides: https://wiki.orangefox.tech/en/guides