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

Search This thread

Aurora333

Member
Dec 31, 2021
38
1
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/
I think I'm in the same situation you were in. Just to clarify, were you on Android 11? Did you flash Android 10 using the MSM tool?

Would greatly appreciate an answer to this...nothing I am trying is working!

Edit: MSM worked for me. Flashed OOS with Android 10. If anyone gets stuck on the Sahara error, hold volume up and power button with the error visible on screen. The phone will disconnect and reconnect and the download will commence.
 
Last edited:

Geenyous1

Member
Dec 13, 2020
14
11
OnePlus 6
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?
I'm not sure what you are referring to.
If you want to update to OOS 11.1.2.2, then update through the standard system update process in OOS, reboot and then flash the patched boot.img in fastboot after as per my instructions.
 

Thalasso

New member
Jan 6, 2022
4
0
Hello,

I think I did something wrong when I was upgrading from LineageOS 17.1 to LOS 18.1, because since 18.1 my wifi loses its connection regularly or cant connect at all, same with mobile data connection, but not as often. Also my camera crashes when I record something, stating that another application uses the camera. I think something went wrong when I was flashing the extracted adio etc from the newest Stock ROM.

I want to flash the Original ROM, update it with the internal updater and then flash LOS 18.1 again to fix this.

Can i flash the files from posts #1257 and #1259 to do this? Is this a possible solution for my issues?
 

Aurora333

Member
Dec 31, 2021
38
1
I would flash microG first and if that doesn't work, use the MSM method as per above. Just the way I would approach it...
 

Thalasso

New member
Jan 6, 2022
4
0
if anyone is still using these fastboot images, I packed up fastboot image for 11.1.2.2 official update:


cheerz!
So I can download this ROM and flash it with the following method?

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/
Using MSMDownload Tool and then start from scratch if I want to flash LineageOS like it was a new device which was never rooted or flashed before?

I would flash microG first and if that doesn't work, use the MSM method as per above. Just the way I would approach it...

Thanks for your advice, but if my device only works fine with microG I would rather not use it at all, because avoiding google Services is one reason I use LineaeOS.
 

Aurora333

Member
Dec 31, 2021
38
1
So I can download this ROM and flash it with the following method?


Using MSMDownload Tool and then start from scratch if I want to flash LineageOS like it was a new device which was never rooted or flashed before?



Thanks for your advice, but if my device only works fine with microG I would rather not use it at all, because avoiding google Services is one reason I use LineaeOS.
The point isn't to use microG, the point is to identify the problem. Like I said, the YT video said you WILL get problems if you don't use microG, so maybe the actual problem is that the custom ROM can't work without microG and that you're stuck on LineageOS 17...until that runs into camera and wifi issues.
 
No, with Update Engine. With project treble the updates are installed from an Android app called Update Engine in the slot that you are not using, when you reboot the device after the update, the slot will be changed and you will have the update. The stock recovery is there only to wipe your memory if needed and there is no longer the recovery partition but the recovery is included in the boot partition.




Yes, i added it on first post



If you get some errors write it here and i will help you to solve it
PS C:\adb> adb push abl.img /sdcard/abl.img
cannot stat 'abl.img': No such file or directory
🤷‍♂️ i entered this command and recieved this response while my oneplus6t was in twrp what am i doing wrong (side question op6t has no sdcard slot does that affect this command?
 

sendme2pop

Senior Member
Aug 28, 2014
116
11
Kolhapur
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.

My bootloader is not unlocked and i'm stuck in fastboot anyway to fix this.
 

biel.paes

Senior Member
Sep 30, 2014
56
5
I was using version 11.1.2.2 will I have problems if I go back to version 10.3.6-OnePlus6Oxygen_22.J.48_OTA or does this version match 11.1.2.2?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 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