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

[ROM][STOCK][FASTBOOT][OP6] Stock Fastboot ROMs for OnePlus 6

Search This thread

Geenyous1

Member
Dec 13, 2020
14
11
OnePlus 6
I tried to install the things in this post, but I'm not on Windows, so I flashed the images manually. It didn't work.

I think there's something in the protected partitions preventing TWRP from booting, I have no idea. But that's where I am at, either trying to write to those protected partitions or finding a 'fastboot update' compatible archive, or getting TWRP to somehow work

It's so annoying that on these new AB phones you don't have the recovery partition. I think that if I could get TWRP somehow onto the device it might work. But it doesn't work with 'fastboot boot', it gives the qualcomm crashdump
Did you try to find a stock boot.img for the system.img you where flashing and then flash that to both slots? (BTW, which file did you take the imgs from?)

You won't have TWRP on A11, but at least the phone should boot.

TWRP doesn't work for me flashed through fastboot. And I haven't tried anything else (like FKM I mentioned before). I am on stock 11.1.1.1 and rooted, don't need anything more than that.

And if that doesn't work, try to go back to A10.
 

Andy3153

Member
Apr 29, 2018
19
3
Did you try to find a stock boot.img for the system.img you where flashing and then flash that to both slots? (BTW, which file did you take the imgs from?)

You won't have TWRP on A11, but at least the phone should boot.

TWRP doesn't work for me flashed through fastboot. And I haven't tried anything else (like FKM I mentioned before). I am on stock 11.1.1.1 and rooted, don't need anything more than that.

And if that doesn't work, try to go back to A10.
I can't go back to android 10. Trying to do the steps in this thread complete successfully to some extent (some partitions get flashed, some don't, like it should apparently) but it won't give me a bootable phone. And, I'm using the latest link in this thread.

I now reached to a Windows machine to try MSMDownload, I'll have to figure out how to get in that special mode of the phone to use it though and I'll see if that works too
 

Geenyous1

Member
Dec 13, 2020
14
11
OnePlus 6
I can't go back to android 10. Trying to do the steps in this thread complete successfully to some extent (some partitions get flashed, some don't, like it should apparently) but it won't give me a bootable phone. And, I'm using the latest link in this thread.

I now reached to a Windows machine to try MSMDownload, I'll have to figure out how to get in that special mode of the phone to use it though and I'll see if that works too
Alright, it seems I can't help you then as I have no experience with those issues.
Good luck!
 
Last edited:

Andy3153

Member
Apr 29, 2018
19
3
Did you try to find a stock boot.img for the system.img you where flashing and then flash that to both slots? (BTW, which file did you take the imgs from?)

You won't have TWRP on A11, but at least the phone should boot.

TWRP doesn't work for me flashed through fastboot. And I haven't tried anything else (like FKM I mentioned before). I am on stock 11.1.1.1 and rooted, don't need anything more than that.

And if that doesn't work, try to go back to

Alright, it seems I can't help you then as I have no experience with those issues.
Good luck!
Well, what can I say, EDL mode and MSMDownload is God. Solved it in no time, got me right to OOS.
What I followed: https://networktips.in/how-to-unbrick-oneplus-6-6t/
 
  • Like
Reactions: Geenyous1

linzoid

Senior Member
Jul 29, 2012
75
20
The Abyss
I tried to install the things in this post, but I'm not on Windows, so I flashed the images manually. It didn't work.

I think there's something in the protected partitions preventing TWRP from booting, I have no idea. But that's where I am at, either trying to write to those protected partitions or finding a 'fastboot update' compatible archive, or getting TWRP to somehow work

It's so annoying that on these new AB phones you don't have the recovery partition. I think that if I could get TWRP somehow onto the device it might work. But it doesn't work with 'fastboot boot', it gives the qualcomm crashdump
I don't know if this is of any use to you, but I have just installed OOS 11.1.1.1 stable on my OP6 via OTA, coming from 10.3.12, which was rooted with Magisk 23 and TWRP 3.5.2_9-0. Now I can't boot into the TWRP image on my Windows computer to install the TWRP zip to obtain root. I get the Qualcomm crash dump message.
I think you are right - Android 11 has broken something.
 
  • Like
Reactions: Andy3153

Geenyous1

Member
Dec 13, 2020
14
11
OnePlus 6
I don't know if this is of any use to you, but I have just installed OOS 11.1.1.1 stable on my OP6 via OTA, coming from 10.3.12, which was rooted with Magisk 23 and TWRP 3.5.2_9-0. Now I can't boot into the TWRP image on my Windows computer to install the TWRP zip to obtain root. I get the Qualcomm crash dump message.
I think you are right - Android 11 has broken something.
I had the same issue. You can get root back easily (not TWRP though), follow my previous post #1229
 
  • Like
