[RECOVERY][UNOFFICIAL] OrangeFox Recovery Project [OnePlus 8t / 9r] [19-MAY-2023]

Search This thread
Hello I'm on stock OOS13 and just booted Orange Fox in order to install firmware.

When I loaded up the recovery it gave me the notice that my data was encrypted. If I would like to use Orange Fox on a regular basis with either OOS13 or custom ROM I would have to flash instead of boot and also format my data?
 

Wishmasterflo

Senior Member
Nov 21, 2018
1,606
1,168
Stockholm
OnePlus 8T
Google Pixel 7a
Hello I'm on stock OOS13 and just booted Orange Fox in order to install firmware.

When I loaded up the recovery it gave me the notice that my data was encrypted. If I would like to use Orange Fox on a regular basis with either OOS13 or custom ROM I would have to flash instead of boot and also format my data?
Yes then you flash it if you want to use it as your recovery.
Format data you only need to do if you are flashing a new ROM but when just flashing Orangefox you dont need to format data.
M y Orangefox is able to decrypt data on OOS13 (on Oneplus 8t/9r). And I guess OOS13 is using EROFS so flash the EROFS Version of Orangefox
If you have a OP8/8Pro with OOS then those are using an older encryption method (FBEv1) so in that case you need to use a FBEv1 recovery as my Orangefox only de FBEv2 !!
 
Last edited:
Yes then you flash it if you want to use it as your recovery.
Format data you only need to do if you are flashing a new ROM but when just flashing Orangefox you dont need to format data.
M y Orangefox is able to decrypt data on OOS13 (on Oneplus 8t/9r). And I guess OOS13 is using EROFS so flash the EROFS Version of Orangefox
If you have a OP8/8Pro with OOS then those are using an older encryption method (FBEv1) so in that case you need to use a FBEv1 recovery as my Orangefox only de FBEv2 !!

I'm using a OnePlus 8T KB2007 that was converted to EU so now on KB2003-F.62....so sounds like the EROFS version is what I need.

I'll flash that and format/decrypt once I switch from stock to a custom ROM which I'm planning to do soon.
 

Turtle142

New member
Mar 16, 2023
1
0
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 Recovery for the Oneplus 8t/9r
Download (for Android 12.x, 13 ROMs) (OOS12/OOS13 Based)
Download (for Android 11 and below) (OOS11 Based)
Download FBEv1 Version Oneplus 8

Download FBEv1 Version Oneplus 8Pro

Boot it with: fastboot boot OrangeFox-R12.1-Unofficial-OPKONA-V15.img
or flash it with: fastboot flash recovery OrangeFox-R12.1-Unofficial-OPKONA-V15.img
The OrangeFox-R12.1-Unofficial-OPKONA-V15.zip can be flashed or sideloaded in recovery to install the Fox addons like Magisk etc.

For Android 11 and lower ROMs please use Orangefox 11 from here.

If the touchscreen is not working for you after booting/flashing Orangefox please make sure that the booted Orangefox is on the same OOS base as your phone is on!

Note: fastbootd is not working on the OOS13 based Orangefox!!

Take a look at
this Post from TWRP in regards of Backup and Restore or
here from the Orangefox wiki.


Keep in mind! Never flash a recovery file if you are not on the same OOS Firmware as the recovery is for, otherwise you will end up in Qualcomm Crashdump mode or just a black screen.
Always just do a fastboot boot recovery.img until you are on the same OOS Firmware on your phone as the recovery is for, only then you can flash it with fastboot flash recovery as well!

Firmware Flasher Download

ROM Flashing instructions:
(take a look at the Spoiler above if you need to switch OOS Firmware Base for your ROM)
-Flash ROM
-Flash OrangeFox (only when your device is on the same OOS FW as the recovery)
-Reboot to recovery (to switch slot)
-Flash Gapps (if needed)
-Flash Magisk (Magisk can be installed through Fox addons - Install Magisk as well)
-Format data
-Reboot to system

If you get a Bootloop after flashing a ROM and having done a Format Data do the below:

Boot to bootloader and:
- fastboot devices
- fastboot -w
- fastboot reboot


Orangefox OP8 series and 9r Unified
XDA Thread
Source Code: https://gitlab.com/OrangeFox
Device Tree (A12):
https://github.com/Wishmasterflo/device_oneplus_opkona/releases
Device Tree Kebab (A11): https://github.com/Wishmasterflo/android_device_oneplus_kebab
Wiki/FAQ: https://wiki.orangefox.tech/en/guides
older Versions of OrangeFox R11.1:
download


