[RECOVERY][UNOFFICIAL] OrangeFox Recovery Project [OnePlus 8t / 9r] [05-JUN-2023]

Search This thread

Wishmasterflo

Senior Member
Nov 21, 2018
1,608
1,169
Stockholm
OnePlus 8T
Google Pixel 7a
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.
Yeah that digest verification fail I think has nothing to do with Orangefox itself. I guess it is something with the OOS13 device tree, since I guess that "issue" started from OOS13 F13 (still worked on OOS13 F10 beta I guess).
 

BillGoss

Senior Member
Sep 2, 2010
5,610
4,954
Sydney
OnePlus 8T
OnePlus 9 Pro
I've been testing installing OOS OTAs in recovery.
On OF v17 a full OTA gets installed without any errors (I installed F.62 over F.62).
But installing the F.63 incremental update failed.
Logs attached.
 

Attachments

  • Incremental update.zip
    88.5 KB · Views: 4

Wishmasterflo

Senior Member
Nov 21, 2018
1,608
1,169
Stockholm
OnePlus 8T
Google Pixel 7a
I've been testing installing OOS OTAs in recovery.
On OF v17 a full OTA gets installed without any errors (I installed F.62 over F.62).
But installing the F.63 incremental update failed.
Logs attached.
Yes that is how it is. Afaik you can not install incremental updates via custom recovery. Only the full OTA files can be flashed.
 

Juniiim

Senior Member
Aug 11, 2017
88
75
Cansanção
OnePlus 8T
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.
Data decryption not working on PixelExperience Plus Edition.
 

Wishmasterflo

Senior Member
Nov 21, 2018
1,608
1,169
Stockholm
OnePlus 8T
Google Pixel 7a
Attached recovery log maybe can help.
Hmm strange. Yeah it can not decrypt data by some reason.
Seems that something regarding encryprion is different in that ROM.

EDIT: OK could be that I found the reason. Have to check on that further the next days but I assume that it will break decryption in other ROMs then. Lets see.

OK I build a new beta Version now. Can you test if it works? But I assume there are more things needed to get that working.
Also when you try to decrypt now with my V17 Version do you get the prompt to enter the PIN/password in Orangefox?
 
Last edited:

Juniiim

Senior Member
Aug 11, 2017
88
75
Cansanção
OnePlus 8T
Hmm strange. Yeah it can not decrypt data by some reason.
Seems that something regarding encryprion is different in that ROM.

EDIT: OK could be that I found the reason. Have to check on that further the next days but I assume that it will break decryption in other ROMs then. Lets see.

OK I build a new beta Version now. Can you test if it works? But I assume there are more things needed to get that working.
Also when you try to decrypt now with my V17 Version do you get the prompt to enter the PIN/password in Orangefox?

Orangefox V18 beta
Yeah i will try, thx. About the try decrypt data the prompt exist, but i am using pattern to unlock.
 

Wishmasterflo

Senior Member
Nov 21, 2018
1,608
1,169
Stockholm
OnePlus 8T
Google Pixel 7a
Not worked with pattern or pin code.
Ah ok so you get the prompt to decrypt but it does not decrypt.
Guess there are more things needed but I dont think that i will try more to fix that now as it will break encryption for all other ROMs then.
Hmmm. Dont really get why just that ROM uses another encryption method as all others.

Do you have a link to the device tree of the ROM you are using?

Seems that this ROM does not use Hardware based encryption and therfor my Orangefox can not decrypt data.
 
Last edited:

immortalwon

Senior Member
Mar 11, 2017
235
98
I really wanted to test drive this Custom recovery, can someone please port it to the 9 plus pro & One plus 9?
 

Juniiim

Senior Member
Aug 11, 2017
88
75
Cansanção
OnePlus 8T
Ah ok so you get the prompt to decrypt but it does not decrypt.
Guess there are more things needed but I dont think that i will try more to fix that now as it will break encryption for all other ROMs then.
Hmmm. Dont really get why just that ROM uses another encryption method as all others.

Do you have a link to the device tree of the ROM you are using?

Seems that this ROM does not use Hardware based encryption and therfor my Orangefox can not decrypt data.
I have used the official one:

Now i returned to Lineageos. Thx for your time anyway.
 

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
    Updated Orangefox recovery V18 :)

    Changelog
    - Synced with latest Orangefox source changes

    Download link is updated in the OP.
    2
    Tested v18 on OOS 13.
    - Digest verification now works on backup restore! Thanks.
    - Fastbootd still does not get a PC connection (device not seen in Windows Device Manager).
    - Fox settings didn't get remembered. When I looked at this more closely, the .foxs file is also created with the incorrect attributes (see screenshot). Update: but now I see that the .foxs file has been created properly after the the last boot into recovery! So, something weird is going on with .foxs

    PS: Personally I don't like the fact that the installer script automatically boots into recovery when not run in recovery.
    From my perspective I was simply installing Fox and didn't intended to boot recovery at that point as I also wanted to generate and run the ORS script.
    1
    I redid my test and this time there were no issues at all with the settings. If it's not reproducible then it didn't happen, right? 😄
    1
    Updated Orangefox recovery V19

    Changelog
    - Synced with latest Orangefox source changes
  • 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-V19.img
    or flash it with: fastboot flash recovery OrangeFox-R12.1-OPKONA-V19.img
    The OrangeFox-R12.1-OPKONA-V19.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: V19
    Last Updated: 05-Jun-2023

    Changelog
    R12.1 V19 05-Jun-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.