Reactions: PRDR and linzoid

linzoid

Senior Member
Jul 29, 2012
75
20
The Abyss
I had the same issue. You can get root back easily (not TWRP though), follow my previous post #1229
Thank you so much. I was having zero luck trying to extract the stock boot image from the payload.bin using Python etc on my PC. Probably doing something wrong, syntax error, missing a file - I don't know.
Glad that A11 is the last update for the OP6. I really like this phone and will keep it until it dies, but I want to keep it rooted. Google keeps introducing more obstacles to root with each update. Many thanks.
 

Andy3153

Member
Apr 29, 2018
19
3
I don't know if this is of any use to you, but I have just installed OOS 11.1.1.1 stable on my OP6 via OTA, coming from 10.3.12, which was rooted with Magisk 23 and TWRP 3.5.2_9-0. Now I can't boot into the TWRP image on my Windows computer to install the TWRP zip to obtain root. I get the Qualcomm crash dump message.
I think you are right - Android 11 has broken something.
I think that only some Android 11 ROMs break things. Why? Because I'm currently running dotOS from here, and that's Android 11. I did not flash TWRP, I'm only booting it through fastboot for taking some backups, but it does work.
 
  • Like
Reactions: linzoid

chrisrg

Member
Oct 25, 2020
15
5
These fastboot images are for restoring the device to it's previous state and not advised for upgrading.

So if my OP6 is on A10 custom rom and I want to upgrade to the A11 custom rom, with all due respect, what's the problem with flashing the fastboot image for 11 first? All the stock files are in the fastboot rom, no?
 
Last edited:

rocky184

Senior Member
Jan 16, 2011
62
21
OnePlus 6
Help! I've bricked my OP6 and have tried several options without success.
I was on lastest LineageOS and tried to install Syberia TWRP tas was going to try that but seems completely stuck.
Phone will power into Fastboot but Bootoader version & Baseband version as showing at blank (not sure if this is normal.
I've tried using Msmdownload tool but just gets stuck at Param preload and nothing happens.
Please help
Edit= Update
** Sorted :) **
Used Msmdownload again on a different laptop and managed to get back to Android 8 and then upgraded to 11.1.1.1 through Oxygen Updater.

May stick on stock for the time being....it's too stressful 😂
 
Last edited:

jaysaccount

New member
Dec 27, 2021
2
0
OnePlus 6
I flashed the 11.1.1.1 via this method since i had the qualcom dump, would it be possible for me to go back to 10.3.6 via the same method ?
 
Last edited:

Geenyous1

Member
Dec 13, 2020
14
11
OnePlus 6
I am not sure if TWRP works now, but for the guys who want to update without it and still get root, here are the stock OS 11.1.2.2 boot.img and Magisk 23 patched boot.img.

For Stock:
fastboot flash boot_a oos_11.1.2.2_stock_boot.img
fastboot flash boot_b oos_11.1.2.2_stock_boot.img
fastboot reboot

For root with Magisk 23:
Flash via fastboot:
fastboot flash boot_a magisk_patched-23000_209WS.img
fastboot flash boot_b magisk_patched-23000_209WS.img
fastboot reboot
 

Attachments

  • magisk_patched-23000_209WS.img
    64 MB · Views: 8
  • oos_11.1.2.2_stock_boot.img
    64 MB · Views: 12
  • Like
Reactions: jaysaccount

jaysaccount

New member
Dec 27, 2021
2
0
OnePlus 6
I am not sure if TWRP works now, but for the guys who want to update without it and still get root, here are the stock OS 11.1.2.2 boot.img and Magisk 23 patched boot.img.

For Stock:
fastboot flash boot_a oos_11.1.2.2_stock_boot.img
fastboot flash boot_b oos_11.1.2.2_stock_boot.img
fastboot reboot

