FORUMS
Remove All Ads from XDA

[ROM][STOCK][FASTBOOT][OP7] Stock Fastboot ROMs for OnePlus 7

3,418 posts
Thanks Meter: 7,746
 
Post Reply Email Thread
Things are changing with the advent of project treble and seamless updates. OnePlus will no longer release ROMs flashable via recovery (either stock or twrp) because is no more needed. 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
This version is only for not branded devices
Download the zip;
Unpack the zip in a folder;
Reboot the OnePlus 7 in fastboot mode (Power and volume + and volume-);
Connect the OnePlus 7 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=295200
All roms on Sourceforge: https://sourceforge.net/projects/fas...es/OnePlus%207

BRANDED PHONE
For now branded device are not supported

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 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
adb push odm.img /sdcard/odm.img
adb shell dd if=/sdcard/odm.img of=/dev/block/bootdevice/by-name/odm_a
adb shell dd if=/sdcard/odm_config.img of=/dev/block/bootdevice/by-name/odm_b
adb push tz.img /sdcard/tz.img
adb shell dd if=/sdcard/tz.img of=/dev/block/bootdevice/by-name/tz_a
adb shell dd if=/sdcard/tz.img of=/dev/block/bootdevice/by-name/tz_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 the rom seems doesn't start go in recovery stock and follow this guideline: English -> Wipe data and cache -> Erase everything.

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/sho...5&postcount=34

DONATE LINK

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

Donate link
The Following 22 Users Say Thank You to mauronofrio For This Useful Post: [ View ] Gift mauronofrio Ad-Free
8th June 2019, 05:58 PM |#2  
arvindgr's Avatar
Senior Member
Flag Tamilan
Thanks Meter: 304
 
More
What does branded devices mean?
9th June 2019, 09:06 AM |#3  
Ismael034's Avatar
Member
Flag Granada
Thanks Meter: 17
 
More
What about locking the bootloader. I noticed recovery image is not included
The Following User Says Thank You to Ismael034 For This Useful Post: [ View ] Gift Ismael034 Ad-Free
9th June 2019, 01:47 PM |#4  
Senior Member
Flag Brno
Thanks Meter: 48
 
More
Recovery is a part of the boot image for A/B devices such as Oneplus 7.

---------- Post added at 02:47 PM ---------- Previous post was at 02:46 PM ----------

Quote:
Originally Posted by arvindgr

What does branded devices mean?

Branded device means it is customized by mobile service provider, such as T Mobile.
The Following 2 Users Say Thank You to NeoVsk For This Useful Post: [ View ] Gift NeoVsk Ad-Free
11th June 2019, 04:04 PM |#5  
Senior Member
Flag Lucknow
Thanks Meter: 80
 
More
any way to flash this without erasing data
20th June 2019, 02:24 AM |#6  
arvindgr's Avatar
Senior Member
Flag Tamilan
Thanks Meter: 304
 
More
Quote:
Originally Posted by Dragonlord07

any way to flash this without erasing data

There were multiple scripts included in the zip
Just Be sure to flash the script that does not include -w fastboot parameter

Also, @mauronofrio My phone was originally GM57AA, but since stock image is of GM57BA my phone become GM57BA. Any ideas on how to go back to GM57AA...?
20th June 2019, 11:35 AM |#7  
Quote:
Originally Posted by Dragonlord07

any way to flash this without erasing data

Just remove -w from the script

Quote:
Originally Posted by arvindgr

There were multiple scripts included in the zip
Just Be sure to flash the script that does not include -w fastboot parameter

Also, @mauronofrio My phone was originally GM57AA, but since stock image is of GM57BA my phone become GM57BA. Any ideas on how to go back to GM57AA...?

Just flash the GM57AA rom, there are boths in the link you can find in the first post
The Following 3 Users Say Thank You to mauronofrio For This Useful Post: [ View ] Gift mauronofrio Ad-Free
19th July 2019, 12:48 AM |#8  
Senior Member
España
Thanks Meter: 11
 
More
Quote:
Originally Posted by Ismael034

What about locking the bootloader. I noticed recovery image is not included

Hello, I have sent you a message regarding this message. a greeting.
19th July 2019, 06:06 PM |#9  
Senior Member
Flag Århus
Thanks Meter: 70
 
More
Stuck at boot animation. Is there a way to make it do it's thing on both slots?
19th July 2019, 06:23 PM |#11  
Senior Member
Flag Århus
Thanks Meter: 70
 
More
Quote:
Originally Posted by mauronofrio

Go in stock recovery, go to wipe data, check also internal storage and wipe it, then it should work.

There is 3 options. Reset system settings, wipe cache & erase everything. There does not appear to be an option to "wipe data" like it would say in twrp or check internal storage. I erased everything and restarted the process, hope that was what you meant.[COLOR="Silver"]

---------- Post added at 19:23 ---------- Previous post was at 19:15 ----------

That worked, now my question is. The reason i was doing this was because slot B was unable to mount storage, slot A worked fine and phone worked fine. Would this process fix the issue i had with slot B?
Post Reply Subscribe to Thread

Tags
brick, fastboot, oneplus 7, restore, rom

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes