• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[GUIDE] Flash Treble ROMs on OP7 Pro

Search This thread

maxtreme

Senior Member
Jun 2, 2014
72
34
Hey folks, after some digging I found a method how to flash Treble ROMs on our OP7 Pros!
I've only achieved this by following many great guides here on xda so credits go to: @Exelios and @demkantor for their threads which you can find here respectively:
https://forum.xda-developers.com/oneplus-6/how-to/treble-mistery-solved-developer-t3800716
https://forum.xda-developers.com/showthread.php?t=2277112

Prerequisites:
  • Make sure all drivers for your device have already been installed. Otherwise plug in your phone to your PC and wait for all drivers to finish installing
  • Latest fastboot - minimal packages won't work, so follow the guide from the second link above
  • Stock boot.img and vbmeta.img which you can get from stock fastboot ROMs found here: https://forum.xda-developers.com/oneplus-7-pro/how-to/rom-stock-fastboot-roms-oneplus-7-pro-t3931424
    Inside these zips there's another zip called images.zip in which you can find required imgs for your particular device
  • Treble ROM of your choice (arm64 a/b)

Steps:
  1. Copy all sensitive data from your phone as this process will wipe your phone entirely!
    This includes: photos, songs, and any other files!
  2. Put all needed files in one folder
  3. Run cmd
  4. Type: cd <your folders directory>
  5. Reboot your phone in fastboot mode (hold power+vol up+vol down for a few seconds)
    and connect it to your PC
  6. Then type:
    Code:
    fastboot flash boot_a boot.img
    fastboot flash boot_b boot.img
  7. After that:
    Code:
    fastboot -w flash system <your Treble ROMs name>.img
    Using just the inactive partition and OxygenOS on another didn't seem to work for me.
    This is the point at which your data will be erased so make sure again you have all your files
  8. And finally:
    Code:
    fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
    This is required. If you want to go to stock either flash it again without
    Code:
    --disable-verity --disable-verification
    or use aforementioned stock fastboot ROM package
  9. Now reboot and wait for the phone to boot
  10. Success!
If you got a bootloop or something just didn't go right you will have to repeat all of the steps

Now you can flash patched boot image to get root or try any of the fixes found here

Bugs:
  • 60Hz
  • Fingerprint sensor
  • After using front camera it's stuck - it won't slide back inside the phone
  • Only 3G data connection
  • Wi-Fi signal seems to be quite weak
  • No Warp Charge

Credits:
@Exelios
@demkantor
@mauronofrio
 

Attachments

  • Screenshot_Settings_20190608-233003.png
    Screenshot_Settings_20190608-233003.png
    164.5 KB · Views: 2,417
Last edited:

AndroPlus

