yashsingh1/xdaforums huggingface dataset:
[OnePlus 6 Guides, News, & Discussion] mauronofrio:
If you have a locked bootloader and if you have bricked your phone, you can only follow this guide: https://xdaforums.com/oneplus-6/how-to/tool-msmdownloadtool-v4-0-international-t3798892

Try it with oxygenos, if you get some errors try with hydrogenOS
[OnePlus 6 Guides, News, & Discussion] Escaflew:
Found a solution. Got it unbricked. I will post later today or tomorrow how I did it. Thank gooooooood!!!
[OnePlus 6 Guides, News, & Discussion] dgattupalli:
Nova Launcher

Found nova launcher after flashing latest fastboot images .... according to me the fastboot images should debloated and match with stock .... so just a request to avoid adding any personal preferences in to system images ... Thank you
[OnePlus 6 Guides, News, & Discussion] mauronofrio:
I have not added nova launcher to the fastboot image, how is written in the first post, these are the stocks roms flashable from fastboot
[OnePlus 6 Guides, News, & Discussion] dgattupalli:
sorry i am not sure how but i got nova launcher as system app after flashing the latest zip from google drive ... its supposed to have formatted all data .... so unless its already in the system img it cant be there right?
[OnePlus 6 Guides, News, & Discussion] Zenkai69:
Hi... I just need some help. I've just received my OP6 (A6000) it cames with 5.1.0 Rom version (I think is H2OS), but cannot update it via OTA. Whay would you recommend in order to change to O2OS?? Can I use this method safely? Thanks in advance!!
[OnePlus 6 Guides, News, & Discussion] mauronofrio:
It's better if you.local flash stock rom from the phone directly
[OnePlus 6 Guides, News, & Discussion] Zenkai69:
is there an specific method? Because only fastboot seems to be available. I tried through ADB Sideload but keeps stopping the process on 43-44%... I've downloaded the rom from OP website, but Im not sure if is full flashable rom or not. Any advise is highly apreciated.

Thanks

EDIT: Just use the instructions on OP website, installed TWRP and flash the complete rom 5.1.3. After that used OTA to update to 5.1.8 and all work perfect!
[OnePlus 6 Guides, News, & Discussion] RusherDude:
Sorry if this is not the right forum, but I see its related to some talks on this thread..

Interesting read, read all along. So OnePlus 6 has the damn A/B partition layout and the seamless update **** via Update Engine like a Pixel. This means that even if you have your full setup on any slot rocking it (let's say huge modifications like magisk, xposed, twrp custom kernel and ton of system mods on slot A) and suddently an OTA comes and flashes new stock version on slot B and tries to run it succesfully on next reboot. And suddently you find yourself on stock slot B without TWRP/custom kernel/xposed/system mods, probably Magisk survived if it could deal with the ota script, but the rest of modifications are on the other slot.

Now in this scenario..

a) slot A is untouched or is copied from B after the succesfull boot??

b) if slot A survived untouched, can you just do a "fastboot --set-active=a" command and just keep rocking your old version, or this doesnt work?

c) if it works (it should right..), will the system try do download the OTA again asap you boot the old version on the A slot?

d) there's any way to block the update engine from updating, for example to wait till xposed is adapted for new version.

Anyone on this scenario? I'm considering getting this phone but the A/B thing looks like a headache for anyone who likes to flash stuff..
[OnePlus 6 Guides, News, & Discussion] leonalewis:
roughly how long does it take until it get passed "Invalid sparce file format at header magic" ?
[OnePlus 6 Guides, News, & Discussion] mauronofrio:
Also 5 minutes, depend from you hard disk
[OnePlus 6 Guides, News, & Discussion] jonny30bass:
So is there any way to flash everything now?
[OnePlus 6 Guides, News, & Discussion] mauronofrio:
Yes, he wants to say is not needed anymore, so i removed it from the flash-all.bat
[OnePlus 6 Guides, News, & Discussion] jonny30bass:
I meant is there a way to flash all of the partitions, even the critical ones?
[OnePlus 6 Guides, News, & Discussion] HACK3DANDR0ID:
DELETE
[OnePlus 6 Guides, News, & Discussion] leonalewis:
Cool. The whole process took 22 minutes and then success. Thanks
[OnePlus 6 Guides, News, & Discussion] jonny30bass:
I was able to use the fastboot flashing unlock_critical and flash all of the files even though i was on 5.1.8. I used the OP's 5.1.8 flash-all.bat on both slots and then ran the fastboot flashing unlock_critical command to allow flashing of critical partitions, and then I was able to flash everything using that long list of fastboot flash commands that was provided previously in this thread on both slots.
[OnePlus 6 Guides, News, & Discussion] joemossjr:
But did it actually flash. Mine all say they flash but then error
[OnePlus 6 Guides, News, & Discussion] mauronofrio:
On this weekend i will make some tests to make some complete fastboot roms, with the flash of all partitions
[OnePlus 6 Guides, News, & Discussion] rickysidhu_:
Thank you for this! :highfive:
[OnePlus 6 Guides, News, & Discussion] sansanc:
Ok, so i used this to unbrick my O6 and it worked, but now, how i update to 5.1.8? Using stardard full ROM install in

TWRP?
[OnePlus 6 Guides, News, & Discussion] mbr007:
Download 5.1.8 ROM and put it in root of your internal SD. In fastboot rom, go settings-->system updates and you should see the 5.1.8 rom. Just install, reboot, and done.
[OnePlus 6 Guides, News, & Discussion] sansanc:
Will this maintain my files, twrp and magisk? This new slot a and slot b is so confusing :) Actually the fastroom i downloaded is 5.1.8 already. But maurofrio could write a small howto in first post to help with the updates.
[OnePlus 6 Guides, News, & Discussion] Terrigible:
Just reboot to TWRP and re-flash everything before booting back to system, it is the safest.
[OnePlus 6 Guides, News, & Discussion] trsix:
windows

I unzipped mine in my adb fastboot folder and phones in bootloader

When i try and run flash all a cmd window opens but

error could not load android info txt

no such file or directory
[OnePlus 6 Guides, News, & Discussion] old_fart:
.

the devil is in the details.

.

you un-zip the 'platform-tools-latest-windows.zip' to c:\adb

you go to c:\adb

you do a dir and see you stuff

you rt-click on 'cmd.exe' and run 'cmd.exe' in admin mode

.

ah, sometimes windoze will extract / make your stuff in r/o mode..

in windoze, if you rt-clk on your work dir and go to properties, is it r/o or r/w
[OnePlus 6 Guides, News, & Discussion] RusherDude:
That's not what I asked... I asked stuff about the A/B layout and those scenario, if the steps are valid. I know you can reflash stuff again and again but the point is exactly to evade doing that.
[OnePlus 6 Guides, News, & Discussion] Terrigible:
a) It is copied

b) probably but you might face some compatibility issues

c) probably

d) just don't tap download

---------- Post added at 11:49 PM ---------- Previous post was at 11:46 PM ----------

But what's the point if you just go back to pre-update? The partition being copied from acts as a backup just in case.
[OnePlus 6 Guides, News, & Discussion] RusherDude:
Sorry, a) and b) answers are confusing. Then on a succesfull boot on B after an OTA, all slot A partitions would get copied over and ruined or they wont?

That's if the pre-update one is not copied over..

Thanks!
[OnePlus 6 Guides, News, & Discussion] Terrigible:
Oh wait

a) A is probably untouched since it acts as a backup

b) some partitions don't have A/B so if you (make changes to the new partition and )manually swap active partition, there might be some compatibility issues like back in the days where if you forgot to wipe dalvik.

---------- Post added at 12:12 AM ---------- Previous post was at 12:07 AM ----------

If I'm wrong someone please correct me
[OnePlus 6 Guides, News, & Discussion] RusherDude:
I see, thanks!!!
[OnePlus 6 Guides, News, & Discussion] mauronofrio:
Finally i have updated the flash-all.bat now i've included more .bat for different needs. [MENTION=3659125]joemossjr[/MENTION]
[OnePlus 6 Guides, News, & Discussion] doctor78SI:
I just used your latest script as suggested flash-all-partitions-fastboot.bat and I am stuck in recovery loop.

EDIT: Solved it by doing "system reset" in recovery.
[OnePlus 6 Guides, News, & Discussion] mauronofrio:
What have you done in twrp? Reboot system?
[OnePlus 6 Guides, News, & Discussion] doctor78SI:
I did not have TWRP. I am using stock recovery. I was on OOS 5.1.8, rooted with Magisk. Wanted to go back to stock by doing factory reset which ended in recovery loop. Then I used your script and was still in loop. The mentioned solution helped.
[OnePlus 6 Guides, News, & Discussion] SpectraFun:
I use flash-all-partitions-fastboot.bat but Phone not reboot from self after finish. Have boot manuel but only see bootanimation.

Edit: "system reset" in recovery dont solved the problem. I have use befor Android P DP3 but dont boot. See only bootanimation.

