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

Search This thread

Wishmasterflo

Senior Member
Nov 21, 2018
1,606
1,168
Stockholm
OnePlus 8T
Google Pixel 7a
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 8 / 8t / 8 Pro / 9r
Download (for Android 13 ROMs) (OOS13 Based)
Download (for Android 12.x, 13 ROMs) (OOS12 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

Orangefox R12.1 can only be flashed to the recovery partition if you have OOS12 Firmware, but you can still boot it with fastboot boot if you are on OOS11 Firmware and need to decrypt data on Android 12 or Android 13 ROMs.
Some things like USB OTG etc are not working when using fox_12.1 on OOS11 Firmware!

If the touchscreen is not working for you after booting/flashing Orangefox please Update your OOS/Firmware to a newer Version!

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!

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_c21_DDR0.zip
adb rebooot bootloader
fastboot flash recovery OrangeFox_R12.1-xx.img
fastboot reboot recovery
Apply Update - apply via ADB
adb sideload ROM.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!

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.zip
reboot to bootloader
fastboot boot Recovery_OOS11_FW_Android12_decryption.img
Factory reset/Format Data
Reboot System

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



Source Code: https://gitlab.com/OrangeFox
Device Tree (A12/A13):
https://github.com/Wishmasterflo/device_oneplus_opkona/releases
Device Tree OP8/8Pro FBEv1: https://github.com/SENSEIIIII/twrp_device_OnePlus_instantnoodlep
Wiki/FAQ: https://wiki.orangefox.tech/en/guides


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

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

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

mmoritz

Member
Sep 21, 2021
11
3
thanks so much for hookin up the op8 users with a recovery that has some substance :)

Am I correct in assuming that I'm not seeing anything in my data partition (for backup purposes) because of this?

Data decryption on OP8 and OP8 Pro is only working when using a OP8 series unified ROM which uses FBEv2 encryption.
FBEv1 encryption which the OP8 and OP8 Pro normally uses is not added to Orangefox (yet).

Just wanting to make sure I wasn't missing something!
 
  • Like
Reactions: Wishmasterflo

Wishmasterflo

Senior Member
Nov 21, 2018
1,606
1,168
Stockholm
OnePlus 8T
Google Pixel 7a
Oneplus 8 Pro Android 12 based custom ROMs not working, crash dump
On which OOS12 Version are you? And do you have that on both slots?
Have you flashed Orangefox or just booted it?

Make sure you have OOS12 c35 or what you are on on both slots before trying to flash anything.
Then just try to fastboot boot Orangefox first and not flash it directly and see if you can install a ROM and boot to it.
 
  • Like
Reactions: SchWeinSAuG
I've tried C.36 with crDroidAndroid-12.1-20220721-instantnoodlep-v8.7, lineage-19.1-20221106-nightly-instantnoodlep-signed, it crash dump
and swithed to 11.0.11.11-20220218 crDroidAndroid-12.1-20220721-instantnoodlep-v8.7, lineage-19.1-20221106-nightly-instantnoodlep-signed, it also crash dump
 

Wishmasterflo

Senior Member
Nov 21, 2018
1,606
1,168
Stockholm
OnePlus 8T
Google Pixel 7a
just booted, I want to check OrangeFox-R12.1-Unofficial-OPKONA-V13 work first, but crash dump, not flash the zip now. But for the 11.0.11.11, OrangeFox-R12.1 should work
Hmm strange as it works for someone else on Oneplus 8Pro. So I dont know why it does not work for you. Sounds strange that it just gives a crash dump when booting into it. Normallly that happens if you flash Orangefox to your phone and have not the same OOS Firmweare on both slots!
 

Wishmasterflo

Senior Member
Nov 21, 2018
1,606
1,168
Stockholm
OnePlus 8T
Google Pixel 7a
Every test I made OOS on both slots. No hurry, recovery for 12 need time. I can wait, thanks your hardworking.
Also I know that there is someone else who build Orangefox recovery a few days ago using FBEv1 for Oneplus 8 and 8 Pro.
As my unified Orangefox now is using FBEv2 since that is what is used on Oneplus 8t and 9r so te Unified Version is using that.
So you will only be able to decrypt data with my unified Orangefox Version when you use some unified ROM which is using FBEv2.

I will check with the one who build Orangefox with FBEv1 for Oneplus 8/8 Pro if he has published that already somewhere.
 
