yashsingh1/xdaforums huggingface dataset:
[OnePlus 6 Guides, News, & Discussion] Terrigible:
Oh that means "press a button to continue" LOL. Maybe use Google translate before freaking out.
[OnePlus 6 Guides, News, & Discussion] mauronofrio:
I dont think is a problem of this .bat, maybe you missed something or maybe you need to download the latest version of 5.1.9, in the first one i forgot some files
[OnePlus 6 Guides, News, & Discussion] °Washy:
[MENTION=4712355]mauronofrio[/MENTION] aiutami per favore. Non capisco perchè il tuo installer a volte si blocca sul flash della partizione b.
[OnePlus 6 Guides, News, & Discussion] mauronofrio:
Su questo forum si parla in inglese, se non lo conosci traduci con google traduttore e incolla dopo il testo in italiano anche quello in inglese

Puoi fare uno screenshot? Sei stato un po' troppo generico.

Can you take a screenshot? You've been a little too general.
[OnePlus 6 Guides, News, & Discussion] °Washy:
ok sorry a lot; I can't take a screenshot cause I'm working actually. The installer.bat stucks at message "invalide sparse file is not an error, You have to wait." I tried a lot of times cause sometimes it goes forward and I got error about 32/64 bit, according with link in the first page about error. Now like I said above, I solved the system problem but installer stuck in that message. ( sorry my horrible english)
[OnePlus 6 Guides, News, & Discussion] mauronofrio:
when you see that string you have to wait also 20 minutes
[OnePlus 6 Guides, News, & Discussion] °Washy:
Ok thanks man, I have a last question for you: the critical and persist partitions needs to be flashed in particular situations?
[OnePlus 6 Guides, News, & Discussion] mauronofrio:
The criticals need to be flashed if you come from another oxygen os version, the persist contains some data about camera and sensors, if you have problems with them flash it
[OnePlus 6 Guides, News, & Discussion] °Washy:
I'm flashing ROM manually and now I'm waiting at "fastboot flash system_b system.img" but nothing is noticed by cmd.
[OnePlus 6 Guides, News, & Discussion] mauronofrio:
Wait a bit more
[OnePlus 6 Guides, News, & Discussion] °Washy:
I will man, sorry if I appeared rude; this new a/b flashing make me afraid every times.

---------- Post added at 11:19 AM ---------- Previous post was at 10:54 AM ----------

I stuck in that message from 25 minutes about and my cpu usage is 1%. I believe need to try another way for my problem. I can't understand the logic behind, sometimes goes forward but the most of times it sticks.

SOLVED <3
[OnePlus 6 Guides, News, & Discussion] mauronofrio:
How did you solve?
[OnePlus 6 Guides, News, & Discussion] °Washy:
I flashed system in a/b as First cause I assumed that my problem was about my PC processing. So If you have an old PC, you could think to flash system as First.
[OnePlus 6 Guides, News, & Discussion] enerGy:
Tried with your tool and Im getting error flash-all.exe or flash-all.bat not found. Sorry if silly question but what can be done?
[OnePlus 6 Guides, News, & Discussion] mauronofrio:
My tool actually doesn't support this rom, in fact i removed it from first post
[OnePlus 6 Guides, News, & Discussion] enerGy:
Ah ok cool, thanks for the info. Im still quite new to this whole way of doing things but i have it sorted now so again thank you buddy great work
[OnePlus 6 Guides, News, & Discussion] Abaddon:
So I somehow messed my my critical partitions. Every time I flashed system related then reboot. It goes into EDL mode and gets stuck there. Reflashed the rom via qcom usb then used your script for the critical partitions and boom! All good now. Thanks!
[OnePlus 6 Guides, News, & Discussion] limafranco:
SO, would you recommend this method to return to OOS from a custom rom?

I forgot to nandroid.

Thanks
[OnePlus 6 Guides, News, & Discussion] Terrigible:
It should work, but make sure to flash everything
[OnePlus 6 Guides, News, & Discussion] doctor78SI:
I am still having issues with portrait mode. It appears my secondary camera has issues. When checking it in factory mode it FC. Would flashing critical partitions or partial maybe help? I am still researching those partitions and I am not sure what exactly do they do so any help is appreciated.

