yashsingh1/xdaforums huggingface dataset:
[Google Pixel 2 XL Guides, News, & Discussion] rickysidhu_:
I've seen this thread while browsing the 2 XL forums, didn't think to give it a try though. Some good info on getting it to work with Macs in there as well.

Thanks for that kind sir! I'll give it a shot within the next day or so and will (hopefully) report back with positive results!
[Google Pixel 2 XL Guides, News, & Discussion] Felosis:
Sorry, lets try this again (didn't post right from my phone so moved to computer to edit my post) :)

You can try...

1. Download the latest version for your Mac from Google: https://dl.google.com/android/repository/platform-tools-latest-darwin.zip

2. Unzip the downloaded file to your hard drive somewhere and from terminal of your choice "sudo install adb /usr/local/bin && sudo install fastboot /usr/local/bin" (run from within the extracted directory and enter your password when prompted)

There was a known bug in the last couple versions of the platform tools for Mac. I can confirm the lastest version is working fine on High Sierra. I hope this helps. :)
[Google Pixel 2 XL Guides, News, & Discussion] eep2378:
I just wanna go back to stock(clean wipe) and flash all scrip on Mac is not working. I have the latest version of platform-tools. Can't I just flash each file individually like we used to? I don't see a recovery img in the latest Feb image? I have TWRP installed but I'm assuming you need stock recovery?
[Google Pixel 2 XL Guides, News, & Discussion] Badger50:
There is no more recovery.img anymore on the P2XL. It now resides in the boot.img. I'm not a Mac guy, so I can't help there. Although this guy seems to know something with the Mac.

https://xdaforums.com/pixel-2-xl/de...tloop-recovery-flashing-t3704761/post75483700
[Google Pixel 2 XL Guides, News, & Discussion] Yourboymusti:
It took me a while to figure it out on Mac.

