yashsingh1/xdaforums huggingface dataset:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] sportytony:
I tried updating with the zip as I have twrp already installed on rooted stock rom with elementx kernal but it just keeps bootlooping to twrp on reboot, I was able with skipsoft, to reinstall dec twrp and not lose any info. is there something else I need to do to update my twrp that ANYONE else has done? tried copying new twrp img and zip to skipsofts recovery directory but it auto updates back to older version.

Thanks for any info.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Badger50:
Updating twrp from within twrp used to be possible, but doesn't work on the P2XL. Follow the pic with the new 321-2 version, and you'll then be updated :good:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] pkgnex:
?

I updated to 3.2.1-1 from 3.2.1-0, and to 3.2.1-2 from 3.2.1-1 from within the app with no issues.

You just need to flash magisk afterwards, I think, or you end up in a "recovery boot loop". I flashed the new TWRP from within TWRP already on my device, then before rebooting to system ALSO flashed magisk 16.1 and Flash-Kernel... then rebooted system and everything was well. Also later rebooted to recovery to check that TWRP actually updated (it did). No issues whatsoever on P2XL.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Badger50:
Well there ya go. Didn't realize that since I haven't seen anybody mention it yet. Thanks for the info my friend :good:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] pkgnex:
No worries... The method you posted obviously still works, too.

I know I saw somewhere that you had to flash magisk after trwp to avoid the recovery loop... pretty sure it was earlier in this thread but I don't have time to search. Needless to say I can't take credit for having figured it out!
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Shanks:
I did this and then booted back to twrp and out of curiosity i switched slots and phone bootlooped
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Badger50:
Yeah, I think there's been a reported problem with slot switching. Haven't tried it personally, but you can always switch back to your active slot with fastboot --set-active=a(or b)
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Shanks:
Thank you, 1 last question, does the phone switch slots every time i reboot phone? I wanna try flashing twrp again but I'm afraid I'll be at work and for whatever reason reboot phone and bootloop
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] vibrantliker:
What was the reason Google had to intruduce "slots" it just creates a headache for everybody. I wish there was a way to remove that and go back to one .
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] D-m-x:
Yeah, it was right after the newest Update was released. I read it too and did it like that to avoid the Bootloop.

Gesendet von meinem SHIELD Tablet K1 mit Tapatalk
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Badger50:
Nope. It only switches when you flash roms or take OTA's. Unless you specify what slot you want to flash a rom on.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] ashu01:
Guys i am on stock oreo with march security patch

TWRP latest version has no issues with this right?

decrypt and all the things works fine?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Badger50:
All things work fine accept slot switching apparently ?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] ashu01:
Great

Its not gonna give any issues right?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Badger50:
Shouldn't. I've flashed several zips with it thus far leaving screen lock at fingerprint+pin :good:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] ashu01:
booted twrp and then flashed twrp zip now twrp touch is not working and even phone is not booting?

what could be the fix?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Badger50:
If you can, flash magisk to get rid of the twrp bootloop. If you can't get touch response, then follow the pic.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] ashu01:
what kernel this pic is reffering to?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Badger50:
Flash kernel. Or you can use whatever you like. If stock kernel, then skip the kernel part :good:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] ashu01:
Still touch is not working

i think i have to flash stock boot.img again
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Badger50:
That's fine. After you do, then let the phone boot up, then disable screen lock security, then go back to fastboot mode and start over. Then add your security back in and you should be good.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] ashu01:
flashed stock boot.img

booted to OS

booted temporary twrp

flashed twrp zip and magisk

and still touch is not working in recovery

it only works when i give command via PC

not if i manually boot into recovery from phone
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Badger50:
Then flash a custom kernel. You won't regret it :good:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Nikos2k:
I have February's image installed, with Flash kernel and Magisk 16. But it still gives me an OTA notice for the March update (that won't go away)
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] pantmunu:
It's gonna fail anyway so it's not an issue. I hope that was your question.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Nekromantik:
The slot switching issue kinda makes the whole point of it to be moot if you can't switch back after a bad flash. Hope Google fix it.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Badger50:
Disable automatic updates in developer options, or, long press the notification and shut it off. That is...if you want to of course :cool:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] jlokos:
Restore nandroid back up

Ok; I written about this in the past. I keep getting extractTarFork() process ended with ERROR: 255 when I try to restore the data of a custom rom. I followed Cyberpod52's suggestion of flashing the matching stock image to both partitions before restoring the backup, and it still failed. Has anyone been able to restore a custom rom backup, or is it just me?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] TheUndertaker21:
woot woot