Edit: as I am reading it appears that some camera info/settings are also stored on persist partition. Can somebody confirm this? Does somebody know what kind of info is stored there?
[OnePlus 6 Guides, News, & Discussion] leondestiny:
thx heaps for the bat files..

and the full zip.

this is great for those wanting to go back to oos from a custom rom.
[OnePlus 6 Guides, News, & Discussion] old_fart:
[MENTION=225651]op[/MENTION] I tried to proceed with your fix - via a wipe of : cache / system / data and a factory reset.

It did not work !

I had to do a "FORMAT DATA" step to get it done.

( that was scary . . . )
[OnePlus 6 Guides, News, & Discussion] SpectraFun:
Whene use flash-all-partitions-fastboot.bat you need afer this manuel reboot to recovery and format all, thene reboot and all working.
[OnePlus 6 Guides, News, & Discussion] mauronofrio:
I will add a format data option in the next .bat files
[OnePlus 6 Guides, News, & Discussion] saketh91:
Bricked my phone

Hello [MENTION=4712355]mauronofrio[/MENTION] I came here after I had TWRP, Havoc OS(OS 5.1.9), Magisk installed on my phone. All I did was download your zip, reboot the device to fastboot, make sure it is fastboot unlocked and ran the flash-all-partitions.bat file. It ran the script while being on fastboot and finally it said "FINISHED". I then when the fastboot said start, I clicked the power button hoping that it would restart. I saw the yellow exclamatory message and when I was about to think that it rebooted successfully, it never did. All I see now is a blank screen and a blue light. My windows 10 installed some Qualcomm drivers and all I see in the device manager is "Qualcomm HS-USB diagnostics 900E(COM8) under PORTS section. My sincere apologies if I am dumb enough to not follow the instructions. Please help me kind sir. Keep up the great work
[OnePlus 6 Guides, News, & Discussion] °Washy:
Check the guide "mega unbrick for op6" in this forum. You should solve It.
[OnePlus 6 Guides, News, & Discussion] JDougherty77:
thanks!

thanks for this, after going from stock to havoc, i tried to go to android P DP3 and got stuck in a loop, everything i did from there got worse. i flashed the flash-all-partitions.bat after then it would keep auto booting into stock recovery. i did a wipe everything from stock recovery and it finally booted up OOS. thanks!!!
[OnePlus 6 Guides, News, & Discussion] rickysidhu_:
How come the .sh file has been removed from the fastboot zip? I have a Mac and .bat files are for Windows I believe.
[OnePlus 6 Guides, News, & Discussion] mauronofrio:
Unofortanely the i have not tested the .sh files, if you want.you can.use the guide tonthe manual.flash
[OnePlus 6 Guides, News, & Discussion] varun.gid:
so i tried to use this when i was bricked i was stuck at bootloader. after using your fastboot package its stuck at boot animation. any help?
[OnePlus 6 Guides, News, & Discussion] imhere2:
thank you very much i just flash the devise with this flash-all-partitions.bat . and everything ok and all photo music download was there not delete it

so much thank you
[OnePlus 6 Guides, News, & Discussion] mauronofrio:
Do a wipe data from stock recovery
[OnePlus 6 Guides, News, & Discussion] yldlj:
If the OnePlus 6 is in a bootloop could you not just boot to twrp, wipe data then flash the full ROM? In the OP it says there aren't ROMs that can be flashed from recovery but full ROMs have been released. Sorry if I'm misunderstanding something
[OnePlus 6 Guides, News, & Discussion] magerb:
@ mauronofrio, I just wanted to thank you for this thread and your great work!

When my OnePlus 6 booted into system it went to a black screen with a constantly lit faint blue notification light. When I booted into recovery it would just freeze at the TWRP boot screen. I tried many methods for hours trying to restore my device with no luck. Then I came across this thread, set everything up as instructed and ran flash-all-partitions-fastboot.bat. This restored my OnePlus 6 to factory condition with the latest OxygenOS 5.1.9.

