[RECOVERY][UNOFFICIAL] OrangeFox Recovery Project [OnePlus 8t / 9r] [22-Nov-2022]

Search This thread

Dior DNA

Senior Member
Aug 17, 2015
1,583
678
@Wishmasterflo

First of all, thanks for OrangeFox Oneplus 8T.

I am on lineageos 12.1 and if I boot OrangeFox-R12.1-Unofficial-OnePlus8T_9R-V8.img from bootloader and perform backup, it mentions: 'failed' after having backed up up to data.f2fs.win014.

And recovery log just mentions:

Code:
File is bigger than 1.5MB!

Screen log also mentions:

Code:
createTarFork(): process ended with ERROR: 255

Maybe this information helps.
 
Last edited:

Wishmasterflo

Senior Member
Nov 21, 2018
1,438
1,018
Stockholm
OnePlus 8T
so if i have this recovery for android 12 i can just flash roms from the recovery? like in the old days..wiping cache etc?
without flashing images?
Yes exactly. Just make sure when you flash the Orangefox 12.1 Version that your ROM is based on OOS12 as well. Otherwise it will not work.
But you can always just fastboot boot he Orangefox img file when on other OOS base Firmware.
 

huangsijun17

Member
Feb 15, 2014
21
4
My touchscreen doesn't work.
Device: OnePlus 8T Chinese version
Installed system: OOS 12 KB2005_11_C.10 GLO
Android version: 12
 

devsk

Senior Member
Dec 14, 2008
2,052
763
May be a wrong forum to ask but is there a OrangeFox recovery for OnePlus 8 Pro also?
 

eddro22

Senior Member
Feb 11, 2012
310
63
OnePlus 8T
Ok when on A11 firmware and using A12/A13 rom there are a couple can orangefox for A11 firmware decrypt if you remove pin,password and fingerprint?
 

Drymarchon

Senior Member
Mar 15, 2018
53
11
Google Pixel 5
Currently cannot flash/sideload anything, getting a bunch of errors on boot of recovery. recovery log attached.

EDIT 2: should probably also add that I have Evolution X A13 installed and booting, so all the partitions its failing to mount do exist.

EDIT: Not sure if the log is actually being attached, so I'll also do it this way - https://gist.github.com/DrymarchonShaun/215a502fdc248edc228219a8cb3857c0
 
Last edited:

Wishmasterflo

Senior Member
Nov 21, 2018
1,438
1,018
Stockholm
OnePlus 8T
Currently cannot flash/sideload anything, getting a bunch of errors on boot of recovery. recovery log attached.

EDIT 2: should probably also add that I have Evolution X A13 installed and booting, so all the partitions its failing to mount do exist.

EDIT: Not sure if the log is actually being attached, so I'll also do it this way - https://gist.github.com/DrymarchonShaun/215a502fdc248edc228219a8cb3857c0
On which OOS Firmware is your phone?
If you do a format data and reboot to recovery does that fix that issue?

Also can you try with Orangefox 12.1 V8 if you get the same issue there?
 
Last edited:

Drymarchon

Senior Member
Mar 15, 2018
53
11
Google Pixel 5
On which OOS Firmware is your phone?
If you do a format data and reboot to recovery does that fix that issue?