new version
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] gianton:
Have you disabled auto updates under developers settings?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] kirky27:
Decrypt fails still

I am on March security fix and TWRP (3.2.1-2) latest. Decrypt still fails for me. Of note the TWRP notes state that the version of TWRP (3.2.1-2) works with Feb security patch- says nothing about March.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Duncan1982:
So are you all using Dm-Verity to decrypt with latest twrp? If so can you be kind enough to share as I still need to remove my pin before booting into twrp.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] gazdajezda:
I just upgraded my P2XL to March 5 security patch level. Magisk works, Twrp (latest) works - decrypts data.

I have tried backup / restore of my system and backup is created without problem, but when i try to restore it, i get this error:

Cannot restore Vendor -- mounted read only.

Do i need to boot TWRP.img and then try to restore?

Nevermind: i mount it RW and right now restoring backup :)

Ehh.. it ends with "Your device is corrupt. It can't be trusted..."

What i did wrong this time? Ai ai ai :)
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] rickysidhu_:
Fastboot flash the stock boot.img from the March factory images
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Nikos2k:
It was disabled. I disabled the notification of System Update as badger50 suggested above, and the notification is gone, ok now
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] gazdajezda:
I did flash-all and it works. But i wanna try backup/restore, since if i cannot restore, what is the point? :)

So i try for the second try, this time following Badger's instruction how to properly restore:

So, now after restoring, phone start booting without "i'm corrupted" msg, but now i wait on white screen with G sign and moving stripe below it for at least 10 minutes. Will it boot or i again do something wrong?

Naybe this is important: i restore 8.1 with february sec. patch level. Before that i also do a backup of current state with march sec. patch. If restore will be successfull, i will restore to march version. It's just test, which is currently not passed for me, damn it :)
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] rickysidhu_:
I've never used TWRP's backup and restore before so I have no idea how that would/could affect the corrupt error message on startup.

In the past, if I ever got that message, I'd flash either the boot, dtbo, vbmeta or all three images, and then go ahead and reflash TWRP, cust kernel and Magisk
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] shindiggity:
Flashing Magisk zip works after flashing twrp zip
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] chazall1:
Chainefire Retired and his great work will be no more.

I chose to install Magisk and found out what a great dev

and devs working on this. Working great on my end.

SU is no more.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] sharkie405:
Unfortunately, plugging in the device doesn't work to wake it up either.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Ferenczy68:
Thanks brother, you're the best...
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] slothdabski:
Strange, unplugging and plugging back in has worked for me EVERY time
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] sn0warmy:
So just to be clear, it looks like booting into TWRP (just like the Alpha build) works just fine on the November 8.0 build and the 8.1DP build. It's only after trying to install the zip file that people are having issues with the phone not waking and keyboard disappearing. Correct?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Badger50:
So...if you fastboot TWRP, then boot into TWRP, you then have to flash the TWRP.zip???? Or am I way off base here?? Definitely wouldn't be the first time :eek:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] shindiggity:
Yup, then Magisk zip
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] cmo220:
For me that is correct. Except after flashing the zip the entire touch screen doesn't work. I'm on the Nov build for Verizon.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Badger50:
Well thank ya my friend! The P2XL is definitely a lot different than my 6p. But, I'm adapting :good:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] jrbxx7:
I dont think u fasboot twrp. Only fastboot boot twrp. Then flash zip to make it permanent. Thats how the og xl was also.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Badger50:
So.....fastboot flash boot twrp.img?? Would that be correct? Guess we don't use the word recovery anymore since the kernel and recovery are bundled together.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] jrbxx7:
No flash just fastboot boot twrp.Img

Then flash twrp zip
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] shindiggity:
Fastboot boot twrp. img
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Badger50:
Thank you very much gentleman for helping out an old dog. Dumb arse me didn't even think to re-read the OP. Sorry for having a noob moment! :eek:

---------- Post added at 01:33 AM ---------- Previous post was at 01:31 AM ----------

BTW....what theme are you running? Valerie? :cool:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] jrbxx7:
Lol all good. These pixels r a different animal