This is a fantastic fail safe recovery method!

Michael
[OnePlus 6 Guides, News, & Discussion] gibs87:
Hi im using the XXX no limits 2.8 + elemental x 1.12 on OOS 5.1.9. The problem i face is after a reboot an error pops up saying 'system isnt responding' .Now finger print scanner is not registering, face unlock not working and wifi not working. What could have lead to this problem. Had dirty flashed 2.8 over the 2.7. Other that these issues my my phone has network and connect to internet.

Someone pls help me in solving this. Sorry for the noob questions
[OnePlus 6 Guides, News, & Discussion] gibs87:
Thanks mate..followed your steps as I had a 64 bit PC..now all good again

---------- Post added at 07:31 AM ---------- Previous post was at 07:29 AM ----------

Thank you so much..my device is up and working normal
[OnePlus 6 Guides, News, & Discussion] Cablespider:
I joined the bricked crowd for the first time today. I'm not even sure how it happened. One minute I'm getting my flashy flashy on, then down for the count. Sucks because I was at work all day today without a phone. Anyway, got home, did some research on why I couldn't fastboot boot TWRP and that led me here. Downloaded the zip, ran the flash-all-partitions-fastboot.bat and was up and running shortly after. Phew! I was suprised to see my storage still intact.

Another satified customer. Bless you!
[OnePlus 6 Guides, News, & Discussion] shailo:
Alright did the flash all partitions.bat but the initial setup keeps getting stuck after selecting a language. Help?
[OnePlus 6 Guides, News, & Discussion] mauronofrio:
What version you have flashed? What version you have before the flash?
[OnePlus 6 Guides, News, & Discussion] shailo:
I was on Havoc OS which turned out not to work well. So I flashed OOS 5.1.9 via TWRP which actually worked except for being stuck on the setup. So then I used the zip from the OP and used flash-all-partitions-fastboot.bat. This got me at the exact same problem.
[OnePlus 6 Guides, News, & Discussion] mauronofrio:
Try to make a wipe data through stock recovery. What stock rom you have before flash havoc Os?
[OnePlus 6 Guides, News, & Discussion] shailo:
Did a wipe still doesn't go past the "just a sec" screen. Before Havoc I was on 5.1.9 aswell.
[OnePlus 6 Guides, News, & Discussion] mauronofrio:
So try with a "fastboot -w"
[OnePlus 6 Guides, News, & Discussion] shailo:
That did the trick. What's the difference between this and the recovery wipe? Thanks a lot for helping me and for giving me your time.
[OnePlus 6 Guides, News, & Discussion] mauronofrio:
This wiped also your internal.storage
[OnePlus 6 Guides, News, & Discussion] racka:
Dude, it was you right? A couple of days ago in the Havoc or Frankenrom thread. Writing that this is it, the daily driver that you will stick with, bla bla bla, hahah. I wanted to reply to you right away, but unfortunately I was in the road and had no time.

I wanted to tell you that you shouldn't get your hopes up and think you'll live the quite flashless life, no no no no no. Once a flashaholkc always a flashohic. No way out. Especially not with a OnePlus phone :laugh:

Hoe could you even think such a thing? So please, don't ever post in a thread that this is the rom that you will stick with, again. It's simply not true :p

I think I don't need to clarify that I'm just friendly joking with you.

Anyway, it's nice to see you comment among most rom development threads. Keep up the valuable work :svetius:
[OnePlus 6 Guides, News, & Discussion] Cablespider:
Not me. I was in the AEX thread stating that ROM was a daily on a few phones I owned in the past. I haven't made that claim just yet on the OP6. Oh no. Fresh meat. I'll be ROM jumping for quite a while.

