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

Search This thread

Primokorn

Senior Member
Nov 17, 2012
11,534
7,738
OnePlus 8 Pro
Why is it so difficult to backup/restore OOS 13?
The backup/restore of /data isn't very useful when we have root (it can be handled by Swift Backup or Migrate apps).
 

Jonas2802

Senior Member
Aug 17, 2016
71
20
OnePlus 8 Pro
I got a dumb question maybe. I#m on a custom ROM thats based on AOSP on A12.1L. Devcheck App says im on EXT4 partition. SO what FBE-Version do I have to use. And what is FDBe?
 

Wishmasterflo

Senior Member
Nov 21, 2018
1,606
1,168
Stockholm
OnePlus 8T
Google Pixel 7a
I got a dumb question maybe. I#m on a custom ROM thats based on AOSP on A12.1L. Devcheck App says im on EXT4 partition. SO what FBE-Version do I have to use. And what is FDBe?
If you are using Oneplus 8 Pro which has FBEv1 encryption and you are on OOS12 you need to use a recovery whith FBEv1 encryption. My Orangefox Version can only decrypt data on ROMs with FBEv2 encryption.

So this one works for OP8Pro OOS12. https://telegra.ph/OrangeFox-OnePlus-8-Pro-11-17
 

Wishmasterflo

Senior Member
Nov 21, 2018
1,606
1,168
Stockholm
OnePlus 8T
Google Pixel 7a
okey then I guess I have to go with the FBEv1 version as you've mentioned above:D
Booting the v1 Version i end in the QUalcomm CrashDump mode so i guess my ROMS firmware and the OrangeFox's firmware dont match, right
Yes exactly.
I guess the FBEv1 Orangefox Verison for the 8Pro is only for OOS12 based ROMs. That never got updated with OOS13 base afaik.
And if you are on a Android 12 ROM check if it is OOS12 based (or based on old OOS11).
And then you should make sure that you have OOS12 on both slots before flashing any recovery, otherwise you could end up in crashdump mode.
To get the same OOS base on both slots you can flash copy-partitions from recovery or flash my flashable firmware once which will get flashed to both slots.
 

Jonas2802

Senior Member
Aug 17, 2016
71
20
OnePlus 8 Pro
Yes exactly.
I guess the FBEv1 Orangefox Verison for the 8Pro is only for OOS12 based ROMs. That never got updated with OOS13 base afaik.
And if you are on a Android 12 ROM check if it is OOS12 based (or based on old OOS11).
And then you should make sure that you have OOS12 on both slots before flashing any recovery, otherwise you could end up in crashdump mode.
To get the same OOS base on both slots you can flash copy-partitions from recovery or flash my flashable firmware once which will get flashed to both slots.
OKey, and being on a ROM that's based on AOSP, means the firmware is not based on OOS isn't it? So being on a AOSP based ROM there's no way to get OrangeFox working
 

Wishmasterflo

Senior Member
Nov 21, 2018
1,606
1,168
Stockholm
OnePlus 8T
Google Pixel 7a
OKey, and being on a ROM that's based on AOSP, means the firmware is not based on OOS isn't it? So being on a AOSP based ROM there's no way to get OrangeFox working
No the firmware is always based on some OOS Version. AOSP or CLO/CAF has nothing to do with the OOS base.
So all ROMs for our Oneplus devices are based on a specific OOS base and that OOS firmware base needs to be on both slots before flashing any new recovery and ROM.
And the recovery needs to be on the same OOS base as your phone is on, otherwise touch screen does not work on Orangefox or it does boot into crashdump if you dont have the same OOS base firmware on both slots.
 

Jonas2802

Senior Member
Aug 17, 2016
71
20
OnePlus 8 Pro
No the firmware is always based on some OOS Version. AOSP or CLO/CAF has nothing to do with the OOS base.
So all ROMs for our Oneplus devices are based on a specific OOS base and that OOS firmware base needs to be on both slots before flashing any new recovery and ROM.
And the recovery needs to be on the same OOS base as your phone is on, otherwise touch screen does not work on Orangefox or it does boot into crashdump if you dont have the same OOS base firmware on both slots.
So OOS 12 was firmware for Android 12, thus every A12+ Custom Rom has a OOS12 firmware right. THough the OOS 12 EXT4 Version of OrangeFox should work right
 

Wishmasterflo

Senior Member
Nov 21, 2018
1,606
1,168
Stockholm
OnePlus 8T
Google Pixel 7a
So OOS 12 was firmware for Android 12, thus every A12+ Custom Rom has a OOS12 firmware right. THough the OOS 12 EXT4 Version of OrangeFox should work right
Usually yes but it depends on the ROM dev, so if it is an really old Android 12.x ROM it could be that it is still OOS11 based, but I assume that most Android 12 ROMs now are based on OOS12.
Yes so then use the ext4 Version of Orangefox.
 

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.