You need to put the bootloader, radio and the 3rd file (I forgot it's name) and the whole zip file in the platforms folder. Open the flash all file and edit it to remove -w if you don't want to factory reset your device.

Open terminal.

1. Enter "cd" and drag the platform folder name next to cd and click enter.

2. Type in "./" (This is essential). Copy the first instruction from the flash all file - think it's the bootloader. Click enter.

3. Do the remaining steps using "./" at the beginning.

Done.
[Google Pixel 2 XL Guides, News, & Discussion] rickysidhu_:
Thank you!! I'll give this a try as well. Lots of potential solutions in case I run into issues, thanks again :highfive:
[Google Pixel 2 XL Guides, News, & Discussion] eep2378:
THIS ^^^^^^^^ Thanks!
[Google Pixel 2 XL Guides, News, & Discussion] CPngN:
Also consider using Homebrew if you're going to be doing unix/linux things on your Mac:

https://stackoverflow.com/questions/31374085/installing-adb-on-mac-os-x

It's a package manager for *nix tools, and makes keeping dependencies and libraries up to date... sane. Homebrew or MacPorts are the right way to keep web server setups and Linux tools up to date.

---------- Post added at 03:23 PM ---------- Previous post was at 02:23 PM ----------

Updated my Pixel 2 XL to Feb update. Immediately upon final reboot after pushing patched boot file, MM warns me that it flashed dtbo... so I undid it's work by pushing the one from the update (again, just like last month), and the very next reboot, same deal. I thought Magisk Manager had this fixed, what the heck is going on here?! I just opened the same Magisk Manager, which verifieds still on latest 15.3, and the 2 check boxes were backward (Preserve force encryption ON, but Preserve dm-verity OFF).... how/why did this get reversed?

---------- Post added at 03:31 PM ---------- Previous post was at 03:23 PM ----------
[Google Pixel 2 XL Guides, News, & Discussion] dr_rick13:
Boss, were you rooted when you updated?

If yes, did you unroot first or just flash away?
[Google Pixel 2 XL Guides, News, & Discussion] Az Biker:
I was rooted. When you flash the new factory image you lose root, kernel, twrp, everything.

Remove the -w in the flash-all.bat file to NOT wipe your device.

After flashing factory img in fastboot, just

fastboot into twrp.img,

flash twrp.zip, in twrp,

flash cust kernel in twrp,

flash magisk in twrp,

profit :D
[Google Pixel 2 XL Guides, News, & Discussion] Justblazeitup:
Hey guys. It's been a solid 4 years or so since I last rooted so I'm a bit hesitant but I'm itching to get started. I just got my Verizon pixel 2 xl. Is there anything I need to look for version wise on the phone that will tell me if I can root or not? If I can and it fails does it brick the phone? My phone says security patch January 5, 2018
[Google Pixel 2 XL Guides, News, & Discussion] ilal2ielli:
Locked bootloader = no root.

Check under developer settings if your OEM unlocking button is grayed out. If it is, the only way currently unlock bootloader and root would be to return the phone and buy a straight Google Pixel 2 XL.
[Google Pixel 2 XL Guides, News, & Discussion] Justblazeitup:
Interesting. I thought I saw videos where people were getting it unlocked even though it was greyd out.

Thanks.
[Google Pixel 2 XL Guides, News, & Discussion] Badger50:
That was for the P2 (non xl) version, and the original pixel. Many are still working on the new P2XL's, but no success as of yet ?
[Google Pixel 2 XL Guides, News, & Discussion] Az Biker:
Return that bad boy and go Google. When I bought mine, they offered 0% financing for 2 yrs option, so the cost is similar to VZW.

Get the Google version, you'll never regret it!
[Google Pixel 2 XL Guides, News, & Discussion] Zehlek:
Sorry for the stupid question, If I want to flash factory images do I need to do critical unlock or is standard fine?
[Google Pixel 2 XL Guides, News, & Discussion] Badger50:
You'll have to do critical as well.
[Google Pixel 2 XL Guides, News, & Discussion] Zehlek:
Awesome thanks
[Google Pixel 2 XL Guides, News, & Discussion] ramin1039:
can not on the oem unlocking switch in developer options

hi,

in Jan 2018 I can unlock bootlooder and update my pixel XL2 to 8.1.0 Android with jan 2018 zip file with your instruction. but in present time in developer option page of my phone I cannot on the oem unlocking switch because it say: "bootloader is already unlocked" and i cant update my phone to Feb 2018 oem update:(:(:(
[Google Pixel 2 XL Guides, News, & Discussion] galaxys:
Note that unlock Critical BL it will wipe all Data including Internal storage. So do backup's...
[Google Pixel 2 XL Guides, News, & Discussion] Badger50:
Is OEM unlocking switched on in developer options? Are you trying to update via OTA or with fastboot?
[Google Pixel 2 XL Guides, News, & Discussion] iamjimmy:
Hello folks - Before updating to the new February security patch and dirty flashing factory images (WITHOUT -w to save data) do we NEED to clear cache? In the past I would always clear cache in TWRP prior and after flashing. Is this a requirement now? Is it not needed - and will clearing cache in TWRP harm anything? Thanks in advance
[Google Pixel 2 XL Guides, News, & Discussion] Badger50:
No need to wipe cache in twrp. It's going to get overwritten anyway when you dirty flash the factory image.
[Google Pixel 2 XL Guides, News, & Discussion] iamjimmy:
Thanks. Appreciate it. But if the clear cache is done (within TWRP) before flashing, no harm done right?
[Google Pixel 2 XL Guides, News, & Discussion] Badger50:
Can't really say since I've never done it. Can't see what it would harm, but then again, I can't comment for certain.

---------- Post added at 08:00 PM ---------- Previous post was at 07:59 PM ----------

BTW...make sure and remove all lock screen security before you go back and enter twrp. Data decryption with password is borked in twrp after the February update.
[Google Pixel 2 XL Guides, News, & Discussion] iamjimmy:
Thank you. Will definitely remove security - appreciate the tip. I was hoping that removing PIN would be enough, but does the fingerprint need to be removed as well.
[Google Pixel 2 XL Guides, News, & Discussion] Badger50:
Yes, remove everything! :good:
[Google Pixel 2 XL Guides, News, & Discussion] dr_rick13:
Thanks boss. I tried all that, but it tells me I dont have the proper bootloader to proceed. I'm assuming I have to unlock _critical now and lose everything anyway right? Or is there a different way?
[Google Pixel 2 XL Guides, News, & Discussion] umx:
When i do the fast boot twrp.. it wont stay in trwp just reboots
[Google Pixel 2 XL Guides, News, & Discussion] simplepinoi177:
if you're rooted, can't you do a nandroid backup or Titanium Backup before critical unlocking as supposed to losing all your current data and internal sd?
[Google Pixel 2 XL Guides, News, & Discussion] Az Biker:
If you haven't done critical_unlock, might as well do it now, that's required to update the bootloader, and yes, you'll wipe everything.
[Google Pixel 2 XL Guides, News, & Discussion] wtherrell:
I tried that but after February update the nandroid backup would not restore. I had to leave the - w in the batch file before anything would work at all. Now, of course, the nandroid backup isn't there.
[Google Pixel 2 XL Guides, News, & Discussion] pa.pn2:
Guys i used to do a clean flash of February factory image yesterday with wiping internal.

The flashing process stopped with an output that userdata cant be formatted or something like that.

I read that usb 3 can cause these errors?

Had no problems of flashing factory with wiping internal with my 6p before.

I manually erased userdata now via fastboot but im not sure now if im completely fresh or not.

Of course i had to set-up everything from scratch so i think it worked but im not sure if something is borked now cause of this error.

Even flashing deuces script didn't worked.

same userdate error...

Any thoughts?
[Google Pixel 2 XL Guides, News, & Discussion] Badger50:
Adb/SDK/drivers up to date?
[Google Pixel 2 XL Guides, News, & Discussion] pa.pn2:
Yes.latest from December
[Google Pixel 2 XL Guides, News, & Discussion] umx:
so i tried to flash the ota on sideload from twrp - but it errors out at about 43% any ideas..
[Google Pixel 2 XL Guides, News, & Discussion] Badger50:
Ok, good. Have you tried just fastbooting the factory image without the script? Any noticeable loss in functionality?
[Google Pixel 2 XL Guides, News, & Discussion] pa.pn2:
Strangely i booted up and had to setup the phone freshly.

Till now i didn't noticed anything special.

As i said i erased user data via fastboot.rebooted and i saw something on the display. A circle with erasing letters lol.then it booted up to pincode and i could setup the phone

Im a bit anxious now if something hapoend to the phone.

Had big problems before because i restored Januar Carbon nandroid and ended in a bootloop.before i was on stock February.

And in stock i removed pincodes before restoring but as far as i remember in had pins activated when doing the January carbon rom.

When i booted back to recovey all my files where ****ed up on sd card.just weird numbers nothing in folders anymore.

Think something happens with decryption..
[Google Pixel 2 XL Guides, News, & Discussion] Badger50:
So.....does that mean everything is good or not?
[Google Pixel 2 XL Guides, News, & Discussion] pa.pn2:
Till now yes

Im just scared if I have to rma someday maybe and cant go stock again with internal wipe and lock
[Google Pixel 2 XL Guides, News, & Discussion] Badger50:
You can easily go back to stock with use of fastboot and factory images, and wipe it clean if so desired. Nothing to worry about in that regard ?
[Google Pixel 2 XL Guides, News, & Discussion] clothednblack:
Dude...... It's live now! Go check it out, I'm downloading now
[Google Pixel 2 XL Guides, News, & Discussion] clothednblack:
Go get some
[Google Pixel 2 XL Guides, News, & Discussion] simplepinoi177:
i suggest checking out my post HERE...it may shed some light and help out...:D;)

good luck...
[Google Pixel 2 XL Guides, News, & Discussion] kaped31:
So I removed the -w from the flash-all to update to the latest security patch. I also had to comment out the "fastboot too old" if block. Got stuck at the Google loading screen and had a previous message which said my device was corrupt.

I flashed the vbmeta.img and only then did it boot up normally. The phone shows its updated to the Feb security patch too.

Has this happened to anyone else? I'm feeling like I messed up something and might just clean install. Thoughts? :eek:

archive does not contain 'boot.sig'
archive does not contain 'recovery.img'
archive does not contain 'system.sig'
archive does not contain 'vendor.sig'
--------------------------------------------
Bootloader Version...: TMZ12bb
Baseband Version.....: g8998-00164-1710262031
Serial Number........: XXXXXXXXXX
--------------------------------------------
checking product...
OKAY [ 0.000s]
checking version-bootloader...
OKAY [ 0.000s]
checking version-baseband...
OKAY [ 0.000s]
sending 'boot' (40960 KB)...
OKAY [ 0.871s]
writing 'boot'...
OKAY [ 0.375s]
sending sparse 'system' (524284 KB)...
OKAY [ 12.802s]
writing 'system'...
OKAY [ 2.432s]
sending sparse 'system' (524284 KB)...
OKAY [ 11.846s]
writing 'system'...
OKAY [ 2.421s]
sending sparse 'system' (524284 KB)...
OKAY [ 13.611s]
writing 'system'...
OKAY [ 2.424s]
sending sparse 'system' (410516 KB)...
OKAY [ 11.378s]
writing 'system'...
OKAY [ 1.887s]
sending 'vendor' (354872 KB)...
OKAY [ 7.600s]
writing 'vendor'...
OKAY [ 1.671s]
rebooting...

finished. total time: 69.326s
[Google Pixel 2 XL Guides, News, & Discussion] sirxdroid:
You should instead update your adb and fastboot tools, that check is there for a reason.
[Google Pixel 2 XL Guides, News, & Discussion] Badger50:
Did you update SDK? The latest version is December. You also extracted the factory image and placed all the contents in the SDK platform-tools folder correct?
[Google Pixel 2 XL Guides, News, & Discussion] sublimaze:
I have read many P2XL rooting guides (including this one), but I am still confused about "fastboot flash unlock" and "flash unlock_critical". Specifically, I am unsure of the command sequence, ie, when to type "fastboot flash unlock_critical". I intend to ultimately use the "unlock_critical" command. Do I type "fastboot flash critical" first, then immediately follow with "fastboot flash unlock_critical" in the same fastboot session? Or can I skip "fastboot flash unlock" altogether, and simply type "fastboot flash unlock_critical" right after unlocking the bootloader?
[Google Pixel 2 XL Guides, News, & Discussion] Badger50:
Personally, I did the "fastboot flashing unlock" first. Then right after that, I did the "fastboot flashing unlock_critical"

If your gonna unlock this thing, do all of it!! You'll be glad you did. Especially if your planning on fastbooting monthly factory images :good:
[Google Pixel 2 XL Guides, News, & Discussion] MikereDD:
https://developers.google.com/android/images

As per Google where everyone has read an used in their guides.

unlock

unlock_critical
[Google Pixel 2 XL Guides, News, & Discussion] rickysidhu_:
Oh man this 2 XL has not been the easiest to tinker with. When I first got the device, I attempted the flash-all.sh on my Mac (January images) and it failed; terminal output said something along the lines of "error1, error generating image for userdata".

Since then, I've been doing a lot of researching on XDA/Google, and I attempted the following "potential solutions":

- installing adb and fastboot to /usr/local/bin/ within the same directory the platform tools and unzipped images are located

- I put a "./" in front (which I had always been doing since the OG Pixel anyway)

- Tried deleting fastboot within /usr/local/bin/ but the flashing would just hang indefinitely

- Tried using Deuces script, it outputted a successful flash but I knew it wasn't because I saw the same userdata error, and the script took ~5 seconds to complete, which is too fast for a flash-all

After trying all that, I gave up and just used Parallels to flash-all inside of Windows, which worked completely fine.

I found this after flashing in Windows:

https://wiki.lineageos.org/adb_fastboot_guide.html

I've already done what is being asked in that link, and will give it a shot again once the March images are out.

Not too sure why flashing on my Mac continues to be so challenging, but I thought I'd share my experience/what I attempted/will be attempting in the future in case it helps anyone else!

Sorry for the long post, just wanted to be thorough :)
[Google Pixel 2 XL Guides, News, & Discussion] Colday96:
whenever I try flashing by writting "flash-all-bat" i get an error that says:

CreateProcess failed: %1 is not a valid Win32 application. (193)

Do you know how to solve this ?
[Google Pixel 2 XL Guides, News, & Discussion] Badger50:
Just double click the flash-all.bat script. That should start it going.
[Google Pixel 2 XL Guides, News, & Discussion] Colday96:
I don´t mean to sound idiotic but what do you mean by "double click"
[Google Pixel 2 XL Guides, News, & Discussion] Badger50:
Double click it with your mouse :good:
[Google Pixel 2 XL Guides, News, & Discussion] MikereDD:
XD

Not sure but click is a mouse thing so... im just guessing here 2 presses"clicks" of the mouse.

But what do I know..

I am not a windows user an wouldn't use a .bat file but the clicks well
[Google Pixel 2 XL Guides, News, & Discussion] v12xke:
The command is flash-all.bat was yours a typo? If it was a typo in your post and you typed it correctly, you may not have your adb folder in your path statement. If you do that you can use adb/fastboot from any folder.
[Google Pixel 2 XL Guides, News, & Discussion] Colday96:
So, i clicked on the flash-all.bat file and i get a pop-up message that says "This app can´t run on your pc"
[Google Pixel 2 XL Guides, News, & Discussion] Az Biker:
Is the flash-all.bat file is in the same folder as the fastboot application

While viewing that same folder, you're typing CMD in the address bar?

Once in fastboot , you're only typing in

flash-all

not flash-all.bat, correct?
[Google Pixel 2 XL Guides, News, & Discussion] Colday96:
Yes, I combined the fastboot and adb folder with the factory image file.

I don´t think so.

Yes and it still gives me the error i mentioned before.

---------- Post added at 01:14 AM ---------- Previous post was at 01:12 AM ----------

Yes, i do write cmd in the address bar

---------- Post added at 01:18 AM ---------- Previous post was at 01:14 AM ----------

This error only happens when I use the android sdk manager for adb and fastboot. When i use a custom made adb and fastboot folder, everything works fine
[Google Pixel 2 XL Guides, News, & Discussion] simplepinoi177:
just to confirm...

...just to confirm...

are you, in fact, using a Windows machine/OS or are you trying to run all these things on a Mac or Linux? If not on Windows, you want to run the flash-all.sh file (not the .bat file)...

apologies if you know all of this already...just covering all the bases...
[Google Pixel 2 XL Guides, News, & Discussion] Colday96:
I am on a windows 10 machine
[Google Pixel 2 XL Guides, News, & Discussion] sublimaze:
Thanks. I wasn't sure if "fastboot flashing unlock" was necessary prior to "fastboot flashing unlock_critical". None of the guides make that clear (at least not clear to me). They all suggest choosing one command or the other, rather than both in sequence.

Thanks. Apparently both commands are required, first "fastboot flashing unlock" followed by "fastboot flashing unlock_critical".

It's been a few years since I flashed anything and my adb skills are rusty. I wanted to make sure those commands were not mutually exclusive. In other words, "fastboot flashing unlock" does not prevent you from doing "fastboot flashing unlock_critical".
[Google Pixel 2 XL Guides, News, & Discussion] simplepinoi177:
Ya...then it sounds like the issue is that you need to make sure

all

the files you unzipped (flash-all.bat, taimen-something--something.img, bootloader-taimen-something.img) are with the fastboot.exe and adb.exe files with the corresponding folders "api" and "lib64" and other non-fastboot.exe/adb.exe files...

the error message is most likely meaning that it either can't find the "win32 application" fastboot.exe file or the flash-all batch file is attempting to run the wrong executable...
[Google Pixel 2 XL Guides, News, & Discussion] kaped31:
I was using the android platform tools on homebrew. Just realized they stopped updating it after version 25!

Do you think a clean install is overkill?

Edit: android platform tools has moved to brew cask
[Google Pixel 2 XL Guides, News, & Discussion] Badger50:
Oh crud!! No wonder. It's up to version 27.0.1.

I would definitely uninstall what you have, and get the new stuff. :good:
[Google Pixel 2 XL Guides, News, & Discussion] kaped31:
I highly suggest installing android platform tools using homebrew

https://brew.sh/

These are the commands you'd have to run in the terminal.

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew tap caskroom/cask
brew cask install android-platform-tools

And then you can upgrade using

brew update && brew upgrade
[Google Pixel 2 XL Guides, News, & Discussion] CPngN:
I had to go back to my old USB2 cable + adapter or much strangeness occurred...! I don't think I ever even got into adb with all new USB3 / USB-C connections from my Mac to P2XL, but using an old thin usb2 cable it all works fine. Go fig.
[Google Pixel 2 XL Guides, News, & Discussion] pa.pn2:
im not sure if its the cable itlself.its the usb-c cable from nexus 6p.maybe its my port.its the front usb plug

but honestly im not sure if the error pops up for the first time because i didnt do a complete wipe including storage before lol
[Google Pixel 2 XL Guides, News, & Discussion] JSAND39:
Hey guys, switched back to android after having an iPhone for 4 years. So I got myself a Pixel 2 XL, unfortunately I had to get it through Verizon so my bootloader is locked. So my question is, can I root with a LOCKED bootloader? Ive looked around but cant find anything on the subject for this specific phone. Thanks
[Google Pixel 2 XL Guides, News, & Discussion] Badger50:
Unfortunately, the short answer is nope. Sorry man ?
[Google Pixel 2 XL Guides, News, & Discussion] JSAND39:
**** man thats a bummer. I left the iPhone scene because of how jailbreaking is basically dead and I run into Verizons bull**** right away lol. Oh well, at least I get some level of customization until someone comes up with something. Thanks for the reply.
[Google Pixel 2 XL Guides, News, & Discussion] Badger50:
I hear ya. These guys have been working on it though. You can follow them if you'd like.

https://xdaforums.com/pixel-2-xl/how-to/temp-root-bounty-verizon-users-t3710652
[Google Pixel 2 XL Guides, News, & Discussion] Namolas:
Can anybody help me? I've been reading for hours upon hours trying to get back to stock ie "Clean flashing a factory image (wipe everything)". I'm no stranger to adb and fastboot on my Mac and have experience with the Nexus 6, OnePlus 3 & 3T and even the Samsung Note 8 most recently. However I cannot get the flash-all.sh to function at all in my platform-tools folder. I have edited it to have ./ before all fastboot commands ( I know to do this from previous experience ). I can run any adb or fastboot commands by hand without problem.

I finally gave up and just flashed all images one at a time by hand, so I am officially back to stock but it's still driving me nuts that the flash-all.sh instructions from the OP won't execute. Any ideas why?
[Google Pixel 2 XL Guides, News, & Discussion] Az Biker:
When flashing flash-all.bat for Win, we leave the .bat off.

Maybe the same for Mac?

Try leaving off the .sh when flashing?
[Google Pixel 2 XL Guides, News, & Discussion] Namolas:
The instructions in the op show the command as ./flash-all.sh for the Mac. When I enter that it accepts the command and goes to the next line in terminal but then nothing happens. I waited for over an hour. If you try to quit terminal it warns you "Closing this window will terminate the running processes: sh, grep"

Typing ./flash-all results in the error no such file or directory. Good thought though. :good: