yashsingh1/xdaforums huggingface dataset:
[Google Pixel 3 XL Guides, News, & Discussion] CZ Eddie:
GUIDE PART-E: PREPPING YOUR PHONE TO BE AMAZING ONCE AGAIN

Okay, this part is OPTIONAL.

You can skip it and go to PART-F.

But I really recommend it, I do.

Better safe than sorry.

27) You should have already connected your phone as in PART-D.

[no picture provided for step 27]

28) Navigate to the folder where you put all those files at, the factory image & fastboot files.

[no picture provided for step 28]

29) Type "

CMD

" in the folder path and press enter. This will open up a command prompt window.

30) Type the following commands followed by pressing enter after each command.

fastboot erase system_a
fastboot erase system_b
fastboot erase boot_a
fastboot erase boot_b
fastboot reboot-bootloader

EDIT: The erase system command doesn't work in Android version 10.
[Google Pixel 3 XL Guides, News, & Discussion] CZ Eddie:
GUIDE PART-F: GOLDEN MOMENT, RESTORE TO STOCK!!!!!

31) You should have already connected your phone as in PART-D.

[No picture provided for step 31]

32) Double-click flash-all.bat.

33) If you get the pop-up protection thing, then just click "

More Info

".

34) Now click "

Run anyway

".

35) Wait 5-15 minutes for the script to tell you it's done.

Once the phone reboots itself and starts loading up, you can disconnect from your computer.

36) Drink some green tea.

Be nice to someone.

Profit.
[Google Pixel 3 XL Guides, News, & Discussion] CZ Eddie:
GUIDE PART-G: INSTALL TWRP (Coming when I can write it up)

Download both the IMG and ZIP files from here:

https://dl.twrp.me/crosshatch/

Fastboot the IMG as follows:

C:\android>[B]fastboot boot twrp-[I]FILENAME[/I].img[/B]
Sending 'boot.img' (65536 KB) OKAY [ 0.405s]
Booting OKAY [ 4.606s]
Finished. Total time: 5.237s

C:\android>

Your phone will boot into TWRP after the above step.

Once it's in TWRP, use Windows Explorer to copy the ZIP file onto the phone.

