[Google Pixel 4 XL Questions & Answers] :
I tried with root browser before, but will try again later today.

I got home and went all out. Updated windows, changed cables, tried various USB ports, redownload adb, reinstall usb drivers, download factory image again, factory, reset from recovery, fastboot wipe, and then flash all, will test what happens but i still saw that message during flashing saying something close to Erased Successfully. Could not format type raw

:confused:

Update:

I notice my active slot was b. So I switched to slot a, and wiped and installed. Looks like with this method I manged to wipe both slots (A +B)

Sending 'bootloader_a' (8761 KB) OKAY [ 0.323s]
Writing 'bootloader_a' (bootloader) Flashing Pack version c2f2-0.2-5940465
(bootloader) Flashing partition table for Lun = 0
(bootloader) Flashing partition table for Lun = 1
(bootloader) Flashing partition table for Lun = 2
(bootloader) Flashing partition table for Lun = 4
(bootloader) Flashing partition table for Lun = 5
(bootloader) Flashing partition xbl_a
(bootloader) Flashing partition xbl_config_a
(bootloader) Flashing partition aop_a
(bootloader) Flashing partition tz_a
(bootloader) Flashing partition hyp_a
(bootloader) Flashing partition abl_a
(bootloader) Flashing partition keymaster_a
(bootloader) Flashing partition devcfg_a
(bootloader) Flashing partition qupfw_a
(bootloader) Flashing partition uefisecapp_a
(bootloader) Flashing partition msadp_a
(bootloader) Flashing partition logfs
OKAY [ 0.270s]
Finished. Total time: 0.868s
Rebooting into bootloader OKAY [ 0.045s]
Finished. Total time: 0.054s
< waiting for any device >
Sending 'radio_a' (82676 KB) OKAY [ 2.077s]
Writing 'radio_a' (bootloader) Flashing Pack version SSD:g8150-00041-191016-B-5945070
(bootloader) Flashing partition modem_a
OKAY [ 0.649s]
Finished. Total time: 2.998s
Rebooting into bootloader OKAY [ 0.044s]
Finished. Total time: 0.053s
--------------------------------------------
Bootloader Version...: c2f2-0.2-5940465
Baseband Version.....: g8150-00041-191016-B-5945070
Serial Number........: 99171FFAZ006J5
--------------------------------------------
extracting android-info.txt (0 MB) to RAM...
Checking 'product' OKAY [ 0.068s]
Checking 'version-bootloader' OKAY [ 0.065s]
Checking 'version-baseband' OKAY [ 0.063s]
Setting current slot to 'a' OKAY [ 0.078s]
extracting boot.img (64 MB) to disk... took 0.329s
archive does not contain 'boot.sig'
Sending 'boot_a' (65536 KB) OKAY [ 1.634s]
Writing 'boot_a' OKAY [ 0.445s]
extracting dtbo.img (8 MB) to disk... took 0.030s
archive does not contain 'dtbo.sig'
Sending 'dtbo_a' (8192 KB) OKAY [ 0.305s]
Writing 'dtbo_a' OKAY [ 0.115s]
archive does not contain 'dt.img'
archive does not contain 'recovery.img'
extracting vbmeta.img (0 MB) to disk... took 0.000s
archive does not contain 'vbmeta.sig'
Sending 'vbmeta_a' (8 KB) OKAY [ 0.135s]
Writing 'vbmeta_a' OKAY [ 0.065s]
extracting vbmeta_system.img (0 MB) to disk... took 0.001s
archive does not contain 'vbmeta_system.sig'
Sending 'vbmeta_system_a' (4 KB) OKAY [ 0.133s]
Writing 'vbmeta_system_a' OKAY [ 0.067s]
archive does not contain 'vendor_boot.img'
extracting super_empty.img (0 MB) to disk... took 0.001s
Rebooting into fastboot OKAY [ 0.065s]
< waiting for any device >
Sending 'super' (4 KB) OKAY [ 0.001s]
Updating super partition OKAY [ 0.005s]
Resizing 'product_a' OKAY [ 0.008s]
Resizing 'system_a' OKAY [ 0.004s]
Resizing 'system_b' OKAY [ 0.004s]
Resizing 'vendor_a' OKAY [ 0.004s]
Resizing 'vendor_b' OKAY [ 0.005s]
archive does not contain 'boot_other.img'
archive does not contain 'odm.img'
extracting product.img (2127 MB) to disk... took 13.661s
archive does not contain 'product.sig'
Resizing 'product_a' OKAY [ 0.004s]
Sending sparse 'product_a' 1/5 (524284 KB) OKAY [ 13.092s]
Writing 'product_a' OKAY [ 3.439s]
Sending sparse 'product_a' 2/5 (524284 KB) OKAY [ 13.238s]
Writing 'product_a' OKAY [ 3.600s]
Sending sparse 'product_a' 3/5 (524284 KB) OKAY [ 12.774s]
Writing 'product_a' OKAY [ 3.483s]
Sending sparse 'product_a' 4/5 (521664 KB) OKAY [ 12.542s]
Writing 'product_a' OKAY [ 3.444s]
Sending sparse 'product_a' 5/5 (84460 KB) OKAY [ 2.034s]
Writing 'product_a' OKAY [ 0.808s]
extracting system.img (762 MB) to disk... took 7.627s
archive does not contain 'system.sig'
Resizing 'system_a' OKAY [ 0.004s]
Sending sparse 'system_a' 1/2 (524284 KB) OKAY [ 12.675s]
Writing 'system_a' OKAY [ 3.472s]
Sending sparse 'system_a' 2/2 (256952 KB) OKAY [ 6.163s]
Writing 'system_a' OKAY [ 1.947s]
archive does not contain 'system_ext.img'
extracting system_other.img (67 MB) to disk... took 0.480s
archive does not contain 'system.sig'
Resizing 'system_b' OKAY [ 0.005s]
Sending 'system_b' (69276 KB) OKAY [ 1.705s]
Writing 'system_b' OKAY [ 0.711s]
extracting vendor.img (659 MB) to disk... took 4.554s
archive does not contain 'vendor.sig'
Resizing 'vendor_a' OKAY [ 0.005s]
Sending sparse 'vendor_a' 1/2 (524284 KB) OKAY [ 12.788s]
Writing 'vendor_a' OKAY [ 3.472s]
Sending sparse 'vendor_a' 2/2 (151200 KB) OKAY [ 4.551s]
Writing 'vendor_a' OKAY [ 1.240s]
archive does not contain 'vendor_other.img'
Erasing 'userdata' OKAY [ 1.051s]
Erase successful, but not automatically formatting.
File system type raw not supported.
Erasing 'metadata' OKAY [ 0.077s]
Erase successful, but not automatically formatting.
File system type raw not supported.
Rebooting OKAY [ 0.000s]
Finished. Total time: 177.883s
Press any key to exit...

Let's see what happens now

Update: Still cant get the script to run, tried it with a different file explorer, and root explorer

Now I feel like my phone needs a break (need this thing to last two years at least)

I'll wait for a new adb release or something like that. The phone and root works fine (viper4android, debloat/ other magisk things all working good)