Also can you try with Orangefox 12.1 V8 if you get the same issue there?
c33, and no, I went one step farther and started fresh with MSMTool, sideloading OOS 12 c33, then booting into orangefox without any errors, after rebooting to fastboot and flashing the vbmeta.img supplied with evolutionx its still working, its once I flash the actual rom, then reflash orangefox that it starts giving a bunch of errors. (most being Failed to mount '[PARTITIONNAME]' (invalid argument). Same thing happens in v7-v9.
 

Wishmasterflo

Senior Member
Nov 21, 2018
1,438
1,018
Stockholm
OnePlus 8T
c33, and no, I went one step farther and started fresh with MSMTool, sideloading OOS 12 c33, then booting into orangefox without any errors, after rebooting to fastboot and flashing the vbmeta.img supplied with evolutionx its still working, its once I flash the actual rom, then reflash orangefox that it starts giving a bunch of errors. (most being Failed to mount '[PARTITIONNAME]' (invalid argument). Same thing happens in v7-v9.
Got it.
I guess it is due to that many ROMs are using EROFS filesystem now so I guess I will have to provide one recovery file with EROFS support and one without.
 
  • Wow
Reactions: Klusio19

Klusio19

Senior Member
Nov 13, 2018
179
41
Tarnobrzeg
OnePlus 8T
New Updated Orangefox builds :)

Changelog
R12.1 V10 02-Oct-2022

- Synced with latest fox_12.1 changes
- Build a seperate Orangefox Version for ROMs with EROFS Filesystem

R11.1 V13 02-Oct-2022
- Synced with latest OrangeFox R11.1 changes for Oneplus 8t


Download link is updated in the OP.
My man is a legend, building EROFS recovery version so fast 🔥🔥🔥
 
  • Like
Reactions: Wishmasterflo

Top Liked Posts

  • There are no posts matching your filters.
  • 3
    I've been using the 8T OOS 13 version of OF to backup /data. And today I tested restoring a backup.
    And I'm very pleased to find that the restore process works exactly as on OOS 12 (described in the TWRP thread).

    I did come across one bug, however. The digest verification of a backup fails:
    Code:
    Verifying Digest
    Calculating restore details...
    tw_get_context got selinux context: u:object_r:rootfs:s0, file: /system_root
    I:split_filename: /data/media/0/Fox/BACKUPS/c90b9650/221120-052300_oos-13-F.13-mc/data.f2fs.win000
    Digest failed to match on '/data/media/0/Fox/BACKUPS/c90b9650/221120-052300_oos-13-F.13-mc/data.f2fs.win000'.
    Yet the sha256sum of the file is the same as that in the digest file:
    Code:
     $ sha256sum *000
    82ab75ec31eab35c80310fad9ed08ef33c8a6878590ac99484f6763bba482baf  data.f2fs.win000
     $ cat *000.sha2
    82ab75ec31eab35c80310fad9ed08ef33c8a6878590ac99484f6763bba482baf  data.f2fs.win000
    3
    FYI :)

    OrangeFox Recovery Oneplus 8/8Pro/8t/9r R12.1 V13 beta​


    - Synced with latest fox_12.1 changes
    - Added Support for Oneplus 8 and Oneplus 8 Pro (still beta, encryption not working yet for 8/8pro!)
    - Some adjustments to the EROFS Version of Orangefox
    - Adjusted the length of the Orangefox Filename to better see them on mobile devices
    - disabled the reflash function in Orangefox
    - disabled the splash screen changing
    - Changed splash screen background color to black

    download

    Note: For Oneplus 8 and 8 Pro it is still in early beta/testing so decryption might not work (can depends on the ROM you are on)
    I will try to get these things fixed but that will take some more time.

    I have also opened a OP8 series unified XDA Thread for Orangeox now.
    2
    I only used it to install magisk. But I'll try to use the backup so I can let you know how it goes
    I backed up data and boot and it backed up successfully. Then I ran another backup to see if everything else will backup too, and it backed up successfully. Btw, I only booted into recovery, I didn't install it (which I don't think it matters anyway)
    2
    As mathematician and software bug fixer I find this particular list of issues rather exceptional and unreal :)
    2
    I've been on C.36 for a week or more (8T) and OrangeFox (booting, not flashing) works fine. I've taken a couple of backups, but haven't needed to restore them, so I can't say how restoring works.
  • 26
    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 Based)
    Download (for Android 11 and below) (OOS11 Based)


    Boot it with: fastboot boot OrangeFox-R12.1-Unofficial-OPKONA-V14.img
    or flash it with: fastboot flash recovery OrangeFox-R12.1-Unofficial-OPKONA-V14.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!
    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 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)
    -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: V14
    Last Updated: 22-Nov-2022

    Changelog
    R12.1 V14 22-Nov-2022
    - Adjusted unified script for OP8 and 8Pro
    - Updated Version with OOS12 c36 Kernel
    - Updated Version with OOS13 F13 Kernel
    - Updated Version with EROFS Kernel Update


    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.