• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!
  • Fill out your device list and let everyone know which phones you have!    Edit Your Device Inventory

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

Search This thread

DarthJabba9

Senior Member
May 5, 2014
3,731
3,568
Greater London
OrangeFox Recovery Project
logo.jpg
Code:
/*
* 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

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

Notes:
Read very carefully the contents of post #2 below.

Donations:
Support the OrangeFox Project by donating at our OpenCollective page.

INSTALLATION:
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

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

FEATURES:
* 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

Contributors
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
 
Last edited:

DarthJabba9

Senior Member
May 5, 2014
3,731
3,568
Greater London
OrangeFox R11.1 Stable released

Downloads:
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

Notes:
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
------------------:
 
Last edited:

DarthJabba9

Senior Member
May 5, 2014
3,731
3,568
Greater London
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.
 
Last edited:

CGA1

Senior Member
Jul 11, 2012
190
47
Installed the last RC just the other day and now we're getting final, great! Best of all Migrate works without error messages, makes rom flashing so much easier.
 

whalesplaho

Senior Member
Feb 1, 2012
10,683
2,666
Treasure Island
How did you flashed it?
Can you please tell me the procedure you followed?

1. Flashed recovery from twrp
2. Goto partition- data- format data- yes- format
3. Goto wipe- select system/cache/data/dalvik cache- wipe
4. Goto file and select otg where i saved tha files to flash (EvolutionX.zip, magisk.zip, vbmeta.zip)
5. Flashed rom
6. Flashed magisk
7. Flashed vbmeta
8. Reboot.... Enjoy
 

P.Rabbit

Senior Member
Mar 8, 2015
315
82
Xiaomi Poco X3 NFC
I installed this recovery in the official / stable version.

I can not take the encryption in any way, I know it is not the recovery that will do this.
No way to take out the encryption? It's annoying to place a PIN at every rom reboot or TWRP.

Thanks
 

DarthJabba9

Senior Member
May 5, 2014
3,731
3,568
Greater London
I installed this recovery in the official / stable version.

I can not take the encryption in any way, I know it is not the recovery that will do this.
No way to take out the encryption? It's annoying to place a PIN at every rom reboot or TWRP.

Thanks
Do you really understand the consequences of having a lavender device that is not encrypted? I think you first need to read the README.md file here: https://files.orangefox.website/OrangeFox-Stable/lavender/
 

Top Liked Posts

  • There are no posts matching your filters.
  • 135
    OrangeFox Recovery Project
    logo.jpg
    Code:
    /*
    * 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

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

    Notes:
    Read very carefully the contents of post #2 below.

    Donations:
    Support the OrangeFox Project by donating at our OpenCollective page.

    INSTALLATION:
    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

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

    FEATURES:
    * 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

    Contributors
    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
    59
    OrangeFox R11.1 Stable released

    Downloads:
    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

    Notes:
    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
    ------------------:
    58
    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.
    22
    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)

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

    I have released OrangeFox R10.1_3 Stable.

    Downloads:
    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