Edit: I did note that Franken was worthy of daily driver status by my standards. That doesn't mean I'll run it full time. I appreciate the work of all ROM teams and intend on testing their offerings, like a good flashaholic should.
[OnePlus 6 Guides, News, & Discussion] racka:
Oh sorry, my bad. Pretty sure somebody uses the same profile pic as you. All last posts I saw with this picture I checked tje profile name and kind of remembered it assuming it was you from the post I've seen.

Well keep on flashing I would say. I will be doing the same. I even freaking dirty flashed Havoc over Franken and used it without hesitation, untill some other cool update came out of course :cool:
[OnePlus 6 Guides, News, & Discussion] meistr91:
You saying that after fastboot flash of full 5.1.9 OS you internal memory was not wiped?:o like download and photos?
[OnePlus 6 Guides, News, & Discussion] Testerofroms:
I don't know why the batch flash-all-partitions.bat is not endless running (I did run it already and it lasting long).

But can you check flash-all-partitions.bat?

Thank you

@echo off
title Mauronofrio All Partitions Flasher :P
flash-all-partitions-fastboot.bat
[B]flash-all-partitions.bat[/B]
flash-all-partitions-recovery-criticals.bat
pause
[OnePlus 6 Guides, News, & Discussion] mauronofrio:
I will check it tomorrow
[OnePlus 6 Guides, News, & Discussion] Cablespider:
Yes, using that specific batch file.
[OnePlus 6 Guides, News, & Discussion] Testerofroms:
This happens because the batches are flashing the dedicated partitions directly.

excute a

fastboot erase userdata

in your case, because you flashed all other partitions already...

or

fastboot flashall -w

will erase userdata (parameter -w), but flashes only the actual slot

boot, system, vendor and if found, recovery

-> _a or _b not both...

That's why he do it one-by-one to get a complete (slot a and slot b) flashed oneplus 6.

Otherwise in case of any issues with booting, the mobile is switching back to the old images regardless if it is 5.19 or lower..

To make sure that you never get a bricked mobile, in google theory...

usage: fastboot [ <option> ] <command>

