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

Search This thread

Wishmasterflo

Senior Member
Nov 21, 2018
1,606
1,168
Stockholm
OnePlus 8T
Google Pixel 7a
The latest version of OPKONA-OOS13-V14 still has the problem of not being able to verify a digest during a restore.
Log attached
Hi BillGoss!

Can you check if Backup and restore (alse encrypted backup) is working fine in the V15 beta release?
There were some changes on the Orangefox source side and we need to test Backup and Restore now if everything is working fine without errors.

Also the zip logfile cleanup thing should work again now as usual in Orangefox.

Thanks!
 

BillGoss

Senior Member
Sep 2, 2010
5,609
4,952
Sydney
OnePlus 8T
OnePlus 9 Pro
Hi BillGoss!

Can you check if Backup and restore (alse encrypted backup) is working fine in the V15 beta release?
There were some changes on the Orangefox source side and we need to test Backup and Restore now if everything is working fine without errors.

Also the zip logfile cleanup thing should work again now as usual in Orangefox.

Thanks!
Backup with password set is fine.
Restore with digest verification still fails.
Also, when dmesg and recovery logs are copied to /sdcard they have the wrong group attribute which means they aren't visible or accessible when the phone reboots.
Also, fastbootd still doesn't work (no connection to PC).
Logs and screenshots attached.
 

Attachments

  • of-15.zip
    430.8 KB · Views: 3
  • Like
Reactions: Wishmasterflo

Wishmasterflo

Senior Member
Nov 21, 2018
1,606
1,168
Stockholm
OnePlus 8T
Google Pixel 7a
Backup with password set is fine.
Restore with digest verification still fails.
Also, when dmesg and recovery logs are copied to /sdcard they have the wrong group attribute which means they aren't visible or accessible when the phone reboots.
Also, fastbootd still doesn't work (no connection to PC).
Logs and screenshots attached.
OK thanks.
Will check.

Yes I know for fastbootd and USB MTP/file transfer I need to change Kernel and USB settings.
 

Wishmasterflo

Senior Member
Nov 21, 2018
1,606
1,168
Stockholm
OnePlus 8T
Google Pixel 7a
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)
Have updated the Firmware Flasher and all my Firmware files again.
Firmware Flasher Oneplus 8 series and Oneplus 9 series


01-Feb-2023 v1.2

- Added prompt to continue or cancel the Firmware flashing
- Removed RAM check for all other devices (exept OP8t and OP9r)
- Added RAM check for OP8t and 9r on OOS11 as well
- Make flashing of Modem.img optional
- Some small adjustments to the flashing script

Download
 
  • Like
Reactions: dahawthorne

Wishmasterflo

Senior Member
Nov 21, 2018
1,606
1,168
Stockholm
OnePlus 8T
Google Pixel 7a
A few questions....

I'm on a KB2003 running 00S13.F13

1. ) My data filesystem is F2FS while my system is EROFS - so what version of OrangeFox should I download to flash?

2.) What does the Magisk module do exactly?
Its the system file system you need to check so if you have EROFS there then you need the EROFS Version.
I am just trying to fix the USB and fastbootd things and will then upload a new Version, so right now there is no EROFS OOS13 based Version

The Magisk module is just flashing/installing Orangefox to your phone.
 

BillGoss

Senior Member
Sep 2, 2010
5,609
4,952
Sydney
OnePlus 8T
OnePlus 9 Pro
Orangefox Update V15 beta

Changelog:
  • Switched to Meteoric Kernel
  • Fixed USB file Transfer on OOS13 Version
Beta releaase is updated now.
Now I have to check why fastbootd is still not working but everything else should work now hopefully.
Still has the following bugs:
- restore with digest enabled fails (recovery log)
- copying log and dmesg to sdcard creates files with the wrong attributes making them invisible when the phone is booted (screenshot)

And the phone identifies as "ossi" (when connected to PC using MTP) which will, I believe, cause installations that check for OnePlus8T to fail. But I've not actually tested this.
 

Attachments

  • of-v15.zip
    263.8 KB · Views: 4

Wishmasterflo