Theme is swift dark and sprite for status and nav bar
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Badger50:
Looks really good. I too use Swift Dark, I'll definitely be looking into the sprite theme as well :good:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] mac796:
Hey did you ever figure out what was going on? the same thing is happening to me as soon as I flash the zip my touch screen is Frozen on pattern screen.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Badger50:
One last question, will we still have to patch boot.img's with magisk, or just flash away when new kernels come out?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] cmo220:
Nope, I didn't have the time to mess with it tonight. I just flashed the stock boot image back. I'm sure it will be straightened out soon. It's also possible I just did something wrong.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Goog1e Phone:
Would you recommend staying on 3.2.1-0 or update to newest?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] gazdajezda:
Well, i again need to wipe-all, flash TWRP, Magisk to be operative again. Obvoously there is somethng i don't know, because i cannot believe that restoring a backup is so difficult. Or is Pixel's security so depp, i don't know. But on my 8 year experience with CWM, TWRP on other devices, usage was much easier. Or, is it possible, that downgrade is not possible on Pixel? Because i try to do just that... From march state to february backup...
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Badger50:
What partitions did you backup and restore?? You only need boot, system, and data, nothing else, or your likely to get error messages ?

---------- Post added at 11:35 PM ---------- Previous post was at 11:33 PM ----------

I'm on 321-2 and not having any issues. However, before you update it, remove your screen lock security just to be safe. So, yes, go ahead and update :good:

---------- Post added at 11:37 PM ---------- Previous post was at 11:35 PM ----------

If you downgrade, you'll have to do a full wipe and clean flash the factory image. But why do you want to do that?? ?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] gazdajezda:
First time I backed all partitions and also try to restore all - i triggered the Phone corupted msg... Second time i followed your advice, but i think the problem was fact, that i try to restore an older version. I just wannt to test TWRP. And yes,i didn't read whole thread, since it is plenty of pages.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] :
I'm on the February update and I am temporarily booting into TWRP 3.2.1-2. When I flash the TWRP zip from the temporary image and reboot, my phone boots straight to TWRP and not into the OS. Is there a fix for this or am I forced to use the temporary boot method?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Badger50:
Flash your custom kernel(if used) and magisk after you flash the twrp.zip :good:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] :
Do I flash magisk before I reboot?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Badger50:
Yes sir :good:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] :
Worked like a charm. Thanks a lot!
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Badger50:
No worries mate. Happy to help :laugh:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] sportytony:
This is exactly what I did, to the letter!

Thank you! Worked like a charm!
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] pkgnex:
Did updating from within TWRP not work for you? It did for me (twice, for each of the recent rapid updates), but I think I'm the only person here who has reported having successfully done so.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Badger50:
I learned a couple days ago that it does work, so long as you flash magisk afterwards ??
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] jlokos:
It worked for me. I flashed it after I flashed a custom rom, then booted up. When I rebooted back to recovery, twrp was there; I flashed flash kernel and magisk, rebooted again and it was still there and working.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] sportytony:
It sounded like it should work, but I was worried I might lose touch screen ability and not boot into image and figured with skipsoft software not being updated, I was eventually gonna have to manually entering ADB commands if I wanted to continue and update Oreo and eventually "P"
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] jlokos:
extractTarFork() process ended with ERROR: 255: solved

I was the one having problems restoring any backups to my phone. In post #1771, I asked if it was just me. I never received a response so I assumed it was. So I decided to bite the bullet. I hadn't wiped my phone since I purchased it. I Dl'd all my files to my laptop and flashed the March factory image without removing -w. I went ahead and flashed twrp, twrp and restored without issue a backup of my custom rom and everything worked. The lesson is if you are having problems not generally encountered by others, bite the bullet, wipe your phone and start over. :victory:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] chazall1:
+ 1 for that.

Most of the time a complete wipe solves many issues.

I backup my phones data and have a backup of everything on the sdcard.

Very easy to restore with TB and move files over very quickly.

Thanks
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] gazdajezda:
Ok, will take this into account. Just last question: my previous phone (Samsung Galaxy S4 GPE) was kind of dream phone for me. I use it so long just because of option of how easy restoring backups between phones was / it also works great with GPE rom. For instance: my phone died, i just buy a new one, blow the fuse (unlock), install TWRP and restore a nandroid from died phone. In 20 minutes it was like nothing happen, i was able to go further like nothing happen. I presume that something like this is not possible on Pixel 2 XL (because on phone encryption)? That's why i so like nandroid backup/restore . A killer feature for me :)