commands:
update <filename> reflash device from update.zip
flashall flash boot, system, vendor and if found, recovery
flash <partition> [ <filename> ] write a file to a flash partition
erase <partition> erase a flash partition
format[:[<fs type>][:[<size>]] <partition> format a flash partition. Can override the fs type and/or size the bootloader reports.
getvar <variable> display a bootloader variable
boot <kernel> [ <ramdisk> [ <second> ] ] download and boot kernel
flash:raw boot <kernel> [ <ramdisk> [ <second> ] ] create bootimage and flash it
devices list all connected devices
continue continue with autoboot
reboot reboot device normally
reboot-bootloader reboot device into bootloader
help show this help message

options:
-w erase userdata and cache (and format if supported by partition type)
-u do not first erase partition before formatting
-s <specific device> specify device serial number or path to device port
-l with "devices", lists device paths
-p <product> specify product name
-c <cmdline> override kernel commandline
-i <vendor id> specify a custom USB vendor id
-b <base_addr> specify a custom kernel base address. default: 0x10000000
-n <page size> specify the nand page size. default: 2048
-S <size>[K|M|G] automatically sparse files greater than size. 0 to disable
[OnePlus 6 Guides, News, & Discussion] mauronofrio:
I'm uploading new roms with the possibility to wipe all the data before the flashing of partions
[OnePlus 6 Guides, News, & Discussion] maigre:
After bricking my brand new OP6, hours after opening the box, this thread got me up and running again. Thanks, mauronofrio and all!!!
[OnePlus 6 Guides, News, & Discussion] spawn549:
tried the latest uploaded zip..all good here. no complaints. :highfive:

so does this method works better then flashing tru local upgrades in terms of fresh out of the oven? any input will much appreciated cause i cant seem to find a proper guide for that.

ps: my device was not bricked when i tried this.
[OnePlus 6 Guides, News, & Discussion] deezid:
Thanks for this.

Just reinstalled everything and almost everything works - but Netflix can't be installed from Playstore.

Installed as an APK but now can't watch anything in HD...
[OnePlus 6 Guides, News, & Discussion] mauronofrio:
You need to relock your bootloader to see netflix in hd
[OnePlus 6 Guides, News, & Discussion] deezid:
That really sucks. But nothing we can do...

Rather have my root apps and mods than this...
[OnePlus 6 Guides, News, & Discussion] virajmalia:
Hey guys, I am rooted using magisk and have TWRP installed. I wish to go back to stock recovery without requiring a data wipe. Is that possible? How should I do it?

Will flashing boot img through fastboot work? If yes, can somebody just upload the boot img?

If no, what else can I do?

Thanks.
[OnePlus 6 Guides, News, & Discussion] Lastwurdz:
my OP6 only boots into bootloader mode and whatever i choose sends me back into bootloader. somehow twrp and my OS got deleted. will this help me out. also, im not sure where to put what commands. can anyone offer me a quick tutorial. im ready to send my phone back to OP tomorrow. i would love it if i can avoid that. so far nothing has worked
[OnePlus 6 Guides, News, & Discussion] _MartyMan_:
Just do as in the OP
[OnePlus 6 Guides, News, & Discussion] Lastwurdz:
I will try. I'm just not sure what command to use for the zip. As I have never done this before.
[OnePlus 6 Guides, News, & Discussion] yldlj:
You don't use any commands. You click on the .bat file and its does all the commands for you.
[OnePlus 6 Guides, News, & Discussion] Lastwurdz:
Thanks, I just dragged the file I needed into the command box and everything worked out fine. I am no longer bricked
[OnePlus 6 Guides, News, & Discussion] mmad81:
Thanks this got my phone out of a bootloop. I have a question but maybe I'm just reading it wrong. Can we continue to update the stock Rom through twrp for future updates? Just wanted to make sure if it was the same process. By the way I'm on 5.1.9 rooted with unlocked bootloader.
[OnePlus 6 Guides, News, & Discussion] montecarlo5:
Yes you can but, after flashing the update in TWRP, re-flash TWRP and reboot back into TWRP ( if you have magisk installed ) and then re-flash magisk! Now you can reboot your phone. If you don't do it in that order you will lose TWRP and bootloop ( if magisk was installed) and have to start all over again or use fastboot commands.

But the next update might be Pie and that could be a different method so might want to wait til the awesome devs give instructions on how its done.
[OnePlus 6 Guides, News, & Discussion] mmad81:
Thanks just wanted to confirm. I updated to Pie and was having issues so went back to 5.1.9 and it screwed up my phone even after wiping it. Staying on Oreo for a while after that. Lol
[OnePlus 6 Guides, News, & Discussion] montecarlo5:
Yeah, a lot of people don't know that OP has a rom on their website called RollBack package to flash after trying P betas if you want to go back to Oreo, if they used that rollback rom they probably wouldn't have issues.
[OnePlus 6 Guides, News, & Discussion] mmad81:
I didn't realize that.. it's my fault. I did the same thing with my pixel XL a while ago. Should have learned from that mistake.
[OnePlus 6 Guides, News, & Discussion] Pratikpathare:
So I used flash-all-partitions.bat to unbrick and it worked. But now my wifi is not working and the system is slow and reboots. please help.

calls also not working
[OnePlus 6 Guides, News, & Discussion] mauronofrio:
Because you used only the fastboot-flash-partitions.bat. now you can manually update your system with the stock rom you can find on official site. Download it, push it on your phone memory and go for manual flash from phone settings, then the flash you need also of a full wipe. Remember to use full zip and not incremental.zip
[OnePlus 6 Guides, News, & Discussion] saturax555:
You saved my phone today :good:

your work is so useful for us daily flasher, thanks a lot :)
[OnePlus 6 Guides, News, & Discussion] Pratikpathare:
Thanks bro. Flashed the new 5.1.11 and all good to go.
[OnePlus 6 Guides, News, & Discussion] mauronofrio:
I've uploaded latest 5.1.11
[OnePlus 6 Guides, News, & Discussion] the-cybersapien:
Hi [MENTION=4712355]mauronofrio[/MENTION]