OrangeFox Version: R12.1
Version: V15
Last Updated: 02-Feb-2023

Changelog
R12.1 V15 02-Feb-2023
- Updated my build system which seems to have fixed some bugs in Orangefox now
(old log zip file cleaning, disable reflash current Orangefox, etc) all that should work now
- Synced with latest fox_12.1 changes
- Removed flag for TW_USE_FSCRYPT_POLICY as Orangefox should detect that automatically now
- Switched to Meteoric Kernel
- Fixed USB file Transfer

R11.1 V14 07-Nov-2022
- Adjusted some devive specific settings
- Exclude /data/fonts from Backup to avoid errors during Backup
- Changed splash screen background color to black

old Changelogs


Credits
* ApexLegend007 for Android 12.1 device Tree
* The-Incognito for Recovery Trees of Oneplus 8T
* YumeMichi For Implementing Erofs and Other Misc
* bigbiff for decryption
* Pranav Talmale for decryption
* Systemad for original tree
* CaptainThrowback for original tree
* mauronofrio for original tree
* BillGoss for Backup and Restore
* Qnorsten for OOS fix
* TWRP team
* OrangeFox team
I have a one plus 8 pro running oxygen os 13, will this work? I already bricked the phone once, don't want to do again.
 

Wishmasterflo

Senior Member
Nov 21, 2018
1,606
1,168
Stockholm
OnePlus 8T
Google Pixel 7a
OrangeFox Recovery Oneplus 8/8Pro/8t/9r R12.1 V16

For OOS13 and OOS13 based custom ROMs

Changelog:

- OOS13 Based (should work with both ext4 and EROFS ROMs)
- Fixed device detection for Oneplus9R
- Misc changes and adjustments
- Updated with latest Orangefox source changes
- Updated with latest Meteoric Kernel

Download link to this new Version as well as old OOS12 and OOS11 based Versions is in the OP.
 

BillGoss

Senior Member
Sep 2, 2010
5,610
4,954
Sydney
OnePlus 8T
OnePlus 9 Pro
Did some testing on v16 on OOS 13 F.62.
Backup and restore both work well.
After the restore, the phone spent a very long time in the boot animation and eventually rebooted again.
At that point I ejected the SIM card and then it did the usual first reboot which requires a second reboot before it comes up properly.

However, restore won't work if digest verification is turned on - see attached recovery log.

Also, the recovery log was created with the incorrect attributes (see screenshot) and can't be accessed once the phone boots.
 

Attachments

  • Screenshot_2023-03-21-15-46-19_1.png
    Screenshot_2023-03-21-15-46-19_1.png
    62.7 KB · Views: 29
  • recovery.zip
    12.2 KB · Views: 2
Last edited:

Wishmasterflo

Senior Member
Nov 21, 2018
1,606
1,168
Stockholm
OnePlus 8T
Google Pixel 7a
FYI

It seems that flashing or sideloading Magisk is not working in the new Orangefox V16 Version by some reason.
It just gets stuck during installation.

I have no clue why, must be something Kernel related I guess. I have to check on that!

EDIT: I have removed the V16 download files now until I have fixed the Kernel/Magisk flashing issues!

This is fixed now and I have uploaded an updated V16 Version now.
 
Last edited:
  • Like
Reactions: dahawthorne

Wishmasterflo

Senior Member
Nov 21, 2018
1,606
1,168
Stockholm
OnePlus 8T
Google Pixel 7a
Did some testing on v16 on OOS 13 F.62.
Backup and restore both work well.
After the restore, the phone spent a very long time in the boot animation and eventually rebooted again.
At that point I ejected the SIM card and then it did the usual first reboot which requires a second reboot before it comes up properly.

However, restore won't work if digest verification is turned on - see attached recovery log.

Also, the recovery log was created with the incorrect attributes (see screenshot) and can't be accessed once the phone boots.
Seems that this file permission issue had started when I switched to Meteoric Kernel to fix the USB mtp issue so will check on that.

EDIT: OK guess I found the issue since it is working for me again now when I rebuilt Orangefox now and trying to fix fastbootd now.
 
Last edited:

Wishmasterflo

Senior Member
Nov 21, 2018
1,606
1,168
Stockholm
OnePlus 8T
Google Pixel 7a
Orangefox V17

