[RECOVERY][UNOFFICIAL] OrangeFox Recovery Project [OnePlus 8t / 9r] [20-MAR-2023]

Search This thread

apophis9283

Recognized Developer / Retired Moderator
Dec 19, 2011
12,747
16,154
39
Somewhere in the static of the Universe

Wishmasterflo

Senior Member
Nov 21, 2018
1,527
1,125
Stockholm
OnePlus 8T
You do a amazing job with orange fox for our 8t don't understand how they don't give you official status can't wait for a erofs oos13 based so I don't have to have my PC shoved up my a## to flash things 😂.
Yeah thanks a lot.
There are quite a few things which I need to go through to mest all the needed requirements to get official Maintainership for a Device and I rönt feel ready right now for that.
There are quite a few things i would need to change for that al well.
So I will Walt with that.
 

Wishmasterflo

Senior Member
Nov 21, 2018
1,527
1,125
Stockholm
OnePlus 8T
Hello!

Here we have a new Firmware Flasher for Oneplus 8t and 9r which will automatically detect the correct RAM type etc.

Enjoy! :)

Oneplus Flashable Firmware script by Wishmasterflo

21-Jan-2023 v1.0
- Initial Version of the updated flashable Firmware script for Oneplus 8 series and 9r
- OOS13 Firmware files are using abl.img from OOS13 F10 to remove the yellow bootloader message
- Flasher should support Firmware flashing from all OOS12 and OOS13 Versions (OOS11 is not supported now!)
- added automatic DDR RAM type detection (Oneplus 8t/9r)
- Flasher will terminate if it can not detect the correct RAM type for some reason
- added a check that the Firmware flasher is flashed from recovery only
- added device check that the Frimware is flashed on a supported device
- Updated info that the Firmware is getting flashed to both slots (A and B)
 
Last edited:

RainGater

Senior Member
Aug 5, 2013
1,196
717
OnePlus 8T
Samsung Galaxy Tab S7 FE
New Updated Version

Changelog

R12.1 V14 15-Jan-2023
My device is 8T (KB2001). I am currently on stock OOS 13 (F.13 India variant). I would like to cross flash it to EU OOS 13 (F.15).

When I do a local update, I get the "Verification failed" message when I tried to update to F.15 EU ROM.

So, I was wondering if I temporarily boot to your OrangeFox recovery, will I be able to flash F.15 ROM?

Code:
fastboot boot OrangeFox-R12.1-Unofficial-OPKONA-OOS13-V14.img

adb sideload F.15_EU.zip

adb reboot recovery

adb sideload Magisk.zip

adb reboot

Would the above work? Thank you in advance.
 

Wishmasterflo

Senior Member
Nov 21, 2018
1,527
1,125
Stockholm
OnePlus 8T
My device is 8T (KB2001). I am currently on stock OOS 13 (F.13 India variant). I would like to cross flash it to EU OOS 13 (F.15).

When I do a local update, I get the "Verification failed" message when I tried to update to F.15 EU ROM.

So, I was wondering if I temporarily boot to your OrangeFox recovery, will I be able to flash F.15 ROM?

Code:
fastboot boot OrangeFox-R12.1-Unofficial-OPKONA-OOS13-V14.img

adb sideload F.15_EU.zip

adb reboot recovery

adb sideload Magisk.zip

adb reboot

Would the above work? Thank you in advance.
Yes exactly. That should work.
 
  • Like
Reactions: RainGater

RainGater

Senior Member
Aug 5, 2013
1,196
717
OnePlus 8T
Samsung Galaxy Tab S7 FE
No, after you flash the ROM you get the ROMs recovery flashed to your recovery partition.
Yes, that's what I thought so.

In any case, I am sideloading the ROM now and it's stuck at 47% amd the recovery screen is not finishing it. It's been at this stage for the past 5 minutes or so. What to do? Cancel it or let it continue for some more time?
 

RainGater

Senior Member
Aug 5, 2013
1,196
717
OnePlus 8T
Samsung Galaxy Tab S7 FE
47% = done! It should show step 2/2 on your phone then. Then it is done and installed
Yes, it shows step 2/2 but ADB Sideload doesn't complete as there is an X button at the top left corner. Click the X button at the top left to exit out of this screen?

EDIT: Even flashing the ROM.zip is NOT completing as it's stuck at Step 2/2. Same issue as sideload. The process does not complete and only way I can get out this screen is to click on the X button at the top left corner. Does the new version work flashing F.15 (OOS 13) ROMs?
 
Last edited:

BobbyLynn

Senior Member
Hello!

Here we have a new Firmware Flasher for Oneplus 8t and 9r which will automatically detect the correct RAM type etc.

Enjoy! :)

Oneplus Flashable Firmware script by Wishmasterflo

21-Jan-2023 v1.0
- Initial Version of the updated flashable Firmware script for Oneplus 8 series and 9r
- OOS13 Firmware files are using abl.img from OOS13 F10 to remove the yellow bootloader message
- Flasher should support Firmware flashing from all OOS12 and OOS13 Versions (OOS11 is not supported now!)
- added automatic DDR RAM type detection (Oneplus 8t/9r)
- Flasher will terminate if it can not detect the correct RAM type for some reason
- added a check that the Firmware flasher is flashed from recovery only
- added device check that the Frimware is flashed on a supported device
- Updated info that the Firmware is getting flashed to both slots (A and B)
Nice!
 
  • Like
Reactions: Wishmasterflo

Wishmasterflo

Senior Member
Nov 21, 2018
1,527
1,125
Stockholm
OnePlus 8T
Orangefox R12.1 V15 beta

Changelog

R12.1 V15 beta 31-Jan-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

Right now I only build the OOS13 Version of it.
Will update with the other ones later if this build is more tested.
Also it will be updated then for the final release with another Kernel which should then fix the USB OTG and fastbootd issues on the OOS13 based Version!


Download
 

Top Liked Posts

  • 3
    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.
    1
    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.
  • 4
    Nice work. :) ... It creates backup on EROFS KB2003_11_F.62 OOS13. Next thing is to restore it but I probably won't (dare to) do that unril I need to do so.
    Just remember you need to remove your lock screen password/pin/pattern or you won't be able to restore the backup without formatting data.
    4
    FYI

    My Orangefox V15 Version will be the last Version for OOS12/OOS12 based custom ROMs!

    All newer Version from now on will only be OOS13 based.
    3
    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.
    1
    Don't suppose any of these builds are known working with PE Plus 13's new erofs + FBEv2 setup? I hear it's tricky.🤞
    1
    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.
  • 28
    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 and below) (OOS11 Based)
    Download FBEv1 Version Oneplus 8

    Download FBEv1 Version Oneplus 8Pro

    Boot it with: fastboot boot OrangeFox-R12.1-OPKONA-V16.img
    or flash it with: fastboot flash recovery OrangeFox-R12.1-OPKONA-V16.img
    The OrangeFox-R12.1-OPKONA-V16.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)
    -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/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: V16
    Last Updated: 20-Mar-2023

    Changelog
    R12.1 V16 20-Mar-2023
    - 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

    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.