Edit: correcting bunch of typo's...
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] galza:
i had to boot to twrp to flash some mods but its totally unresponsive any one noticed this? pixel 2 xl
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Badger50:
If your running the stock kernel, it's been well documented. Install a custom kernel, or fastboot twrp to get touch response back. Actually, just fastboot into twrp, and flash a custom kernel anyways and call it good :good:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] galza:
ok so i messed up because now my system wont boot.how to flash boot.img of p dp1 that im on? whats the command?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Badger50:
You first have to extract the boot.img from the PDP1 factory image and put it in your platform-tools folder. The command is...fastboot flash boot boot.img :good:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] galza:
oh no i messed up big time now phone boot up corrupted and cant even get to bootloader..dont know whats wrong..any way to save it? :(
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Badger50:
You can't get into bootloader mode by turning off the phone, and then hold the power button and volume down button simultaneously until it goes into bootloader??
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] galza:
Ok I finally managed by using a bootloop script from xda..now restoring from backup..to p developer.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] mistermojorizin:
Any fix for this? I'm on the 3.2.1-2 and still don't know how to set the correct date.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Badger50:
It's a twrp thing. Annoying for sure, but not lethal :laugh:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] gazdajezda:
I also have same problem. Not leathal, only annoying.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] edi fakhri:
Trwp yg cocok untuk teclast 98 apa ya gan, dan bagaimana donwloadnya dan instal ke perangkat, terima kasih

Mod Edit: Twrp is suitable for teclast 98 what ya ya gan, and how download and install to the device, thanks
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Badger50:
English dude...English :cool:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] thenestor:
Go to Advanced, then Terminal, and type this:

date 2018.03.17-09:47

Adjust for the current date and time, of course. I think you have to use the time in your own time zone if you already set the time zone in TWRP.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] edi fakhri:
Saya tidak bisa bahasa ingris

Mod edit: I can not speak English
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] def-g:
Just installed after a few attempts. Now when I boot into it freezes at the password screen. Can't type or anything. Screen totally unresponsive. I have to long press power button to get out. Any ideas? On v3.2.1-2.

G
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Badger50:
Install a custom kernel, then flash magisk.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] CyberpodS2:
Is this persistent or do we need to do this before each backup?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Pkt_Lnt:
Nomor empat

https://xdaforums.com/announcement.php?f=263
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Badger50:
Amen brother!! Like I said earlier...English dude!:good:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Exelios:
lol

fastboot boot /path/to/twrp.img

tries to download boot.img and hangs

what the... hahaha
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Badger50:
Well that cleared things up! ????
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Exelios:
:silly: :eek: :rolleyes:

So how do I boot TWRP now?

I heard it's better to boot it then flash it to device on the Pixel 2 XL, and installation process in the OP suggest booting TWRP first to flash it
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Badger50:
This is how I've done it many times :good:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Exelios:
Yeah well that doesn't work when:

1. fastboot boot thinks boot means download the boot.img

2. fastboot boot returns command unknown

3. fastboot boot just causes screen brightness on the device to turn on and nothing else happens

pick your favorite error, I get them all 3 in a random order when I try to fastboot boot twrp.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] thenestor:
If you're booting into TWRP from fastboot, you have to set the date every time. If you're booting TWRP that's installed from zip, it might stick, but I haven't tested that.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Badger50:
Are you in bootloader mode when trying these?? Sounds like your in your OS trying to run fastboot commands through adb??
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Exelios:
Yeah I'm in fastboot, I unlocked bootloader fine and fastboot devices returns my device no problems

see screenshot

I have tried uninstalling minimal adb and fastboot, making sure I have the latest version, installed the drivers that come with android studio and so on
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Badger50:
The twrp.img needs to be in your platform-tools folder. I don't see a path to platform tools from your desktop pathway. Try just opening a command prompt on your platform-tools folder and see what happens.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Exelios:
Already tried to put the twrp image in the same folder as minimal adb and fastboot and the result was the same

see screenshot
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Badger50:
Is there not a "platform-tools" folder in your minimal adb/fastboot stuff???
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Exelios:
Nope

I use this minimal tools version from here

https://xdaforums.com/showthread.php?t=2317790
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] gianton:
Do what I posted here.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Badger50:
I think your going to need the SDK platform tools from here....https://developer.android.com/studio/intro/update.html#sdk-manager

I'm not familiar with minimal adb, I've used the full SDK version for many years without difficulties. It also has all the adb stuff as well.