For root with Magisk 23:
Flash via fastboot:
fastboot flash boot_a magisk_patched-23000_209WS.img
fastboot flash boot_b magisk_patched-23000_209WS.img
fastboot reboot
If I'm already on 11.1.1.1 and rooted, if I flash these magisk images, would that be sufficient? Or do I have to do a full flash?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    I am not sure if TWRP works now, but for the guys who want to update without it and still get root, here are the stock OS 11.1.2.2 boot.img and Magisk 23 patched boot.img.

    For Stock:
    fastboot flash boot_a oos_11.1.2.2_stock_boot.img
    fastboot flash boot_b oos_11.1.2.2_stock_boot.img
    fastboot reboot

    For root with Magisk 23:
    Flash via fastboot:
    fastboot flash boot_a magisk_patched-23000_209WS.img
    fastboot flash boot_b magisk_patched-23000_209WS.img
    fastboot reboot
  • 226
    Things are changing with the advent of project treble and seamless updates. OnePlus will no longer release ROMs flashable via stock recovery (with twrp is possible but not recommended). The updates will be done on the slot not used for example if you are using slot a the update will be installed on slot b and the slot b will be set as default. If you brick and you are in bootloop how you can restore the rom? You can't with Stock ROM you have, because the zip can be only installed via Update Engine, so what can you do? Flash a stock rom via fastboot. I have extracted all images from the stock zip and i have made a new zip with the Fastboot ROM with a flash-all.bat included. This will work only if your bootloader is unlocked. This will erase all your data and will wipe your internal storage.

    HOW TO FLASH
    Download the zip;
    Unpack the zip in a folder;
    Reboot the OnePlus 6 in fastboot mode (Power and volume-);
    Connect the OnePlus 6 to PC;
    Run flash-all.bat flasher you need;
    Wait until the process end;
    The phone will automatically reboot.

    FLASHER ADVANCED GUIDE
    flash-all-partitions-fastboot.bat : this .bat will flash all possible partitions through fastboot (Except persist) , there are some criticals partitions that can't be flashed through fastboot;
    flash-only-persist.bat : this .bat will flash only persist partition in fastboot mode (This is good for people that have problems with sensor);
    flash-all-partitions-recovery-criticals.bat : this .bat will boot the twrp and will flash criticals partitions, use this carefully;
    flash-system-boot-vendor.bat : this .bat is the same of older flash-all.bat and so it will flash only vendor, system and boot;
    flash-all-partitions.bat : this .bat will run flash-all-partitions-fastboot.bat , then flash-only-persist.bat and then flash-all-partitions-recovery-criticals.bat .

    Now usually the one needed is only the first "flash-all-partitions-fastboot.bat" but if you are badly bricked i recommend to use flash-all-partitions.bat .



    DOWNLOAD

    All roms on AFH: https://www.androidfilehost.com/?w=files&flid=271877
    All roms on Sourceforge: https://sourceforge.net/projects/fastbootroms/files/OnePlus 6/

    MANUAL FLASH: Windows - OSX - Linux

    If you want to manual flash these roms these are the commands (you need to extract images.zip before proceed)

    Fastboot Partitions:
    Code:
    fastboot flash aop_a aop.img
    fastboot flash aop_b aop.img
    fastboot flash bluetooth_a bluetooth.img
    fastboot flash bluetooth_b bluetooth.img
    fastboot flash boot_a boot.img
    fastboot flash boot_b boot.img
    fastboot flash dsp_a dsp.img
    fastboot flash dsp_b dsp.img
    fastboot flash dtbo_a dtbo.img
    fastboot flash dtbo_b dtbo.img
    fastboot flash fw_4j1ed_a fw_4j1ed.img
    fastboot flash fw_4j1ed_b fw_4j1ed.img
    fastboot flash fw_4u1ea_a fw_4u1ea.img
    fastboot flash fw_4u1ea_b fw_4u1ea.img
    fastboot flash modem_a modem.img
    fastboot flash modem_b modem.img
    fastboot flash oem_stanvbk oem_stanvbk.img
    fastboot flash qupfw_a qupfw.img
    fastboot flash qupfw_b qupfw.img
    fastboot flash storsec_a storsec.img
    fastboot flash storsec_b storsec.img
    fastboot flash system_a system.img
    fastboot flash system_b system.img
    fastboot flash vbmeta_a vbmeta.img
    fastboot flash vbmeta_b vbmeta.img
    fastboot flash vendor_a vendor.img
    fastboot flash vendor_b vendor.img
    fastboot flash LOGO_a LOGO.img
    fastboot flash LOGO_b LOGO.img
    If you need also persist partition, this is the command:
    Code:
    fastboot flash persist persist.img

    Criticals Partitions, for these you need to boot the TWRP:
    Code:
    fastboot boot TWRP.img
    When you are in TWRP you need to run these commands to push and flash all criticals partitions:
    Code:
    adb push abl.img /sdcard/abl.img
    adb shell dd if=/sdcard/abl.img of=/dev/block/bootdevice/by-name/abl_a
    adb shell dd if=/sdcard/abl.img of=/dev/block/bootdevice/by-name/abl_b
    adb push cmnlib.img /sdcard/cmnlib.img
    adb shell dd if=/sdcard/cmnlib.img of=/dev/block/bootdevice/by-name/cmnlib_a
    adb shell dd if=/sdcard/cmnlib.img of=/dev/block/bootdevice/by-name/cmnlib_b
    adb push cmnlib64.img /sdcard/cmnlib64.img
    adb shell dd if=/sdcard/cmnlib64.img of=/dev/block/bootdevice/by-name/cmnlib64_a
    adb shell dd if=/sdcard/cmnlib64.img of=/dev/block/bootdevice/by-name/cmnlib64_b
    adb push devcfg.img /sdcard/devcfg.img
    adb shell dd if=/sdcard/devcfg.img of=/dev/block/bootdevice/by-name/devcfg_a
    adb shell dd if=/sdcard/devcfg.img of=/dev/block/bootdevice/by-name/devcfg_b
    adb push hyp.img /sdcard/hyp.img
    adb shell dd if=/sdcard/hyp.img of=/dev/block/bootdevice/by-name/hyp_a
    adb shell dd if=/sdcard/hyp.img of=/dev/block/bootdevice/by-name/hyp_b
    adb push keymaster.img /sdcard/keymaster.img
    adb shell dd if=/sdcard/keymaster.img of=/dev/block/bootdevice/by-name/keymaster_a
    adb shell dd if=/sdcard/keymaster.img of=/dev/block/bootdevice/by-name/keymaster_b
    adb push xbl.img /sdcard/xbl.img
    adb shell dd if=/sdcard/xbl.img of=/dev/block/bootdevice/by-name/xbl_a
    adb shell dd if=/sdcard/xbl.img of=/dev/block/bootdevice/by-name/xbl_b
    adb push xbl_config.img /sdcard/xbl_config.img
    adb shell dd if=/sdcard/xbl_config.img of=/dev/block/bootdevice/by-name/xbl_config_a
    adb shell dd if=/sdcard/xbl_config.img of=/dev/block/bootdevice/by-name/xbl_config_b


    REMEMBER
    "Invalid sparce file format at header magic" is not an error, you need to wait a bit when you see that string, just wait.

    These ROMs can't be used to update or downgrade your phone but just to restore your phone, so don't use them to come back to oreo or to update from oreo to pie.

    If you want to rebrand your phone from HydrogenOS to OxygenOS you can follow this guide: Rebrand Guide

    If you want you can use also my tool to flash Factory Images, unlock bootloader, flash twrp or to understand if the device is recognized: https://toolaio.tk/

    Thanks to @SaiBork for first time tested

    If you got some problems like write error or no partition, check this: https://forum.xda-developers.com/showpost.php?p=76658555&postcount=34

    DONATE LINK

    If you want to support this and others my projects please consider making a donation, thanks.

    16
    Does using this method restores stock recovery??
    12
    This would've saved me 6 hours of my life trying to unbrick my 6 this morning. You are a savior. Reserved.
    12
    I've uploaded latest 5.1.11
    7

    cmd window said it had failed due to not having a partition to write to, my phone seems to be in a boot loop ATM
    I did backup a partial working (still bootable) backup and saved it on my pc but I cannot seem to transfer it back to the phone after using your BAT file. The phone will not boot at all

    ---------- Post added at 02:53 PM ---------- Previous post was at 02:36 PM ----------


    After the first failed attempt, when I try to reflash using the runall.bat, it just says phone is already unlocked and does nothing else. Phone is still partially bricked (no bootable rom at all, cannot install oxygen os through TWRP and also wont let me transfer files from PC to internal storage)

    ---------- Post added at 03:15 PM ---------- Previous post was at 02:53 PM ----------

    Tried sideloading stock OxygenOS, it fails to install zip "updater process ended with ERROR: 255.
    Nothing at all seems to be able to fix my phone lol

    ---------- Post added at 03:23 PM ---------- Previous post was at 03:15 PM ----------

    target reported max download size of 536870912 bytes
    Invalid sparse file format at header magic
    wiping userdata
    erase successful but not automatically formatting
    cant determine partition type
    FAILED command write failed no error

    ---------- Post added at 03:33 PM ---------- Previous post was at 03:23 PM ----------


    I believe I have fixed my issue with your BAT not working,
    I needed to mark the EXE files as large address aware, to be compatible with my 64bit OS.

    Done here if anyone else has same issue:
    https://www.techpowerup.com/forums/threads/large-address-aware.112556/

    My phone has just booted! Much thanks to the OP, you have just saved my device