Then use TWRP to install the TWRP ZIP.
[Google Pixel 3 XL Guides, News, & Discussion] CZ Eddie:
GUIDE PART-H: INSTALL MAGISK ROOT(Coming when I can write it up)
[Google Pixel 3 XL Guides, News, & Discussion] CZ Eddie:
GUIDE PART-I: INSTALL CUSTOM ROM (Coming when I can write it up and TWRP's ADB or MTP is working on the temp TWRP install)
[Google Pixel 3 XL Guides, News, & Discussion] robertoancini51:
hey, and if the phone is not bootloader unlocked and cannot be unlocked using fastboot flashing unlock? still works or not?
[Google Pixel 3 XL Guides, News, & Discussion] v12xke:
This guide assumes you're already bootloader-unlocked.

No. As explained in the two other threads you started, your issue is that both your bootloader is locked -and- you have no working recovery mode. There is no way to recover from that. Full stop.
[Google Pixel 3 XL Guides, News, & Discussion] SCYTHERBLAKE:
i came till here but my boot loader says "erasing 'system_a'...

FAILED (remote: Fastboot command (erase: ) is not allowed when locked)

finished. total time: 0.374s"

pixel 3
[Google Pixel 3 XL Guides, News, & Discussion] CZ Eddie:
Is your bootloader locked?

This guide is not for locked bootloaders.
[Google Pixel 3 XL Guides, News, & Discussion] SCYTHERBLAKE:
I got it google store sent me replacement device for that
[Google Pixel 3 XL Guides, News, & Discussion] v12xke:
You have to unlock your bootloader first, which is outside the scope of this guide. You need to follow another guide/tutorial here on how to unlock your bootloader. Unlocking it will erase all of your data.
[Google Pixel 3 XL Guides, News, & Discussion] SCYTHERBLAKE:
I know all this but accidentally i locked my self outside by locking bootloader and there's no os inside.

And i solved this problem by asking google store support
[Google Pixel 3 XL Guides, News, & Discussion] Daisymae:
Soft bricked at Google screen

Tried to install a custom ROM and it got hung on the start screen. After a lot of trouble I decided to start from scratch. I can get to fastboot no problem. Then erased system_a, system_b, boot_a and boot_b. Ran flash-all.sh. System installed without a hitch but on reboot it just hangs on the Google startup screen. Did it twice with no luck. What to do? My apologies in advance but I couldn't find any new ideas about what to do.
[Google Pixel 3 XL Guides, News, & Discussion] v12xke:
So no errors during the installation? Did you allow the script to wipe your data as well, or did you edit the script to remove the -w switch? Have you tried doing an FDR from recovery? What is your bootloader version (assume you flashed January).
[Google Pixel 3 XL Guides, News, & Discussion] Ozark_8125:
Couple of questions...

That picture shows a 'locked' bootloader. Is that the scenario for this guide?

Should that be 'Volume Down'?
[Google Pixel 3 XL Guides, News, & Discussion] CZ Eddie:
Nope, this thread only works for unlocked.

I've edited the picture description to clarify that.

Yep, thanks for the heads up!

Power+Vol Up should only be required for semi-hard bricks.

And it takes a LOT LONGER before it activates.

Like 30-45 seconds.

Power+Vol Down is what most folks should be doing.

I've edited that step also. :good:
[Google Pixel 3 XL Guides, News, & Discussion] dadenet:
Dear friend ,

my devices is dead , I have bootloader unlocked , I tried your guide but no positive result I have this message to the end of the flash :
[Google Pixel 3 XL Guides, News, & Discussion] CZ Eddie:
Did you make sure you're on the LATEST version of the fastboot tools?
[Google Pixel 3 XL Guides, News, & Discussion] dadenet:
My dear friend ,

you gave me a great service , the device is live now ! your're a fantastic man !

medal of honor !

p.s. for the future will you post a guide step by step , without the data erase , during the flash procedure ?
[Google Pixel 3 XL Guides, News, & Discussion] Spider_Pig27:
OMG GOD BLESS YOU!!!! I spent all day figuring this out & YOU just saved me from going back to an iphone seriously GOD BLESS YOU
[Google Pixel 3 XL Guides, News, & Discussion] Jonesdanby:
Hey dude, thanks for the instructions. That help me a lot. Greetings from Germany.
[Google Pixel 3 XL Guides, News, & Discussion] Jonesdanby:
Hello CZ-Eddy, I had to realize that there is no recovery mode after recovery. When trying to invoke recovery mode there is "No command" how can I fix this? Thx
[Google Pixel 3 XL Guides, News, & Discussion] abhinavkonagala:
how do i double click flash-all.bat on mac? Is there a mac version? Please help!!
[Google Pixel 3 XL Guides, News, & Discussion] Badger50:
I believe on a Mac you have to do it manually with :/fastboot flash-all

You also need to use the flash-all.sh file as well.
[Google Pixel 3 XL Guides, News, & Discussion] abhinavkonagala:
This is what it shows:

Abhinavs-MacBook-Pro:crosshatch-pq2a.190305.002 ak$ ./fastboot flash-all
fastboot: usage: unknown command flash-all
Abhinavs-MacBook-Pro:crosshatch-pq2a.190305.002 ak$ ./fastboot flash-all.sh
fastboot: usage: unknown command flash-all.sh
Abhinavs-MacBook-Pro:crosshatch-pq2a.190305.002 ak$
[Google Pixel 3 XL Guides, News, & Discussion] Badger50:
The chimod thing is the key. However, I can't remember if it's:

:/fastboot flash-all

Or

/:fastboot flash-all

:confused:
[Google Pixel 3 XL Guides, News, & Discussion] abhinavkonagala:
It doesn't work either:

bhinavs-MacBook-Pro:crosshatch-pq2a.190305.002 ak$ :/fastboot flash-all
-bash: :/fastboot: No such file or directory
Abhinavs-MacBook-Pro:crosshatch-pq2a.190305.002 ak$ /:fastboot flash-all.sh
-bash: /:fastboot: No such file or directory
Abhinavs-MacBook-Pro:crosshatch-pq2a.190305.002 ak$
[Google Pixel 3 XL Guides, News, & Discussion] Badger50:
Sorry man. But I'm sure you'll get help from a Mac user or 2 soon enough.
[Google Pixel 3 XL Guides, News, & Discussion] jd1639:
Try ./flash-all.sh

It's a batch file so fastboot doesn't recognize it as a command.
[Google Pixel 3 XL Guides, News, & Discussion] abhinavkonagala:
I tried that. Nothing happens...
[Google Pixel 3 XL Guides, News, & Discussion] jd1639:
does ./fastboot devices show anything?
[Google Pixel 3 XL Guides, News, & Discussion] abhinavkonagala:
Yes, I see my serial number.
[Google Pixel 3 XL Guides, News, & Discussion] jd1639:
Good. What happens when you do

./flash-all.sh
[Google Pixel 3 XL Guides, News, & Discussion] abhinavkonagala:
I tried running the command again. I'm going to wait a bit but this is what it shows right now...

View attachment 4720117
[Google Pixel 3 XL Guides, News, & Discussion] jd1639:
Let it keep going until it works or times out.
[Google Pixel 3 XL Guides, News, & Discussion] abhinavkonagala:
View attachment 4720119

Okay. I Started the command at 19:25 EST. I'll wait for it to do something. I'll let you know here if anything happens...

Edit: I copied the platform-tools to the factory image folder like the guide said.

View attachment 4720119
[Google Pixel 3 XL Guides, News, & Discussion] jd1639:
I'm not that familiar with a mac, but do you have the extracted factory image in the same folder as fastboot? I'm not sure if that's a requirement with a mac, but in windows they either need to be in the same folder or a path created to fastboot.

Edit,

If it's still spinning it's wheels try

sudo -s ./flash-all.sh

You could also try just

flash-all.sh
[Google Pixel 3 XL Guides, News, & Discussion] abhinavkonagala:
They are all in the same folder. In this guide, it says to copy the extracted sdk platform tools to the extracted factory image folder. That's what I did... Should I have tired it a different way and not combine the files?

The command is still running.
[Google Pixel 3 XL Guides, News, & Discussion] jd1639:
See my edit above
[Google Pixel 3 XL Guides, News, & Discussion] abhinavkonagala:
Yes, I tried the sudo command. It asked for my password. I entered it and has the same screen as before. The cursor is just flashing.

View attachment 4720122

Edit: The second command doesn't work.

Abhinavs-MacBook-Pro:crosshatch-pq2a.190305.002 ak$ flash-all.sh
-bash: flash-all.sh: command not found
Abhinavs-MacBook-Pro:crosshatch-pq2a.190305.002 ak$
[Google Pixel 3 XL Guides, News, & Discussion] jd1639:
Try a different USB cable A/B to c if u have one
[Google Pixel 3 XL Guides, News, & Discussion] abhinavkonagala:
I have a 2017 macbook pro and i'm using the pixel usb-c cable.
[Google Pixel 3 XL Guides, News, & Discussion] jd1639:
Try a different one. USB cables have been an issue. Even the one that came with the pixel.
[Google Pixel 3 XL Guides, News, & Discussion] abhinavkonagala:
Trying a different cable now. I ran the command ./flash-all.sh and still nothing. The cursor just blinks

---------- Post added at 01:11 AM ---------- Previous post was at 01:09 AM ----------

are we approaching this the right way? Why do we have to run the flash-all.sh command? Is there a different way?
[Google Pixel 3 XL Guides, News, & Discussion] jd1639:
Try flashing just the radio

./fastboot flash radio_a radio.img. The radio image is that long ugly name, either type it all or rename it. If you rename it you'll have to name it back later.

---------- Post added at 07:14 PM ---------- Previous post was at 07:13 PM ----------

Yeah, but there's about 20 different partitions you'd need to flash, and 2 slots.
[Google Pixel 3 XL Guides, News, & Discussion] abhinavkonagala:
I tried dragging the radio img and renaming it. Both of them did'nt work.

Renamed it:

Abhinavs-MacBook-Pro:crosshatch-pq2a.190305.002 ak$ ./fastboot flash radio radio.img
-bash: ./fastboot: No such file or directory
Abhinavs-MacBook-Pro:crosshatch-pq2a.190305.002 ak$ clear

Dragged it:

Abhinavs-MacBook-Pro:crosshatch-pq2a.190305.002 ak$ ./fastboot flash radio /Users/ak/Desktop/Root/SDK-Platform-Tools/platform-tools/crosshatch-pq2a.190305.002/radio-crosshatch-g845-00009-181130-b-5157073.img
-bash: ./fastboot: No such file or directory
Abhinavs-MacBook-Pro:crosshatch-pq2a.190305.002 ak$

Even typed it out. Didnt work.

---------- Post added at 01:30 AM ---------- Previous post was at 01:17 AM ----------

What do you think of this thread? There is some information there. Do you think it'd work?

https://xdaforums.com/pixel-3/help/help-unbrick-t3885433

---------- Post added at 01:32 AM ---------- Previous post was at 01:30 AM ----------

What do you think of this thread? There is some information there. Do you think it'd work?

https://xdaforums.com/pixel-3/help/help-unbrick-t3885433
[Google Pixel 3 XL Guides, News, & Discussion] jd1639:
Sorry, I edited my response and you didn't see it. Try

fastboot flash radio_a radio.img
[Google Pixel 3 XL Guides, News, & Discussion] abhinavkonagala:
Unfortunately, it didn't work. I'm going to try this on my pc (it's old and slow. This is the only option I have for now until someone figures it out.)

Thank you so much for sticking with me for the last 2 hours. I really appreciate it!
[Google Pixel 3 XL Guides, News, & Discussion] jd1639:
I hope the PC works. Or someone who is more familiar with a mac comes along. Good luck!
[Google Pixel 3 XL Guides, News, & Discussion] abhinavkonagala:
I took a break and came back and tried it on my pc. I was able to make it work. I am so thankful for my old pc. It saved the day!!!

I'll have to be careful when installing ROMs... haha
[Google Pixel 3 XL Guides, News, & Discussion] jd1639:
I'm glad you got it working. I'm curious to why it doesn't on the Mac though. fastboot devices worked but fastboot flash anything didn't based on trying to flash the radio.
[Google Pixel 3 XL Guides, News, & Discussion] abhinavkonagala:
I don't know either. Well, from now on, I won't be using my Mac to flash ROMs. I'll be using my PC.

A quick question, once I flashed the factory image, it booted up. Is that returning the phone to stock? Would I be able to relock the bootloader then?
[Google Pixel 3 XL Guides, News, & Discussion] jd1639:
It should be stock. But I never feel comfortable relocking it. What I would do is run:

fastboot --set-active=a

Then run the flash all, then boot back into the bootloader and,

fastboot --set-active=b

Then run the flash all again

That way I know the stock firmware is on both slots. You probably don't have to do that but out of abundance of caution that's what I'd do.
[Google Pixel 3 XL Guides, News, & Discussion] Badger50:
OH DEAR GOD! DON'T LOCK THE BOOTLOADER!

Unless your fully stock, with stock recovery, with no root or any mods or themes at all. Even then, I still wouldn't do it. We've got a brick pile of P2's, P2XL's, and some P3's. Don't be a statistic my friend :(
[Google Pixel 3 XL Guides, News, & Discussion] Daisymae:
This may have been mentioned before but you have to edit the flash-all. Sh. You have to put. / in front of each command and I had to remove the comments out of the file. It worked then.
[Google Pixel 3 XL Guides, News, & Discussion] naced:
Yes that !

I open the file flash-all.sh and see that no one of the command begin by " ./ "

But that didn't work for me if I lunch the ./flass-all.sh so I keep line by line in my terminal and that's work for me :

./fastboot flash bootloader bootloader-blueline-b1c1-0.1-5191736.img

./fastboot reboot-bootloader

./fastboot flash radio radio-blueline-g845-00009-181130-b-5157073.img

./fastboot reboot-bootloader

./fastboot -w update image-blueline-pq2a.190305.002.zip
[Google Pixel 3 XL Guides, News, & Discussion] XZeeWhy:
Sending sparse 'vendor_a' 2/2 (193888 KB) FAILED (Error reading sparse file)

Stuck here after flash-all, can get into unlocked bootloader & I can boot a TWRP image but everything I've attempted failed, any direction would be amazing as I've spent several hours Today surfing the forums after soft bricking a Android Q after a TWRP failed boot....
[Google Pixel 3 XL Guides, News, & Discussion] Slim2none4u:
Copy your firmware into the Android studio platform tools folder and try flash-all again.
[Google Pixel 3 XL Guides, News, & Discussion] XZeeWhy:
I'll download the Android Studio, and try it that route then report back.
[Google Pixel 3 XL Guides, News, & Discussion] Slim2none4u:
Did you install the Q beta?

Try going into settings, system, reset options and do a factory reset.
[Google Pixel 3 XL Guides, News, & Discussion] NathanTan:
Do you mean the Q beta of Android studio?

So far I've been using the platform tools, latest version.

Every time I flash any version, I get stuck in the booting logo.

What I can't understand is that messages for secure boot and NOS production.

Sorry I guess you mean Q beta of Android 9?

This is the images I have tried to flash, all taken by the website developers.google.com/android/images :

- blueline-pq1a.181105.017.a1-factory-b00ec7b5

- blueline-pq1a.190105.004-factory-49adfd52

- blueline-pq2a.190305.002-factory-b8869812

- blueline-ota-pq1a.190105.004-6aad2760

- blueline-ota-pq2a.190305.002-814c6733
[Google Pixel 3 XL Guides, News, & Discussion] dd805bb:
Will it let boot into I'm recovery. Try a factory data reset. I was having some weird issues like this. All seemed fine. Also make sure what adb and fastboot are on latest versions. Ubuntu can use apt-get to get latest actual working fastboot and adb. If not follow instructions for your system. That can be a culprit too. Also try adb sideloading the OTA instead of fastboot. It will flash the slot not active and really wipe everything on that slot. Fastboot is a quick way of flashing that sometimes messes up. Adb ota's. Try booting into factory recovery and start there because it looks like you have it flashed.
[Google Pixel 3 XL Guides, News, & Discussion] NathanTan:
So here a little bit background of what I am doing.

I am running on Windows 7. I have updated the USB driver (found the info in another thread), which as far as I can see are dated 15.09.2014 . I am using platform-tools_r28.0.2-windows.

My phone is now getting stuck in the loading logo.

I have tried to flash a factory image, using fastboot. I have flashed it on both partition A/B. Same result. Only strange message I get when flashing is "File system raw data not supported" at the end of the long code I posted on the first reply.

From here I can boot again in fastboot, go to recovery mode. Phone will give the "no command" message, from which I can then access the recovery mode. I did a Wipe all/factory reset and reboot, still stuck in loading logo.

I then tried to sideload an OTA image with ADB. It flashes and restart, but same result.

I am now downloading the Android Q beta and will then try with it.

I have no other clue on what to try next. Hope this explanation is clear enough on what I have tried so far.

Thanks for the answers so far, really appreciated since I am running out of hope.
[Google Pixel 3 XL Guides, News, & Discussion] jd1639:
Something that's helped others in a similar situation is to press and hold the power button. The phone will try to boot a number of times but continue to hold the power button. Eventually the phone will vibrate. Release the power button and then try flashing the factory image again.
[Google Pixel 3 XL Guides, News, & Discussion] NathanTan:
I've tried flashing the Android Q on it. All ok, restarted, stuck again on the loading logo.

Funny enough now is that when I go back to fastboot, it says device is locked.... Of o try to restart to recovery from there, it says no valid operating system.

Now I cannot unlock anymore, it says flashing unlock not allowed.

From here I tried holding the power button for about 3 minutes but keep stuck in the no valid operating system now.
[Google Pixel 3 XL Guides, News, & Discussion] dd805bb:
Do you get a avbnotverifybootimages or something like when you try boot TWRP or anything? Because that is what is sounds like. also have you taken the beta ota before? I was getting all kinds problems after switching back. There is a thread for a deuces script that will flash both partitions. But and a huge but, you have to modify the script to flash the pixel 3 images. It is pretty simple but tedious. I did it and have one saved. I can load, hung on. Also it is not just a run format, it copy the whole thing and paste in fastboot mode and it go nuclear. After you can at least boot TWRP, then you have adb both slots the ota. Going to pie from q is a beach and haven't found any other that will work right. But q gets the pixel 3 xl to take on a different partitions scheme that remains on mine to this day saying partitions not found but they are there. There recovery stores itself in the system partition, along with metedata that can only be wiped via factory recovery. If you boot TWRP and flash the other slot and proceed to adb ota both spots, from a to b and b to a, that helped me too. Like I said if you have taken the q beta, it destroyed the system to go back. I am actually downloading the q beta right now because I am having partitions problems. And it screwed up on me this morning after taking the ota yesterday. Also had a new screen pop up on start up I have never seen. I had a system is corrupt message and would not boot. I have had this setup I am on for a few months. Never had a problem till this April update. And on my other phones have never seen the message I saw. It still the bootloader unlocked warning after. This one was a red flag. I was like wtf? Had to back up everything. Had avbnotverifybootimages showing trying to fastboot TWRP. I seen that before when I first came back from q. They changed a lot in q and on pixel 3 xl is implementing the new system scheme and mount points. Hence why pixel 3 and xl don't have q root and the pixel and pixel 2 do. I have two other phones on q rooted. So I just flip around because I have Google fiber so switching is piece of cake. Q rooted isn't that much better than unrooted. Most root apps do not work even though you have root. Q still blocks autostarts and on rooted apps too. So after comparing this morning q to pie rooted, I am going back to q. TJW is back on his so only a matter of time till root is achieved. Let me know if you need the modified script. You also need a way to unzip the update zip because you flash it all as images to each slot.
[Google Pixel 3 XL Guides, News, & Discussion] NathanTan:
Well at this point I could try anything I guess. After flashing then Q, the bootloader went back to locked, and I cannot unlock anymore. I tried unlock, oem unlock, but all failed.and since I cannot even start the recovery mode anymore a stuck there. Any ideas?

After flashing then, is till have secure boot: none, but now NOS production I have yes.

I have just downloaded Android Studio, could this help in any way?
[Google Pixel 3 XL Guides, News, & Discussion] Slim2none4u:
Download and install Android studios, restart PC. Find the Platform tools folder and copy your firmware into the Platform tools folder. Do not edit the flash-all. Leave the -w. Open command prompt in the Platform tools folder. Type flash-all.
[Google Pixel 3 XL Guides, News, & Discussion] NathanTan:
Flash all is not working, because I cannot unlock the bootloader. When I try fastboot flashing unlock, I get unlock is not allowed, command failed.
[Google Pixel 3 XL Guides, News, & Discussion] Slim2none4u:
RMA the device.
[Google Pixel 3 XL Guides, News, & Discussion] dd805bb:
Did you ota both slots after?

---------- Post added at 02:17 AM ---------- Previous post was at 02:16 AM ----------

Because I have doesn't it unlocked and locked bootloader. Doesn't matter. Bootloader will flash. If it doesn't you have something up with you setup. Are you using USB 2.0 to 3.0 adapter?
[Google Pixel 3 XL Guides, News, & Discussion] dd805bb:
Also what are you using to fastboot? You have errors I have not seen. The too many links description has me thinking you have fastboot issues on the way it's installed. Too many links should not happen. Should only be one link. You fastboot flashing.

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

https://xdaforums.com/showthread.php?t=478820

Check this out. Found this about too many.

---------- Post added at 03:32 AM ---------- Previous post was at 03:31 AM ----------

Oem unlock and lock only allows you to flash non OEM bootloader and firmware. Locked you should still be able to flash and or adb something. Do you know how to adb sideload?