Changelog
R12.1 V17 01-Apr-2023
- OOS13 Based (should work with both ext4 and EROFS ROMs)
- Changed Fastboot v1.0 to v1.1
- Fixed permission issues when creating files in Orangefox

I tried to fix Fastbootd in OOS13 based Orangefox as well but it seems that it is still not working. At least for me not.
 
Last edited:

BillGoss

Senior Member
Sep 2, 2010
5,610
4,954
Sydney
OnePlus 8T
OnePlus 9 Pro
Orangefox V17

Changelog
R12.1 V17 01-Apr-2023
- OOS13 Based (should work with both ext4 and EROFS ROMs)
- Changed Fastboot v1.0 to v1.1
- Fixed permission issues when creating files in Orangefox

I tried to fix Fastbootd in OOS13 based Orangefox as well but it seems that it is still not working. At least for me not.
Can confirm that files are now created with correct attributes (thank you!) and that fastbootd still doesn't work (no PC connection).
Also digest verification on restore is still broken.
 
  • Like
Reactions: Wishmasterflo

Top Liked Posts

  • There are no posts matching your filters.
  • 4
    Can confirm that files are now created with correct attributes (thank you!) and that fastbootd still doesn't work (no PC connection).
    Also digest verification on restore is still broken.
    FYI
    The digest verification on restore should be fixed with the next release.
    2
    A question for Bill Goss.
    "Things to be aware of:
    EU only: You MUST
    have Airplane mode turned ON"
    OnePlus 8T, OOS 13 F.63 EU. OrangeFox-R12.1-OPKONA-V17.img.
    The above quotation is from Bill's TWRP instructions of August 2022, and I've assumed that it also applies to OrangeFox. But after several new releases of OF & TWRP since then, does this "airplane on" still apply?
    Thanks for your very helpful contributions, Bill.
    Firstly, if you want to get someone's attention you need to write @<user name> otherwise they don't get notified.

    Now for the long answer to your question.
    I no longer turn on airplane mode before taking a backup on KB2003. Unfortunately I can't tell at what point I changed my process. And, to make matters worse, I've used this Orange Fox, @apophis9283's TWRP version, and an unpublished version of TWRP from @Siddhant221 and I can't remember at which point I no longer needed to not turn airplane mode on before taking a backup.

    My guess is that it was when I was using @apophis9283's version because he made some great changes and @Siddhant221's version (which is currently my preferred version) is based on his version.

    But I've not tested (or more correctly "I've no recollection of testing") this on the latest version of Orange Fox, so the safe option is to turn on airplane mode before taking the backup.

    Of course, you could take two backups: one with Airplane mode on, one with it off. Then restore the airplane off backup and if it doesn't work, restore the airplane on backup. And post your results here so that others can benefit from your testing.

    Update: I tested if Airplane mode was necessary for restoring a backup using OrangeFox-R12.1-OPKONA-V17 on KB2003_11_F.63 and the answer is "You don't need to turn airplane mode on".
    And I think that it's F.63 (or possibly F.62) that changed the behaviour rather than the recovery. But I can't be sure because I didn't keep a record of when I noticed the change in behaviour.
    Bottom line: on the latest Orange Fox (and TWRP) a backup of F.63 can be restored without enabling airplane mode for the backup.
    2
    Firstly, if you want to get someone's attention you need to write @<user name> otherwise they don't get notified.

    Now for the long answer to your question.
    I no longer turn on airplane mode before taking a backup on KB2003. Unfortunately I can't tell at what point I changed my process. And, to make matters worse, I've used this Orange Fox, @apophis9283's TWRP version, and an unpublished version of TWRP from @Siddhant221 and I can't remember at which point I no longer needed to not turn airplane mode on before taking a backup.

    My guess is that it was when I was using @apophis9283's version because he made some great changes and @Siddhant221's version (which is currently my preferred version) is based on his version.

    But I've not tested (or more correctly "I've no recollection of testing") this on the latest version of Orange Fox, so the safe option is to turn on airplane mode before taking the backup.

    Of course, you could take two backups: one with Airplane mode on, one with it off. Then restore the airplane off backup and if it doesn't work, restore the airplane on backup. And post your results here so that others can benefit from your testing.
    Yeah due to no longer having this device anymore and becoming a moderator I will no longer be working on this. However my tress are there for anyone to use.
    2
    Updated Orangefox recovery V18 :)

    Changelog
    - Synced with latest Orangefox source changes

    Download link is updated in the OP.
    2
    See my update to previous post!
    That's great news, Bill - thanks. And thanks for taking the time and trouble to test.
  • 30
    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 Recovery for the Oneplus 8t/9r
    Download (for Android 13 ROMs) (OOS13 Based)
    Download (for Android 12.x, 13 ROMs) (OOS12 Based)
    Download (for Android 11 ROMs) (OOS11 Based)
    Download FBEv1 Version Oneplus 8 (OOS13 Based)

    Download FBEv1 Version Oneplus 8Pro (OOS12 Based)
    Download FBEv1 Version Oneplus 8Pro (OOS13 Based)


    Boot it with: fastboot boot OrangeFox-R12.1-OPKONA-V18.img
    or flash it with: fastboot flash recovery OrangeFox-R12.1-OPKONA-V18.img
    The OrangeFox-R12.1-OPKONA-V17.zip can be flashed or sideloaded in recovery to install the Fox addons like Magisk etc.


    If the touchscreen is not working for you after booting/flashing Orangefox please make sure that the booted Orangefox is on the same OOS base as your phone is on!

    Note: fastbootd is not working on the OOS13 based Orangefox!!

    Take a look at
    this Post from TWRP in regards of Backup and Restore or
    here from the Orangefox wiki.


    Keep in mind! Never flash a recovery file if you are not on the same OOS Firmware as the recovery is for, otherwise you will end up in Qualcomm Crashdump mode or just a black screen.
    Always just do a fastboot boot recovery.img until you are on the same OOS Firmware on your phone as the recovery is for, only then you can flash it with fastboot flash recovery as well!

    Firmware Flasher Download

    ROM Flashing instructions:
    (take a look at the Spoiler above if you need to switch OOS Firmware Base for your ROM)
    From OOS to custom ROM

    - Boot to Orangefox
    - Format data
    - Switch slot
    - Reboot to recovery
    - sideload/flash ROM
    - sideload/flash Orangefox.zip
    - reboot to recovery
    - Flash Magisk (Magisk can be installed through Fox addons - Install Magisk as well)
    - Reboot to system

    From custom to custom ROM

    - Boot to Orangefox
    - Format Data
    - sideload/flash ROM
    - sideload/flash Orangefox.zip
    - Reboot to recovery
    - Flash Magisk (Magisk can be installed through Fox addons - Install Magisk as well)
    - Reboot to system

    For Updating a custom ROM

    - Boot to Orangefox
    - sideload/flash ROM
    - sideload/flash Orangefox.zip
    - Reboot to recovery
    - Flash Magisk (Magisk can be installed through Fox addons - Install Magisk as well)
    - Reboot to system

    The Messages failed to mount system, vendor after flashing a ROM can be ignored.
    That is due to mounting those for both ext4 and EROFS and of course you can have only one of them.
    If you get a Bootloop after flashing a ROM and having done a Format Data do the below:

    Boot to bootloader and:
    - fastboot devices
    - fastboot -w
    - fastboot reboot


    Orangefox OP8 series and 9r Unified
    XDA Thread
    Source Code: https://gitlab.com/OrangeFox
    Device Tree (A12/A13):
    https://github.com/Wishmasterflo/device_oneplus_opkona/releases
    Device Tree Kebab (A11): https://github.com/Wishmasterflo/android_device_oneplus_kebab
    Wiki/FAQ: https://wiki.orangefox.tech/en/guides
    older Versions of OrangeFox R11.1:
    download


    OrangeFox Version: R12.1
    Version: V18
    Last Updated: 19-May-2023

    Changelog
    R12.1 V18 19-May-2023
    - Updated with latest Orangefox source changes

    R11.1 V14 07-Nov-2022
    - Adjusted some devive specific settings
    - Exclude /data/fonts from Backup to avoid errors during Backup
    - Changed splash screen background color to black

    old Changelogs


    Credits
    * ApexLegend007 for Android 12.1 device Tree
    * The-Incognito for Recovery Trees of Oneplus 8T
    * YumeMichi For Implementing Erofs and Other Misc
    * bigbiff for decryption
    * Pranav Talmale for decryption
    * Systemad for original tree
    * CaptainThrowback for original tree
    * mauronofrio for original tree
    * BillGoss for Backup and Restore
    * Qnorsten for OOS fix
    * TWRP team
    * OrangeFox team
    11
    Hi!

    I uploaded a new Version with the latest OrangeFox R11.1 changes

    R11.1 V9 01-June-2022
    - Synced with latest OrangeFox R11.1 changes

    FYI

    I see that the Orangefox Team is still working on the new Version R12.1 which will support Android 12 but that Version is not ready to build it yet as it still seems to have many bugs and issues.
    As soon they fully release it I will build it for our Oneplus 8t.

    Stay tuned!
    11
    Good news. 😊

    Orangefox R12.1 got released now.
    During the next week I can try to build it for the Oneplus 8t.
    9
    Hi all!

    I have updated the OP now with a Spoiler and flashing Instructions when switching from OOS11 Base Firmware to OOS12 Base Firmware or from OOS12 Base Firmware to OOS11 Base Firmware and download links for both Oneplus 8t and Oneplus 9r :)

    Keep in mind! Never flash a recovery file if you are not on the same OOS Firmware as the recovery is for, otherwise you will end up in Qualcomm Crashdump mode or just a black screen.
    Always just do a fastboot boot recovery.img until you are on the same OOS Firmware on your phone as the recovery is for, only then you can flash it with fastboot flash recovery as well!

    EDIT: It seems that the Firmware downgrade from OOS12 to OOS11 is not working on phones with DDR5 RAM, so please dont use the downgrade from OOS12 to OOS11 when you have DDR5 RAM !!!!!

    From OOS11 Firmware to OOS12 Firmware ROM
    --------------------------------------------------------
    Check DDR RAM type (from Windows cmd)
    adb shell getprop ro.boot.ddr_type
    0 - represents your device is LPDDR4X (use DDR0 Firmware file)
    1 - represents your device is LPDDR5 (use DDR1 Firmware file)
    or from Terminal on your phone
    getprop ro.boot.ddr_type
    0 - represents your device is LPDDR4X (use DDR0 Firmware file)
    1 - represents your device is LPDDR5 (use DDR1 Firmware file)
    When you are on OOS12 use this from the Orangefox Terminal:
    cat /proc/devinfo/ddr_type
    Download latest Orangefox 12.1 img file from here
    Download OOS12 flashable Firmware for your phone from here or, Oneplus 8t, Oneplus 9r
    adb reboot bootloader
    fastboot boot OrangeFox_R12.1-xx.img
    adb sideload fw_Oneplus8T_EU_cXX_DDR0.zip
    adb rebooot bootloader
    fastboot flash recovery OrangeFox_R12.1-xx.img
    fastboot reboot recovery
    Apply Update - apply via ADB
    adb sideload ROM_OOS12_Based.zip
    Factory reset/Format Data
    Reboot System


    From OOS12 Firmware to OOS11 Firmware ROM
    --------------------------------------------------------
    Please only use this right now when you have DDR4 RAM in your phone!
    (seems that phones with DDR5 RAM get issues after flashing the OOS11 Firmware)

    Check DDR RAM type (from Windows cmd)
    adb shell getprop ro.boot.ddr_type
    0 - represents your device is LPDDR4X (use DDR0 Firmware file)
    1 - represents your device is LPDDR5 (use DDR1 Firmware file)
    or from Terminal on your phone
    getprop ro.boot.ddr_type
    0 - represents your device is LPDDR4X (use DDR0 Firmware file)
    1 - represents your device is LPDDR5 (use DDR1 Firmware file)
    When you are on OOS12 use this from the Orangefox Terminal:
    cat /proc/devinfo/ddr_type
    Download latest Orangefox 12.1 img file from here
    Download OOS11 flashable Firmware for your phone from here or, Oneplus 8t, Oneplus 9r
    Download Recovery_OOS11_FW_Android12_decryption.img from here
    adb reboot bootloader
    fastboot boot Orangefox R12.1 recovery
    flash OOS11.0.13.13 Firmware
    flash ROM_OOS11_Based.zip
    reboot to bootloader
    fastboot boot Recovery_OOS11_FW_Android12_decryption.img
    Factory reset/Format Data
    Reboot System
    8
    Hey, at least its one step closer to finally switching to the new firmware. :)
    Yes I am a step closer now, I have updated it now with OOS12 files but still no luck in getting the decryption of data working.
    Guess I have to add/update some more things to get that working.
    Seems to me now that it is not even trying to decrypt now since something is missing or not yet updated.
    Have to dive deeper into this to understand what more needs to be fixed /updated now.