Edit: Working now. I use in recovery erase all and its boot.
[OnePlus 6 Guides, News, & Discussion] mauronofrio:
Yes now the script will not automatically reboot the phone and it will not erase all the data automatically, i will add this on first post
[OnePlus 6 Guides, News, & Discussion] doctor78SI:
[MENTION=4712355]mauronofrio[/MENTION] Since I still have issues with my camera app and portrait mode is there any chance that using any of the other scripts could solve this issue? Maybe flashing persistent or critical partitions?
[OnePlus 6 Guides, News, & Discussion] garz:
BRO!!!!!!!!!!!!!! This saved me! I really thought I was going to have to wipe everything! This reset me perfectly. I am sending you a beer!
[OnePlus 6 Guides, News, & Discussion] dr_rick13:
hey guys I'm new to OP6, coming from Pixel 2 XL, I have a quick question. With 5.1.8, there was only one flash-all.bat file. Now theres a few and I'm not sure which one to choose.

I want to wipe everything (twrp and magisk included) and just install the 5.1.9 on a clean update.

Can anybody help me figuring out which one I need to flash. Thanks guys
[OnePlus 6 Guides, News, & Discussion] thugslug:
None. For that you're best to use local updater.

Download the full stock signed 5.1.9 ROM to root of storage.

Go into settings, system updates. Let it finish checking, then.....

Go to settings cog on top right and tap it.

Tap local update and it will find the ROM you downloaded.

Allow it to do it's thing. It knows exactly what to do itself so just let it go.

Enjoy.

Edit...

That gets you stock recovery and no Magisk like you said you wanted. Go into recovery and wipe everything from stock recovery if you want to get a complete new clean start on the new updated 5.1.9. ROM.
[OnePlus 6 Guides, News, & Discussion] ManikandanGuru:
Is there any way to create a Fastboot flasher for Android P DP3
[OnePlus 6 Guides, News, & Discussion] Bradl79:
download Payload_Dumber_x64

and just extract the image files and replace the image files
[OnePlus 6 Guides, News, & Discussion] Jack_Sparrow_:
Thanks a lot (grazie mille) you saved my life!!!
[OnePlus 6 Guides, News, & Discussion] ManikandanGuru:
Thank you so much for the help. It worked. :good::good::good:
[OnePlus 6 Guides, News, & Discussion] mauronofrio:
You can try but i don't know if it will works

You can flash through a local update the full zip of 5.1.9, these fastboot roms are only for device bricked.

You can use my .bat files also for android P beta. I have not made the fastboot ROMs for Android P beta because i thought is not necessary, but if you need i can make full fastboot ROMs also for Android P Beta
[OnePlus 6 Guides, News, & Discussion] sansanc:
Guys, i'm still confused. So i installed the 5.1.8 ROM from this topic. Now how i do update to 5.1.9 without losing TWRP, magisk and my files too?
[OnePlus 6 Guides, News, & Discussion] ManikandanGuru:
Yeah, it is unnecessary I made a mistake because I flashed the DP3 from TWRP and it seems the TWRP doesn't support encrypted Android P yet.

I thought I've to fastboot a ROM to make TWRP work again. That's why I asked for the fastboot DP3 here. But I've done with the payload script from [MENTION=997979]Bradl79[/MENTION] and it worked great.

Even after fastboot DP3 the TWRP didn't work. LOL

Anyway thanks for the update. Your work is awesome and helpful. :good::good::good:
[OnePlus 6 Guides, News, & Discussion] mauronofrio:
You need to flash it from twrp i think
[OnePlus 6 Guides, News, & Discussion] pkdubai20:
Hi guys I am very confused with this new method

Of adb / fastboot commands

I just upgraded 5t to 6 , I was using adb sideload to clean stock install but here I can't understand how to install clean oos with adb and fastboot so please give me step by step method how to install?
[OnePlus 6 Guides, News, & Discussion] sansanc:
For the record, it's like a pretty normal dirty flash:

- Install new ROM from TWRP.

- Install TWRP from zip file.

- Install magisk.

- Rebot.
[OnePlus 6 Guides, News, & Discussion] hafiz.hasan:
i like to know hw to clean flash h2os rom from official twrp 3.2.2..

i tried to wipe boot data and system except internalstorage frm twrp and reboot to recovery it got stuck on twrp titel screen...
[OnePlus 6 Guides, News, & Discussion] mauronofrio:
Now i think you got some problems, i didn't make h2os fastboot roms, but if you need i can make it
[OnePlus 6 Guides, News, & Discussion] sttw1fa:
Looking for a little help....

