[Google Pixel 2 XL Questions & Answers] jan_ruc:
[MENTION=4618389]simplepinoi177[/MENTION] I had followed your instructions and some progress was made.

Hey [MENTION=8133855]jan_ruc[/MENTION]... I have a couple of suggestions, but you're gonna have to humor me a bunch....

I've actually personally ran into this issue (max-download-size). And I'm still using the same phone -- which means that I didn't have it sent out for replacement/RMA...

I'd like to say "...So let's go about this from scratch & at the very beginning...", but I took a look at your picture on post #22 and I noticed something; looking at the syntax, there seems to be an inadvertent space when "calling" for the slots, I believe you will have progress if you "edit" Deuces script and make sure there is NO SPACE between "slot" and the underscore (_) -- it should look like "Slot_a" instead of "Slot _a". In programming/coding, a space is actually considered an actual character....

***Didn't seem to do much, basically the same result as before.

Also, I'm very confused as to why GetVar All doesn't work.

***It worked this time :D

In any case, in case the above suggestion doesn't work or bear any fruit/progress, "So, let's go about this from scratch & at the very beginning..." (if anything, to determine through process of elimination [kind of])...

•	Download the Pixel 2 USB driver (the .zip file) here: https://developer.android.com/studio/run/win-usb

•	Skip download/using the "Android SDK Manager", and download the latest platform-tools here: https://developer.android.com/studio...platform-tools (download the .zip for windows; when extracted, it will show version r28.0.0)

•	Download the latest taimen Full Factory image (OPM2.171026.006.C1) here: https://dl.google.com/dl/android/aos...y-21236059.zip (you may need to do the whole "acknowledge" thing for the website first...)

then try these steps...

1.	Extract and install the USB driver (from the .zip file)

How exactly?

2.	extract platform-tools from the .zip, showing version r28.0.0

***DONE

3.	extract the Full Factory .zip

***DONE