Senior Member
I got 90Hz working on my FlokoROM GSI with this dirty hack:
https://github.com/AndroPlus-org/an...mmit/724725063f12dfa7b95b43d97114149831f748b0
dtbo.img for 9.5.4 (flash it by fastboot flash dtbo dtbo.img, don't know if it work on other version)
https://drive.google.com/open?id=1X7W9iyKVy7gmkBjCSght7gy_Sbl4t3Iz

It replaces default 60Hz config with 90Hz one lol


For Warp charge, we need to place "dashd" to somewhere in system and run it:
https://github.com/FlokoROM-GSI/device_phh_treble/commit/1ef10fa131d6e350a2cd00fd25c10b621cbb1d5f
dashd should be added to device_phh_treble, but currently I added it with Magisk Module.
https://drive.google.com/open?id=11eD8CqJmdblfYlLXuiHMIhkxweTD9hzD
 

maxtreme

Senior Member
Jun 2, 2014
72
34
I got 90Hz working on my FlokoROM GSI with this dirty hack:
https://github.com/AndroPlus-org/an...mmit/724725063f12dfa7b95b43d97114149831f748b0
dtbo.img for 9.5.4 (flash it by fastboot flash dtbo dtbo.img, don't know if it work on other version)
https://drive.google.com/open?id=1X7W9iyKVy7gmkBjCSght7gy_Sbl4t3Iz

It replaces default 60Hz config with 90Hz one lol


For Warp charge, we need to place "dashd" to somewhere in system and run it:
https://github.com/FlokoROM-GSI/device_phh_treble/commit/1ef10fa131d6e350a2cd00fd25c10b621cbb1d5f
dashd should be added to device_phh_treble, but currently I added it with Magisk Module.
https://drive.google.com/open?id=11eD8CqJmdblfYlLXuiHMIhkxweTD9hzD

Very cool! I'm not as tech savvy so could I point to your post in the main one for additional fixes?
 

miffymiffy

Senior Member
Apr 25, 2007
1,319
361
37
Wollongong
HTC One (M8)
HTC U11
Legend! I managed to get havoc up and running. There is a OOS camera magisk port in the op6 forum I used and updated the camera to current one plus version and its working well. Front can doesn't work as you know.
Most things are working fine for me at the moment. No real issues yet
Camera quality is poor, but I'm not that fussed by it at the moment. Just want to play!

Thanks heaps for the guide.

---------- Post added at 09:54 AM ---------- Previous post was at 09:54 AM ----------

I got 90Hz working on my FlokoROM GSI with this dirty hack:
https://github.com/AndroPlus-org/an...mmit/724725063f12dfa7b95b43d97114149831f748b0
dtbo.img for 9.5.4 (flash it by fastboot flash dtbo dtbo.img, don't know if it work on other version)
https://drive.google.com/open?id=1X7W9iyKVy7gmkBjCSght7gy_Sbl4t3Iz

It replaces default 60Hz config with 90Hz one lol


For Warp charge, we need to place "dashd" to somewhere in system and run it:
https://github.com/FlokoROM-GSI/device_phh_treble/commit/1ef10fa131d6e350a2cd00fd25c10b621cbb1d5f
dashd should be added to device_phh_treble, but currently I added it with Magisk Module.
https://drive.google.com/open?id=11eD8CqJmdblfYlLXuiHMIhkxweTD9hzD

Will floko be updated with the op7 stuff you fix?
 

AndroPlus

Senior Member
Legend! I managed to get havoc up and running. There is a OOS camera magisk port in the op6 forum I used and updated the camera to current one plus version and its working well. Front can doesn't work as you know.
Most things are working fine for me at the moment. No real issues yet
Camera quality is poor, but I'm not that fussed by it at the moment. Just want to play!

Thanks heaps for the guide.

---------- Post added at 09:54 AM ---------- Previous post was at 09:54 AM ----------



Will floko be updated with the op7 stuff you fix?

I'll add it at the weekend (with June security patch)
 

eqbirvin

Senior Member
Apr 6, 2012
579
472
Philly
Great walkthrough! Two questions, any way to flash treble ROMs in twrp for us? and how do you think we could get erfanoabdi's android q gsi that's ported from the pixel to work on the device?
 
  • Like
Reactions: jhakjhuk1853

jhakjhuk1853

Senior Member
Nov 28, 2012
506
231
33
Mumbai
i have tried every gs rom by erfan for this non eof them work all stuck at boot logo
maybe permissive issue which has to be flashed in A partion rom
Great walkthrough! Two questions, any way to flash treble ROMs in twrp for us? and how do you think we could get erfanoabdi's android q gsi that's ported from the pixel to work on the device?
 
  • Like
Reactions: eqbirvin

taanh1412

Senior Member
Dec 4, 2015
82
17

Top Liked Posts

  • There are no posts matching your filters.
  • 10
    Hey folks, after some digging I found a method how to flash Treble ROMs on our OP7 Pros!
    I've only achieved this by following many great guides here on xda so credits go to: @Exelios and @demkantor for their threads which you can find here respectively:
    https://forum.xda-developers.com/oneplus-6/how-to/treble-mistery-solved-developer-t3800716
    https://forum.xda-developers.com/showthread.php?t=2277112

    Prerequisites:
    • Make sure all drivers for your device have already been installed. Otherwise plug in your phone to your PC and wait for all drivers to finish installing
    • Latest fastboot - minimal packages won't work, so follow the guide from the second link above
    • Stock boot.img and vbmeta.img which you can get from stock fastboot ROMs found here: https://forum.xda-developers.com/oneplus-7-pro/how-to/rom-stock-fastboot-roms-oneplus-7-pro-t3931424
      Inside these zips there's another zip called images.zip in which you can find required imgs for your particular device
    • Treble ROM of your choice (arm64 a/b)

    Steps:
    1. Copy all sensitive data from your phone as this process will wipe your phone entirely!
      This includes: photos, songs, and any other files!
    2. Put all needed files in one folder
    3. Run cmd
    4. Type: cd <your folders directory>
    5. Reboot your phone in fastboot mode (hold power+vol up+vol down for a few seconds)
      and connect it to your PC
    6. Then type:
      Code:
      fastboot flash boot_a boot.img
      fastboot flash boot_b boot.img
    7. After that:
      Code:
      fastboot -w flash system <your Treble ROMs name>.img
      Using just the inactive partition and OxygenOS on another didn't seem to work for me.
      This is the point at which your data will be erased so make sure again you have all your files
    8. And finally:
      Code:
      fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
      This is required. If you want to go to stock either flash it again without
      Code:
      --disable-verity --disable-verification
      or use aforementioned stock fastboot ROM package
    9. Now reboot and wait for the phone to boot
    10. Success!
    If you got a bootloop or something just didn't go right you will have to repeat all of the steps

    Now you can flash patched boot image to get root or try any of the fixes found here

    Bugs:
    • 60Hz
    • Fingerprint sensor
    • After using front camera it's stuck - it won't slide back inside the phone
    • Only 3G data connection
    • Wi-Fi signal seems to be quite weak
    • No Warp Charge

    Credits:
    @Exelios
    @demkantor
    @mauronofrio
    10
    I got 90Hz working on my FlokoROM GSI with this dirty hack:
    https://github.com/AndroPlus-org/an...mmit/724725063f12dfa7b95b43d97114149831f748b0
    dtbo.img for 9.5.4 (flash it by fastboot flash dtbo dtbo.img, don't know if it work on other version)
    https://drive.google.com/open?id=1X7W9iyKVy7gmkBjCSght7gy_Sbl4t3Iz

    It replaces default 60Hz config with 90Hz one lol


    For Warp charge, we need to place "dashd" to somewhere in system and run it:
    https://github.com/FlokoROM-GSI/device_phh_treble/commit/1ef10fa131d6e350a2cd00fd25c10b621cbb1d5f
    dashd should be added to device_phh_treble, but currently I added it with Magisk Module.
    https://drive.google.com/open?id=11eD8CqJmdblfYlLXuiHMIhkxweTD9hzD
    3
    Legend! I managed to get havoc up and running. There is a OOS camera magisk port in the op6 forum I used and updated the camera to current one plus version and its working well. Front can doesn't work as you know.
    Most things are working fine for me at the moment. No real issues yet
    Camera quality is poor, but I'm not that fussed by it at the moment. Just want to play!

    Thanks heaps for the guide.

    ---------- Post added at 09:54 AM ---------- Previous post was at 09:54 AM ----------



    Will floko be updated with the op7 stuff you fix?

    I'll add it at the weekend (with June security patch)
    1
    Great walkthrough! Two questions, any way to flash treble ROMs in twrp for us? and how do you think we could get erfanoabdi's android q gsi that's ported from the pixel to work on the device?
    1
    Great walkthrough! Two questions, any way to flash treble ROMs in twrp for us? and how do you think we could get erfanoabdi's android q gsi that's ported from the pixel to work on the device?
    +1 to this.