EDIT:
Whoops... just saw the top post... "Orangefox R12.1 can only be flashed to the recovery partition"... Will this affect Stock OOS12 to update in the future? or can I easily restore stock recovery?

****************

Hi! Does this work with OP8 OOS12 unlocked + rooted? can I do "fastboot boot recovery.img"? Not really worry about decrypt data, just want to get in to flash Magisk. OP has been very bad at releasing full ROM, can't extract boot.img for that purpose.

Like many (I think), I try official TWRP to "fastboot boot recovery.img" and the device got stuck... Anyway... I left the phone for few days..., it booted back in fine.
 
Last edited:

Wishmasterflo

Senior Member
Nov 21, 2018
1,606
1,168
Stockholm
OnePlus 8T
Google Pixel 7a
EDIT:
Whoops... just saw the top post... "Orangefox R12.1 can only be flashed to the recovery partition"... Will this affect Stock OOS12 to update in the future? or can I easily restore stock recovery?

****************

Hi! Does this work with OP8 OOS12 unlocked + rooted? can I do "fastboot boot recovery.img"? Not really worry about decrypt data, just want to get in to flash Magisk. OP has been very bad at releasing full ROM, can't extract boot.img for that purpose.

Like many (I think), I try official TWRP to "fastboot boot recovery.img" and the device got stuck... Anyway... I left the phone for few days..., it booted back in fine.
No it will not affect stock OOS to Update.
 
  • Like
Reactions: woofwoof75

Marcyvee

Senior Member
Oct 9, 2015
348
35
I'm using EvolutionX 7.3 (Android13) on a Oneplus8Pro. Do you know which version of the recovery do I have to download?
And also, which encryption does the rom use?
 

Marcyvee

Senior Member
Oct 9, 2015
348
35
I can boot all three version of the recovery, but it seems none of them can decrypt data. The Data partition dimension is 0mb.
Anyway, is the first time I use orange fox, and i don't know it very well....
 

Top Liked Posts

  • There are no posts matching your filters.
  • 17
    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 8 / 8t / 8 Pro / 9r
    Download (for Android 13 ROMs) (OOS13 Based)
    Download (for Android 12.x, 13 ROMs) (OOS12 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

    Orangefox R12.1 can only be flashed to the recovery partition if you have OOS12 Firmware, but you can still boot it with fastboot boot if you are on OOS11 Firmware and need to decrypt data on Android 12 or Android 13 ROMs.
    Some things like USB OTG etc are not working when using fox_12.1 on OOS11 Firmware!

    If the touchscreen is not working for you after booting/flashing Orangefox please Update your OOS/Firmware to a newer Version!

    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!

    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_c21_DDR0.zip
    adb rebooot bootloader
    fastboot flash recovery OrangeFox_R12.1-xx.img
    fastboot reboot recovery
    Apply Update - apply via ADB
    adb sideload ROM.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!

    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.zip
    reboot to bootloader
    fastboot boot Recovery_OOS11_FW_Android12_decryption.img
    Factory reset/Format Data
    Reboot System

    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



    Source Code: https://gitlab.com/OrangeFox
    Device Tree (A12/A13):
    https://github.com/Wishmasterflo/device_oneplus_opkona/releases
    Device Tree OP8/8Pro FBEv1: https://github.com/SENSEIIIII/twrp_device_OnePlus_instantnoodlep
    Wiki/FAQ: https://wiki.orangefox.tech/en/guides


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

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

    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
    6
    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 based Versions is in the OP.
    4
    Updated Version

    Changelog

    R12.1 V14 16-Jan-2023
    - Updated Version with OOS13 F19 OP9R Kernel
    - Synced with latest fox_12.1 changes
    - Fixed props settings for the different Kona devices
    - Fixed file formatting from Windows to Linux which was causing file issues in the device tree
    - Added a Magisk flashable Module for Orangefox (thanks to MeHigh.G)


    Still known issues:
    - USB file transfer not working in the OOS13 based Orangefox
    - Fastbootd not working in the OOS13 based Orangefox
    - No EROFS OOS13 based Version yet (will build that later, want to fix the other issues first!)
    3
    If we're on 12 now, can we flash this through magisk, or do we need to sideload?
    To flash Orangefox do it with fastboot flash recovery Orangefox.img .
    The other ways to flash might not work or throw errors.
    2
    thanks so much for hookin up the op8 users with a recovery that has some substance :)

    Am I correct in assuming that I'm not seeing anything in my data partition (for backup purposes) because of this?



    Just wanting to make sure I wasn't missing something!
    Yes correct.