Senior Member
Nov 21, 2018
1,606
1,168
Stockholm
OnePlus 8T
Google Pixel 7a
Still has the following bugs:
- restore with digest enabled fails (recovery log)
- copying log and dmesg to sdcard creates files with the wrong attributes making them invisible when the phone is booted (screenshot)

And the phone identifies as "ossi" (when connected to PC using MTP) which will, I believe, cause installations that check for OnePlus8T to fail. But I've not actually tested this.
Hmm yeah. Guess that is something which needs to be fixed on the Orangefox source side. So nothing I can fix.

What the phone shows as ossi? Never seen that. For me it shows as Oneplus8t. Also for rom flashing it should not be any issue as all the props for the phone model etc get set when launching Orangefox.
 

BillGoss

Senior Member
Sep 2, 2010
5,609
4,952
Sydney
OnePlus 8T
OnePlus 9 Pro
Hmm yeah. Guess that is something which needs to be fixed on the Orangefox source side. So nothing I can fix.

What the phone shows as ossi? Never seen that. For me it shows as Oneplus8t. Also for rom flashing it should not be any issue as all the props for the phone model etc get set when launching Orangefox.
I'll try MTP again and also try installing OOS F.15 (full as that's what I'm on) and see how it goes.
 

BillGoss

Senior Member
Sep 2, 2010
5,609
4,952
Sydney
OnePlus 8T
OnePlus 9 Pro
This time I did a backup restore without digest verification and that went perfectly.
I also re-tested MTP to the PC and, for some unknown reason, my PC sees the phone as "ossi". It does that as well if I'm running apophis9283's version of TWRP, which is where the "ossi" comes from.
But when I use "adb shell" OrangeFox displays OnePlus8T, while TWRP displays ossi (see screenshots).
So somehow my PC sees a recovery device as ossi irrespective of which recovery I'm using.
But this is trivial and doesn't impact anything and is a reflection of my PC than of the recovery.

I did try to install KB2003 F.15 full zip, but that failed. And it looks very similar (possibly identical) to what I get when I try to use TWRP to install the zip.
Screenshots OF-* are from my PC when the phone is in OF recovery and TW* are when the phone is in TWRP recovery.
 

Attachments

  • OF-15-logs.zip
    236.4 KB · Views: 3
  • OF-15-ossi.png
    OF-15-ossi.png
    26.4 KB · Views: 19
  • OF-15-ossi-shell.png
    OF-15-ossi-shell.png
    3.8 KB · Views: 19
  • TW-ossi.png
    TW-ossi.png
    29.2 KB · Views: 16
  • TW-ossi-shell.png
    TW-ossi-shell.png
    3.1 KB · Views: 18

BobbyLynn

Senior Member
For me it has excellent backup time:
Code:
 I:Partition Backup time: 58
Average backup rate for file systems: 127 MB/sec
[7439 MB TOTAL BACKED UP]
I use to have good backup time, but not anymore. I'm thinking it might be the MagiskOverlayfs module that's causing the problem, but I could be wrong. I backed it up to my USB stick, so idk if it is also slow when I backup to my phone. I'm fixing to check it out though and see if it's also slow when backing up to my internal storage.
 

BillGoss

Senior Member
Sep 2, 2010
5,609
4,952
Sydney
OnePlus 8T
OnePlus 9 Pro
I use to have good backup time, but not anymore. I'm thinking it might be the MagiskOverlayfs module that's causing the problem, but I could be wrong. I backed it up to my USB stick, so idk if it is also slow when I backup to my phone. I'm fixing to check it out though and see if it's also slow when backing up to my internal storage.
Ah, USB storage is a lot slower than internal storage.
 
  • Like
Reactions: Wishmasterflo

BobbyLynn

Senior Member
Ah, USB storage is a lot slower than internal storage.
Not mine, I use a Samsung duo USB. While it is slower than internal storage it's still very fast. I've been using it for about a year. I've also been using this recovery for a few months, so I know my normal backup speeds both on the internal and USB. This ain't my first rodeo. But anyway, I just backed up the data, boot, persist and super to my internal storage, 100 seconds. So must be something wrong with the USB backup option.
 
  • Like
Reactions: BillGoss

BobbyLynn