Thank you for this. I was trying to get out of a pickle and reset my phone back to stock(latest 5.1.11). But now the phone starts, shows me the welcome screen and it restarts again.

I've tried flashing everything twice, it always does the same thing.

I was on a partially broken stock ROM before and had Magisk and TWRP who basically broke half the functionalities of the phone, I was trying to reset it back to stock.

Edit 1:

Even tried re-locking and then unlocking the bootloader as well. Nothing seems to fix the issue with welcome screen freeze. Can it be due to some sort of partition corruption?

Edit 2:

Okay, I managed to get it running again. It looks like this issue came with 5.1.11 for some reason. downloaded the previous version and installed it. Works perfectly!
[OnePlus 6 Guides, News, & Discussion] mauronofrio:
Sorry for late answer, you should flash all partitions and wipe your data to make the rom works
[OnePlus 6 Guides, News, & Discussion] gulshanstrider:
I faced same issue.

After flashing all partitions, i rebooted the device to welcome screen.

I was automatically rebooting.

I am downloading 5.1.9 now.

Please note that I formatted all the userdata

Thanks
[OnePlus 6 Guides, News, & Discussion] teja:
Yah. Same problem for me alsio. after flashing flash-all-partitions-fastboot.bat i got welcome screen after few seconds screen got freeze and turning into blank splash screen
[OnePlus 6 Guides, News, & Discussion] zSyntex:
That's why I'm going into the classic mod. FLash via TWRP, so fastboot and flash the stock boot.img and lock the bootloader (with wipe all data). :good:
[OnePlus 6 Guides, News, & Discussion] teja:
Sorry. I am not understanding. Can you elaborate step by step? please help :(:eek:
[OnePlus 6 Guides, News, & Discussion] Bidyadhar:
I can confirm 5.1.11 doesnt work, but 5.1.9 works perfectly
[OnePlus 6 Guides, News, & Discussion] teja:
Can you please send me 5.1.9 fast boot rom link
[OnePlus 6 Guides, News, & Discussion] Bidyadhar:
It's there bro in the first post
[OnePlus 6 Guides, News, & Discussion] HannibalLecter:
Hey brothers.. I have accidentally wiped internal storage and now I have nothing in the phone and stuck on Fastboot mode. Please let me know how can I flash Oxygen OS through some method: adb sideload?

I tried to fastboot flash the twrp.img

But whenever I try to adb sideload the twrp zip and reboot the twrp gets stuck on splash screen and does not go forward.

and when i try to flash the Oxygen os full ROM zip through the bootable twrp, twrp shows successful flash but when I hit reboot, it says no OS installed.

Please help guys.
[OnePlus 6 Guides, News, & Discussion] shakad:
Use msmtools dowload
[OnePlus 6 Guides, News, & Discussion] HannibalLecter:
I have a mac. is there any other way?
[OnePlus 6 Guides, News, & Discussion] teja:
Thanks bro... But I'm new to oneplus and confusing about filenames. In first post Google drive or Afh links, there are so many files r there and I'm not sure which one is 5.1.9. Can you please help to send correct link or atleast full file name? Please
[OnePlus 6 Guides, News, & Discussion] detritu5:
can I relock bootlaoder after make the fastboot comands?? I want to back to stock factory settings
[OnePlus 6 Guides, News, & Discussion] adizz4:
Try this in bootloader
[OnePlus 6 Guides, News, & Discussion] mauronofrio:
Yes sure you can, but it's better before you relock the bootloader if you check is all is working
[OnePlus 6 Guides, News, & Discussion] spawn549:
OP please fix 5.1.11 :silly:
[OnePlus 6 Guides, News, & Discussion] mauronofrio:
Why?
[OnePlus 6 Guides, News, & Discussion] spawn549:
Screen will freeze on initial setup and reboot.
[OnePlus 6 Guides, News, & Discussion] mauronofrio:
Have you wiped internal storage?
[OnePlus 6 Guides, News, & Discussion] spawn549:
Yes. after .bat finish it's job.

now using 5.1.9 with no issues. some users did report bout this few post back.