Received my 1+6 yesterday. Been reading threads here for several days about 1+ 6 unlocking/magisk/twrp processes (while waiting for my shipment). Not new to adb/fastboot/twrp/flashing/etc. 4+ years on HTC devices, many ROMs, updates, etc. Have not bricked a device (and hopefully not the 1+ 6).

So, went to the *OnePlus 6: Unlock Bootloader | Flash TWRP | Root | Nandroid & EFS Backup !!* thread. OTA update to 5.1.9.

After getting to post 6 (where the 1+ 6 should be still on latest OxygenOS, but rooted with Magisk 16.0 and TWRP 3.2.2.0 installed).....OxygenOS won't boot. Spinning Red/White dot animation. I could boot into fastboot and see the 1+ 6 via the fastboot devices command. Good. I could boot TWRP 3.2.2.0. Good. Went looking on how to 'get back to stock'. But...I can't load a ROM img or zip file onto a SD card....adb push isn't working for me. So ended up in this thread.

I just ran the flash-all-partitions-fastboot.bat file. The batch file finished, got to the 'press any key to continue'.

I'm back at the spinning red/white dot animation for over 20 minutes. How long to wait before seeing if I can get to fastboot and/or TWRP (is twrp still there after running this batch file)?

And where to go from here? Is it flash-all-partitions.bat?
[OnePlus 6 Guides, News, & Discussion] apostolosapok:
I faced exactly the same problem and after many hours what worked for me was to boot twrp recovery because i couldn't install it, erase all data / decrypt internal storage and then flash the flash-all-partitions.bat
[OnePlus 6 Guides, News, & Discussion] sttw1fa:
Thank you! This worked. OxygenOS 5.1.9 downloading.....and I'll start at Step 1 again. :silly:
[OnePlus 6 Guides, News, & Discussion] hafiz.hasan:
Would appreciate if h2os fastboot ROMs are made available...there r many of us who use h2os...
[OnePlus 6 Guides, News, & Discussion] mauronofrio:
I upload the latest h2os
[OnePlus 6 Guides, News, & Discussion] fabio91oliveira:
I'm thinking about buying the A6000 version. I'm from Brazil!

Is this version ok in my country? And, I'm concerned about the OS variant? Is Hydrogen OS or Oxygen OS in A6000 version? And, if it's the Hydrogen OS, can I put the Oxygen OS flashing it without any problem? I mean, if a put the Oxygen OS, if a reset factor, will it be Oxygen OS forever, and if I put the oxygen os flashing it, when the Oxygen Os has some new updates, will it be available on the Last updates menu or I will have to flash the new version again?

Thanks!
[OnePlus 6 Guides, News, & Discussion] TheFaithfulOne:
I've updated stock to 5.1.9. Then re-rooted (flashed with fastboot boot TWRP.img, flashed TWRP.zip, flashed latest Magisk). After that I get "There's an internal problem with your device. Contact manufacture for details" message. I read somewhere a post, leading me to this "flash-all.bat", that I can get rid of this message. Had anyone this message? Which exactly bat for soup I choose to get rid of it?

Wysłane z mojego ONEPLUS A6003 przy użyciu Tapatalka
[OnePlus 6 Guides, News, & Discussion] lollyjay:
Did you check md5?
[OnePlus 6 Guides, News, & Discussion] ruhul5:
[MENTION=4712355]mauronofrio[/MENTION] bro is the fastboot file size of version 5.1.5 3.08gb??md5 also mismatch
[OnePlus 6 Guides, News, & Discussion] mauronofrio:
My error, in upload final zip
[OnePlus 6 Guides, News, & Discussion] Neil_Armstrong_:
Thanks bro' it helped me
[OnePlus 6 Guides, News, & Discussion] mauronofrio:
In the 5.1.5 forgot the payload.bin, so it was 3.08GB, now i fix it;

In the first version i was not sure the ANDROID_PRODUCT_OUT was setting good, so i decide to update the flash-all, but i forgot to add the commands to flash the rom so in this last update i fix all.

Now everything should work without problems.

5.1.5: https://www.androidfilehost.com/?fid=962339331458995206

5.1.3: https://www.androidfilehost.com/?fid=746163614322267684

I'm trying to get a OnePlus 6 with the support of the community, my tool is available for a lot of devices and have a lot of functions, but project treble is giving me problems and the only way to improve tool it's testing by me the functions on the OnePlus 6. If you want to participate I created a PayPal Moneybox where you can donate what you want and helping me to help you.

PayPal MoneyBox: paypal.me/pools/c/84F5qEp0ej

If in your conuntry is not available the pools, just make a normal donation through PayPal: https://www.paypal.me/MauronofrioTool