Senior Member
Hmm, could be due to updated Kernel in the new V15 OOS13 build for getting USB file transfer to work. I will check.
Backup to internal storage is super fast, so I'm not concerned about using my USB stick. Btw, your firmware flasher enables dual SIM functionality. I suspected that's what did it, but wasn't absolutely sure until yesterday when I had to downgrade to get my fingerprint scanner working again after ro2rw broke the persist. But yeah, just thought you should know the F_15 firmware flasher enables the dual SIM functionality 👍
 
  • Like
Reactions: Wishmasterflo

Rootk1t

Senior Member
Jun 2, 2013
1,962
811
  • Like
Reactions: Wishmasterflo

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
    A question for Bill Goss.
    "Things to be aware of:
    EU only: You MUST
    have Airplane mode turned ON"
    OnePlus 8T, OOS 13 F.63 EU. OrangeFox-R12.1-OPKONA-V17.img.
    The above quotation is from Bill's TWRP instructions of August 2022, and I've assumed that it also applies to OrangeFox. But after several new releases of OF & TWRP since then, does this "airplane on" still apply?
    Thanks for your very helpful contributions, Bill.
    Firstly, if you want to get someone's attention you need to write @<user name> otherwise they don't get notified.

    Now for the long answer to your question.
    I no longer turn on airplane mode before taking a backup on KB2003. Unfortunately I can't tell at what point I changed my process. And, to make matters worse, I've used this Orange Fox, @apophis9283's TWRP version, and an unpublished version of TWRP from @Siddhant221 and I can't remember at which point I no longer needed to not turn airplane mode on before taking a backup.

    My guess is that it was when I was using @apophis9283's version because he made some great changes and @Siddhant221's version (which is currently my preferred version) is based on his version.

    But I've not tested (or more correctly "I've no recollection of testing") this on the latest version of Orange Fox, so the safe option is to turn on airplane mode before taking the backup.

    Of course, you could take two backups: one with Airplane mode on, one with it off. Then restore the airplane off backup and if it doesn't work, restore the airplane on backup. And post your results here so that others can benefit from your testing.

    Update: I tested if Airplane mode was necessary for restoring a backup using OrangeFox-R12.1-OPKONA-V17 on KB2003_11_F.63 and the answer is "You don't need to turn airplane mode on".
    And I think that it's F.63 (or possibly F.62) that changed the behaviour rather than the recovery. But I can't be sure because I didn't keep a record of when I noticed the change in behaviour.
    Bottom line: on the latest Orange Fox (and TWRP) a backup of F.63 can be restored without enabling airplane mode for the backup.
    2
    Firstly, if you want to get someone's attention you need to write @<user name> otherwise they don't get notified.

    Now for the long answer to your question.
    I no longer turn on airplane mode before taking a backup on KB2003. Unfortunately I can't tell at what point I changed my process. And, to make matters worse, I've used this Orange Fox, @apophis9283's TWRP version, and an unpublished version of TWRP from @Siddhant221 and I can't remember at which point I no longer needed to not turn airplane mode on before taking a backup.

    My guess is that it was when I was using @apophis9283's version because he made some great changes and @Siddhant221's version (which is currently my preferred version) is based on his version.

    But I've not tested (or more correctly "I've no recollection of testing") this on the latest version of Orange Fox, so the safe option is to turn on airplane mode before taking the backup.

    Of course, you could take two backups: one with Airplane mode on, one with it off. Then restore the airplane off backup and if it doesn't work, restore the airplane on backup. And post your results here so that others can benefit from your testing.
    Yeah due to no longer having this device anymore and becoming a moderator I will no longer be working on this. However my tress are there for anyone to use.
    2
    Updated Orangefox recovery V18 :)

    Changelog
    - Synced with latest Orangefox source changes

    Download link is updated in the OP.
    2
    See my update to previous post!
    That's great news, Bill - thanks. And thanks for taking the time and trouble to test.
  • 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-V18.img
    or flash it with: fastboot flash recovery OrangeFox-R12.1-OPKONA-V18.img
    The OrangeFox-R12.1-OPKONA-V17.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: V18
    Last Updated: 19-May-2023

    Changelog
    R12.1 V18 19-May-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.