4.	move all files (6 files) to the platform-tools folder with (or where there is) adb and fastboot .exe files along with other files and folders (I have had other users merely move the adb.exe and fastboot.exe files to the extracted Factory folder, so that's why I state and direct this way)

***DONE https://ibb.co/j4GKPd

5.	edit the flash-all.bat file -- to edit: right-click. If there are more than one flash-all files and you do not know which one to edit, you need to go to Folder Options(can be found in Control Panel and in Quick Tiles of a folder view [Windows 10]), go to the tab View, and untick "hide extensions for known file types" -- and remove the "-w" & the word "exit" at the very end in the code/syntax

***DONE https://ibb.co/bxc4qJ

*make sure you save the file! either manually save and/or when you exit, it will warn and ask you if you want to save; and save.

6.	make sure phone has USB debugging enabled

***TRUE

*it might also help to revoke all USB authorizations, and then in the next step keep looking at the screen to select "Accept" and reauthorize your computer

7.	Plug in your phone to your computer (USB-A to USB-C is best and most compatible, but I think you've mentioned you do not have a cord like this...so use what you can)

*select "Accept" if you revoked the USB authorization

8.	open a command prompt/powershell (as Administrator or with administrative privileges), and direct it to your platform-tools that you extracted (the r28.0.0 -- if I extracted it in/to my Desktop, I would direct the command prompt to "C:\Users\MyName\Desktop\platform-tools")

9.	enter the command

Code:

adb devices

***(can't since it won't boot. Ran fastboot devices instead and saw the phone in fastboot)

&

Code:

fastboot --version

If this returns correctly, it's okay for you to proceed. If not, troubleshooting should start here.

***Returns ver. 28.0.0-4797878 https://ibb.co/c1fePd

10.	to help me/us, in case all this doesn't work, open Device Manager and please list the instances of your phone and "drivers" -- it may come up as "Pixel 2 XL", "Google Phone", "MTP device", "ADB Interface device", or something along those lines.

***Android Bootloader Interface https://ibb.co/hyjjqJ

11.	enter the command

Code:

adb reboot bootloader

If your device reboots, great! and you may proceed. If not, something is wrong or incorrect (may have incorrectly done something) or the cable is acting up where it is not anyone's fault and you should wait for a new cable to continue & fix....

***can't reboot since there is nothing to reboot from.

12.	[optional]this would be a great time and place to enter the command

Code:

fastboot getvar all

copy its contents, and post it here...

***Ran fastboot getvar all:

PS C:\Users\Jan\Desktop\Taimen Revival\platform-tools> fastboot getvar all

(bootloader) keep_efs:no

(bootloader) is_oem_unlocked:yes

(bootloader) have_oem_lock_id:yes

(bootloader) avb_stored_rollback_indexes:

(bootloader) avb_user_settable_key_set:no

(bootloader) avb_version:1.0.0

(bootloader) hw-color:RCW

(bootloader) hw-variant:GA00136-EU

(bootloader) hw-revision:rev_10

(bootloader) cid:00000000

(bootloader) erase-block-size:0x1000

(bootloader) logical-block-size:0x1000

(bootloader) unlocked:yes

(bootloader) off-mode-charge:1

(bootloader) battery-soc-ok:yes

(bootloader) battery-voltage:4340

(bootloader) version-laf:1.0.3

(bootloader) version-baseband:g8998-00223-1804021619

(bootloader) version-bootloader:TMZ12g

(bootloader) version-abl:TMZ12g

(bootloader) version-aes:TMZ12g

(bootloader) version-cmnlib:TMZ12g

(bootloader) version-cmnlib64:TMZ12g

(bootloader) version-devcfg:TMZ12g

(bootloader) version-hyp:TMZ12g

(bootloader) version-keymaster:TMZ12g

(bootloader) version-pmic:TMZ12g

(bootloader) version-rpm:TMZ12g

(bootloader) version-xbl:TMZ12g

(bootloader) variant:MSM UFS

(bootloader) partition-type:laf_b:raw

(bootloader) partition-size:laf_b: 0x3000000

(bootloader) partition-type:laf_a:raw

(bootloader) partition-size:laf_a: 0x3000000

(bootloader) partition-type:dtbo_b:raw

(bootloader) partition-size:dtbo_b: 0x800000

(bootloader) partition-type:dtbo_a:raw

(bootloader) partition-size:dtbo_a: 0x800000

(bootloader) partition-type:boot_b:raw

(bootloader) partition-size:boot_b: 0x2800000

(bootloader) partition-type:boot_a:raw

(bootloader) partition-size:boot_a: 0x2800000

(bootloader) partition-type:vendor_b:ext4

(bootloader) partition-size:vendor_b: 0x1F400000

(bootloader) partition-type:vendor_a:ext4

(bootloader) partition-size:vendor_a: 0x1F400000

(bootloader) partition-type:persist:ext4

(bootloader) partition-size:persist: 0x2000000

(bootloader) partition-type:userdata:ext4

(bootloader) partition-size:userdata: 0xD423FB000

(bootloader) partition-type:system_b:ext4

(bootloader) partition-size:system_b: 0xA0000000

(bootloader) partition-type:system_a:ext4

(bootloader) partition-size:system_a: 0xA0000000

(bootloader) has-slot:laf:yes

(bootloader) has-slot:bootloader:yes

(bootloader) has-slot:vendor:yes

(bootloader) has-slot:dtbo:yes

(bootloader) has-slot:vbmeta:yes

(bootloader) has-slot:cmnlib64:yes

(bootloader) has-slot:cmnlib:yes

(bootloader) has-slot:keymaster:yes

(bootloader) has-slot:devcfg:yes

(bootloader) has-slot:hyp:yes

(bootloader) has-slot:pmic:yes

(bootloader) has-slot:abl:yes

(bootloader) has-slot:rpm:yes

(bootloader) has-slot:tz:yes

(bootloader) has-slot:xbl:yes

(bootloader) has-slot:radio:yes

(bootloader) has-slot:modem:yes

(bootloader) has-slot:system:yes

(bootloader) current-slot:a

(bootloader) has-slot:boot:yes

(bootloader) slot-retry-count:b:6

(bootloader) slot-unbootable:b:no

(bootloader) slot-successful:b:yes

(bootloader) slot-retry-count:a:2

(bootloader) slot-unbootable:a:no

(bootloader) slot-successful:a:no

(bootloader) slot-count:2

(bootloader) slot-suffixes:a,b,

(bootloader) secure:yes

(bootloader) serialno:711KPQJ0681284

(bootloader) product:taimen

(bootloader) max-download-size:0x20000000

(bootloader) kernel:uefi

(bootloader) qem:0

all:

Finished. Total time: 0.114s

PS C:\Users\Jan\Desktop\Taimen Revival\platform-tools>

13.	enter the command

Code:

flash-all.bat

copy the log, and post it here

PS C:\Users\Jan\Desktop\Taimen Revival\platform-tools> .\flash-all.bat

Sending 'bootloader' (36380 KB) FAILED (remote: unknown command)

Finished. Total time: 0.016s

rebooting into bootloader OKAY [ 0.000s]

Finished. Total time: 0.000s

fastboot: error: Failed to identify current slot

rebooting into bootloader OKAY [ 0.000s]

Finished. Total time: 0.010s

extracting android-info.txt (0 MB) to RAM...

--------------------------------------------

Bootloader Version...: TMZ12g

getvar:version-baseband FAILED (remote: unknown command)

fastboot: error: requirements not met!

Press any key to exit...

I re-ran it by right clicking the flash-all.bat in \platform-tools\ and got this:

fastboot: error: cannot load 'bootloader-taimen-tmz12g.img': No such file or directory

rebooting into bootloader OKAY [ 0.002s]

Finished. Total time: 0.003s

fastboot: error: Failed to identify current slot

rebooting into bootloader OKAY [ 0.001s]

Finished. Total time: 0.002s

W/ziparchive(12640): Unable to open 'image-taimen-opm2.171026.006.c1.zip': No such file or directory

fastboot: error: failed to open zip file 'image-taimen-opm2.171026.006.c1.zip': I/O error

Press any key to exit...

Depending on what happens, things may work out for you, or you will return here and hopefully post all the "contents" that the commands returned as well as a list of "instances" in Device Manager. With those and what is in your Device Manager, it may explain if it's your drivers, your platform-tools/fastboot set up, or your cord (hence, "process of elimination"). I've personally had it that, because I was using various android devices (from Motorola Droid OG, 3 & 4 to Samsung [S5]), my Pixel was connecting as MTP Device and/or Google Phone when it's supposed to be ADB Interface device (hence adb commands working on it) and only until I changed the driver to that (may be uniquely my solution, but still...). It was very late and has been a while, but I believe how I corrected this when I was having this exact error was by flashing the exact version that was currently on my device and/or wiping, formatting, and manually inputting the correct size that would match the "max-download-size". I think I remember my device not wanting to accept and flash later updates until I did something like that and re-initialized the current version and make it "stable" first. That's why we can find this out through the "contents" you post here and/or from your own memory.

I hope you follow this, get back to me/us, and/or it works out! Good luck!

P.S. If all else fails, I do have an idea on what you might be able to do or flash in TWRP...

I have answered/filled out what happened or what I got back from a specific task.

Again, thank you very much!