Thanks for your support.
[OnePlus 6 Guides, News, & Discussion] emuwar:
thanks for new version
[OnePlus 6 Guides, News, & Discussion] Manivannan9444:
Is this method working no offence i mean if i follow instructions in starting of the post and after flashing will. It relock bootloader
[OnePlus 6 Guides, News, & Discussion] mauronofrio:
If you want you can help me to get a OnePlus 6 for a better support:

PayPal MoneyBox: paypal.me/pools/c/84F5qEp0ej

If in your conuntry is not available the pools, just make a normal donation through PayPal: https://www.paypal.me/MauronofrioTool

Thanks for your support.

After the flash you will still have the bootloader unlocked.

If you want you can lock the bootloader after the flash of the rom, if you need help in this you can use my tool: https://xdaforums.com/oneplus-6/development/tool-tool-one-driversunlocktwrpfactory-t3791316
[OnePlus 6 Guides, News, & Discussion] Manivannan9444:
So the flash all. Bat will be inside the zip i have downloaded from the post 5.15 rom

---------- Post added at 01:55 PM ---------- Previous post was at 01:53 PM ----------

Sorry for asking too many question how can i use your tool any instructions for flashing fastboot rom
[OnePlus 6 Guides, News, & Discussion] mauronofrio:
To flash the stock fastboot rom you can unpacj the zip in a folder, reboot the phone in fastboot mode, connect the phone to the pc and double click on flash.all.bat . Wait some minutes and the phone will automatically reboot. After that you the "Lock" option on the tool to lick your bootloader
[OnePlus 6 Guides, News, & Discussion] Manivannan9444:
Thank you for fast response

---------- Post added at 02:01 PM ---------- Previous post was at 02:00 PM ----------

Thank you i will try and let you know
[OnePlus 6 Guides, News, & Discussion] 19kylegreer96:
I am trying to fix my oneplus 6 and I tried this. When I run the BAT file my phone asks me if I want to unlock bootloader... however, my bootloader is already unlocked? Should I continue anyway and re-unlock it?
[OnePlus 6 Guides, News, & Discussion] 19kylegreer96:
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
[OnePlus 6 Guides, News, & Discussion] mauronofrio:
Excuse me if I did not answer before, can you tell me which version of windows are you using?
[OnePlus 6 Guides, News, & Discussion] emuwar:
works in win 64 - win 10?
[OnePlus 6 Guides, News, & Discussion] 19kylegreer96:
I am using windows 7 professional 64bit.

When trying to use the BAT file, I got the error that I mentioned previously in the CMD window, I thougt this might be a RAM issue due to the CMD window stating there was a max file limit so I assumed the computer was unable to load the files into RAM, this tool:

https://www.techpowerup.com/forums/threads/large-address-aware.112556/

Fixed it for me, I had to use the application and modify all EXE files in your download.

Had another strange error though, I rebooted my device into recovery by using the "advanced reboot" feature. Instead of taking me to recovery (I just wanted to see if TWRP or stock recovery remained on my device I am not actually sure,) it just rebooted the phone and erased all data so the phone started as if it had not been used before (basic setup like wifi etc)

EDIT: I've just noticed another post that detailed the same issue:

https://xdaforums.com/oneplus-6/how...oader-flash-twrp-t3792643/page20#post76659243
[OnePlus 6 Guides, News, & Discussion] mauronofrio:
Ah ok now i understand it
[OnePlus 6 Guides, News, & Discussion] 19kylegreer96:
Great :svetius:

Do you know why when I try to boot into recovery, the phone boots into the setup screen (the one you would see if you where turning phone on for the first time.) and also wipes all user data?

Could this be because my recovery partition is corrupt/missing? Would flashing the stock oneplus6 recovery through ADB (when it gets released) or perhaps TWRP when it's officially released, would it fix my issue?
[OnePlus 6 Guides, News, & Discussion] montecarlo5:
That message is from Magisk newer than 16.4 if I'm not mistaken, you need to use Magisk 16.4 then update through Magisk Manager. Just uninstall Magisk from Manager - find Magisk 16.4 and flash from TWRP - reboot phone then update Magisk.
[OnePlus 6 Guides, News, & Discussion] °Washy:
I'm trying to flash last oos throught fb but, after a lot of strings when it's installing system on a partition, it still stuck at ""invalide sparse file at header magic" is not an error [...]". Now my question is, how much time does it takes for this operation? I'm a bit afraid.

After message above I got only comand errors and a message displays "premere un tasto per continuare". Can I reboot my phone at this point or will I brick it?