yashsingh1/xdaforums huggingface dataset:
[Google Pixel 2 XL Guides, News, & Discussion] Badger50:
Fastboot the factory image leaving the -w in tact. It will wipe your phone and return it to full stock. Then and only then can you lock the bootloader without bricking your device :good:
[Google Pixel 2 XL Guides, News, & Discussion] dami00976:
And what's the command for relock?
[Google Pixel 2 XL Guides, News, & Discussion] post-mortem:
The opposite of whatever you did to unlock. For example, fastboot flashing lock.
[Google Pixel 2 XL Guides, News, & Discussion] jmtjr278:
guys,

issue here. i flashed boot.img from stock dec image via twrp to both slots followed by twrp. since then..... trouble. i cannot boot. no problem, factory images to the rescue! flashed all in fastboot and still no workie. now i'm getting device corrupt message and then it sticks on white google screen. ugh. help!
[Google Pixel 2 XL Guides, News, & Discussion] CyberpodS2:
https://xdaforums.com/pixel-2-xl/development/tool-deuces-bootloop-recovery-flashing-t3704761

Been a savior for many folks in a bad way...
[Google Pixel 2 XL Guides, News, & Discussion] Badger50:
Like my buddy Cyberpod said. Also, when you fastbooted the factory image, did you fastboot it to both slots with the -w removed?
[Google Pixel 2 XL Guides, News, & Discussion] jmtjr278:
The old sudo apt-get upgrade/update and changing the cord seems to have done the trick. How would I flash to the second partition? I flashed to b. I was fine sending bootloader and radio to a but update and then the data file results in an error. Do I need to flash each individual? Or just reboot into fastboot and let er rip again?
[Google Pixel 2 XL Guides, News, & Discussion] Badger50:
You can fastboot it to your other slot with..

fastboot --set-active=a(b) In your case, change it to A. Then just use the flash-all.bat script again with the -w removed so as not to wipe data :good:
[Google Pixel 2 XL Guides, News, & Discussion] jmtjr278:
Flash-all don't seem to work so great for me. Crazy. I just follow the instructions inside the flash-all script and do it "by hand". Works ok. Thanks
[Google Pixel 2 XL Guides, News, & Discussion] swxtr:
Hello I m New here. have pixel 2 xl verizone. I want to root my phone. What's the easiest way to do that.?
[Google Pixel 2 XL Guides, News, & Discussion] Pkt_Lnt:
Return it and get a Google phone, the VZW ones can NOT be rooted.
[Google Pixel 2 XL Guides, News, & Discussion] swxtr:
I see but I buy it maybe 10 months ago.

Pixel 2 XL cihazımdan Tapatalk kullanılarak gönderildi
[Google Pixel 2 XL Guides, News, & Discussion] Nikos2k:
The only way then is to sell it, and buy a Google pixel 2 xl
[Google Pixel 2 XL Guides, News, & Discussion] Badger50:
Nice Devil-izon sign my friend. Yep, that about sums it up! ???
[Google Pixel 2 XL Guides, News, & Discussion] Pkt_Lnt:
I actually worked for them almost ten years, as an employee they are 100x worse than as a customer, which I only was for two years

Pure. F****. Evil. :eek:
[Google Pixel 2 XL Guides, News, & Discussion] Badger50:
I hear ya man. Unfortunately, they are the best carrier for where I live and play in the boonies. They also give me a pretty good deal on all the lines I have. However, do I ever buy phones from them....a resounding HELL NO! They were complete rat dung during the Note 7 debacle! :(
[Google Pixel 2 XL Guides, News, & Discussion] CyberpodS2:
Yeah, and in my case we have Verizon extenders indoors at work. Pretty much no options for me. Lol
[Google Pixel 2 XL Guides, News, & Discussion] speaker1264:
I keep trying to flash my pixel 2 (non-XL) with the factory image, but I keep getting this message, "error: update package missing system.img"

Here's the full command prompt:

PS D:\Downloads\walleye-pq1a.181205.002-factory-fb27eb5a\walleye-pq1a.181205.002> D:\Downloads\walleye-pq1a.181205.002-factory-fb27eb5a\walleye-pq1a.181205.002\flash-all.bat
target reported max download size of 536870912 bytes
sending 'bootloader' (38680 KB)...
OKAY [ 1.101s]
writing 'bootloader'...
(bootloader) Updating: partition:0 @00002000 sz=0000B000
(bootloader) Updating: partition:1 @0000D000 sz=0000B000
(bootloader) Updating: partition:2 @00018000 sz=0000B000
(bootloader) Updating: partition:3 @00023000 sz=0000B000
(bootloader) Updating: partition:4 @0002E000 sz=0000B000
(bootloader) Updating: partition:5 @00039000 sz=0000B000
(bootloader) Updating: pmic @00044000 sz=0000D000
(bootloader) Updating: xbl @00051000 sz=003A6000
(bootloader) Updating: abl @003F7000 sz=00065000
(bootloader) Updating: cmnlib64 @0045C000 sz=00048000
(bootloader) Updating: cmnlib @004A4000 sz=00037000
(bootloader) Updating: devcfg @004DB000 sz=0000F000
(bootloader) Updating: hyp @004EA000 sz=00043000
(bootloader) Updating: keymaster @0052D000 sz=0004D000
(bootloader) Updating: tz @0057A000 sz=001D4000
(bootloader) Updating: rpm @0074E000 sz=0003A000
(bootloader) Updating: hosd @00788000 sz=01E20000
(bootloader) Updating: lockbooter @025A8000 sz=00016000
(bootloader) Updating: apdp @025BE000 sz=00004000
(bootloader) Updating: msadp @025C2000 sz=00004000
OKAY [ 2.245s]
finished. total time: 3.347s
rebooting into bootloader...
OKAY [ 0.001s]
finished. total time: 0.001s
target reported max download size of 536870912 bytes
sending 'radio' (60388 KB)...
OKAY [ 1.716s]
writing 'radio'...
(bootloader) Updating: modem @00001000 sz=03AF7000
OKAY [ 0.375s]
finished. total time: 2.091s
rebooting into bootloader...
OKAY [ 0.002s]
finished. total time: 0.002s
target reported max download size of 536870912 bytes
archive does not contain 'boot.sig'
archive does not contain 'recovery.img'
failed to allocate -1996656336 bytes
error: update package missing system.img
Press any key to exit...

What should I do?
[Google Pixel 2 XL Guides, News, & Discussion] CyberpodS2:
Check the file checksum to make sure you have a good copy. If so then look below.

This little gem has helped many folks here in the 2xl world. Seems he has a version for your phone too.

Follow the instructions and see if you have the same luck...

https://xdaforums.com/pixel-2/development/tool-deuces-bootloop-recovery-flashing-t3725778
[Google Pixel 2 XL Guides, News, & Discussion] speaker1264:
So my phone was fine before using this, but after trying to use this guide to flash the factory image it totally bricked my phone, couldn't even boot into recovery. It was totally my fault though. I had Minimal ADB and Fastboot installed instead of the Platform Tools ADB and Fastboot, which was causing the errors. Once I installed Platform Tools everything worked fine. I think both of these threads should probably have a disclaimer saying that Minimal ADB and Fastboot will not work. I had no idea there was even any major differences between the two.

I'm just happy my phone is working again.
[Google Pixel 2 XL Guides, News, & Discussion] swxtr:
I saw some wher on internet to unlock the bootloader. I will try if I can get the root. I will write here.

---------- Post added at 01:21 PM ---------- Previous post was at 01:14 PM ----------

https://www.xda-developers.com/unlock-bootloader-verizon-google-pixel-xl/
[Google Pixel 2 XL Guides, News, & Discussion] Badger50:
Beware of the scammers bruh. Believe me when I tell you that if there were a legitimate, open source way to unlock the Verizon version of the P2XL, it would have been posted already. :eek:
[Google Pixel 2 XL Guides, News, & Discussion] simplepinoi177:
This was only for the original (OG) Pixel and Pixel XL -- codename marlin & sailfish -- and doesn't work for any future Pixels and I'm also under the impression that it's been patched as well... Nice try though...

Also, it's kinda ironic that you state you saw it possible "somewhere on the internet" and yet post an XDA article here on an XDA forum....:)

My thoughts are as Badger states...If there was any development on that, the news of it would be broken here on XDA first (and most likely would have been developed by someone here on XDA for that matter...)... In any case, do "...beware of the scammers...", it's been witnessed that many have been duped and lost money because of it...
[Google Pixel 2 XL Guides, News, & Discussion] Bverns88:
Hello. For some reason magisk is not patching the boot.img file. After I click patch boot file in the app and then click on the boot.img file in the file explorer it redirects back to the app like nothing happened. Don't want to install twrp and customize as the stock firmware is very responsive and efficient and a lot of peeps be having problems with twrp it seems. Just want to root via magisk and call it day. Don't know if anyone has had this problem as I read quite extensively through this Q and A.
[Google Pixel 2 XL Guides, News, & Discussion] Badger50:
No problems with twrp that I've noticed over the last several months. However, you could fastboot into twrp and flash magisk that way, vs permanently installing twrp. Then you'd still have stock recovery :good:
[Google Pixel 2 XL Guides, News, & Discussion] Bverns88:
Appreciate the comment badger. Will do.
[Google Pixel 2 XL Guides, News, & Discussion] ChrisG12:
Stability Problems and unable to find /Cache (Rooted Pixel 2 XL)

I have a Google Pixel 2 XL, Rooted and TWRP, Magisk installed (all latest versions). Mostly seems to work. I've been have some stability problems with apps force closing a lot. I tried wiping the apps caches, re-installing apps, etc. Nothing seems to work. I tried going back into TWRP and wiping the cache from there. It seems to run - but I get an error from TWRP "unable to find partition for path /cache". I don't understand what's wrong.

Also - I noticed TWRP has disappeared on me (after a permanent install - not just a fastboot boot). I reinstalled again. Also tried both Magisk "patched boot" and tried using EXKernel - still apps force close constantly and - and the /cache problem remains.
[Google Pixel 2 XL Guides, News, & Discussion] post-mortem:
Reinstall stock ROM, fastboot boot twrp.img to install Magisk, then see if your problems persist. I suspect that your problems will be gone. Then install one thing at a time, with a delay to see if the problems recur. For example, "permanently" install TWRP, then wait & test; install the custom kernel, then wait & test; etc.
[Google Pixel 2 XL Guides, News, & Discussion] Bverns88:
Reply

Bootloaders need to be unlocked to install a custom kernal like sultan but not to install magisk?
[Google Pixel 2 XL Guides, News, & Discussion] Badger50:
Correct. Unlocked for both actually. However, you don't need magisk for use of a custom kernel. You just won't get all the features that they provide :good:
[Google Pixel 2 XL Guides, News, & Discussion] Bverns88:
deleted

---------- Post added at 05:45 AM ---------- Previous post was at 05:37 AM ----------

Rad. unlocking the bootloader beforehand will wipe the phone. So after unlocking bootloader, reboot and put magisk and sultan kernel zips onto phones internal then reboot to fastboot and flash trwp image. and install magisk and sultan and wallla.
[Google Pixel 2 XL Guides, News, & Discussion] Badger50:
Yep. After you unlock, boot to the OS, do a minimal setup, add your zips to your internal storage, and I recommend leaving your screen lock set to swipe. You'll then go into fastboot mode, fastboot into twrp, then flash your twrp installer zip, magisk.zip, then kernel.zip, then that should do it. Keep in mind that Sultan's kernel is EOL, so you may want to choose another one :good:
[Google Pixel 2 XL Guides, News, & Discussion] Bverns88:
EOL?
[Google Pixel 2 XL Guides, News, & Discussion] Badger50:
End of Life :cool:
[Google Pixel 2 XL Guides, News, & Discussion] Bverns88:
Thanks mang.
[Google Pixel 2 XL Guides, News, & Discussion] Didit_Anshari:
Sultan really EOL ? really ?
[Google Pixel 2 XL Guides, News, & Discussion] Az Biker:
It is very possible that [MENTION=3730810]Badger50[/MENTION] was thinking of the ever popular Flash kernel, which is indeed EOL (I thought it meant End Of the Line :p) and since Sultan and Flash share some DNA, and are mentioned together some of the time, he just subconsciously/accidentally inserted Sultan instead of Flash.

The Sultan thread has been slow, but there is no official indication that it is EOL. (at least not in the Sultan thread)
[Google Pixel 2 XL Guides, News, & Discussion] Badger50:
Thanks for bailing me out bruh. Yeah, I jacked up on that one. For some reson I had it in my head that Sultan was done developing. Sorry to all, my bad. My brain goes on vacation from time to time, and I speak and type before it catches up :cool:
[Google Pixel 2 XL Guides, News, & Discussion] soccercake7:
Same thing happened to me. I was on 9.0.0 (PPR1.180610.009, Aug 2018) rooted, twrp. I tried to do flash-all without the -w on 9.0.0 (PQ1A.190105.004, Jan 2019). (Restored my twrp backup but still "corrupted")

So then I used Deuces bootloop Tool with the 9.0.0 (PQ1A.190105.004, Jan 2019) images. booted twrp.img, installed twrp.zip, installed elementalx, installed magisk, and now I'm on 9.0.0 (PPR2.180905.005, Sep 2018). HOW?! Started on Aug, flashed Jan, bootloop fixed with Jan, now I'm on Sep. So confused.
[Google Pixel 2 XL Guides, News, & Discussion] Badger50:
If your fastbooting the factory image with the -w removed, why are you restoring a twrp backup?? There's no need to do that since your not wiping data anyway. As far as the problem with the wonky date thing, that is weird! I'm assuming your platform-tools are up to date? If so, try download the factory image again, and fastboot it with the -w removed to both slots. Let us know how it goes :good:
[Google Pixel 2 XL Guides, News, & Discussion] CPngN:
Were you thinking TRON? :)

[IMG="EOL"]https://res.cloudinary.com/teepublic/image/private/s--9cc2yoaP--/t_Preview/b_rgb:191919,c_limit,f_jpg,h_630,q_90,w_630/v1446244199/production/designs/295983_2.jpg[/IMG]
[Google Pixel 2 XL Guides, News, & Discussion] Badger50:
Nice one bruh! What a great old movie. I remember seeing that with my buds when it first came out in 1982! It was quite the deal for it's time :good::cool:
[Google Pixel 2 XL Guides, News, & Discussion] soccercake7:
Apologies, should have edited post better.

I did January flash-all, same thing happened to me as quoted poster, corrupted phone boot loop, then attempted twrp restore. Then did deuces tool.

Phone is somehow on September and says no update available. Scared to do anything.
[Google Pixel 2 XL Guides, News, & Discussion] jmtjr278:
I fixed my issues by updating sdk and changing cords. Not sure which it was that resolved the issue but it worked for me. Updated and changed cords them flashed factory images via fastboot to both partitions and it worked a charm.
[Google Pixel 2 XL Guides, News, & Discussion] Badger50:
Like jmtijr278 said, update your platform-tools if you haven't, download and extract the January factory image again, try a different cable, and fire away again :good::good:
[Google Pixel 2 XL Guides, News, & Discussion] ChrisG12:
I reinstalled stock ROM (Jan 2019) and fastboot booted to TWRP, installed Magisk zip. Tried to wipe cache and got the same "unable to find partition for path '/cache' " ... Is this normal?
[Google Pixel 2 XL Guides, News, & Discussion] post-mortem:
The Magisk installer gave you that error, or did you wipe cache from within TWRP?
[Google Pixel 2 XL Guides, News, & Discussion] ChrisG12:
From within TWRP
[Google Pixel 2 XL Guides, News, & Discussion] jmtjr278:
Why are you trying to wipe cache? Try without that. Wiping causes errors, frequently. Just flash stock, reboot to fastboot, fastboot TWRP, flash twrp zip if wanted followed by magisk.
[Google Pixel 2 XL Guides, News, & Discussion] TonikJDK:
There isn't a cache partition on Pixels or any device that has the A/B setup. So that is normal and you shouldn't do that. You can drill through the storage menus when it boots up and clear cache that way. But it really isn't needed anymore.
[Google Pixel 2 XL Guides, News, & Discussion] ChrisG12:
Ah ok thanks. That makes sense. Did I mess anything up by doing that (i.e. should I re-install)?
[Google Pixel 2 XL Guides, News, & Discussion] simplepinoi177:
I don't think you need to, it most likely didn't mess anything up. But, if anything, consider it IF you end up having issues within the next week; but other than that, you shouldn't have anything to worry about...

P.S. I just saw you attempted to clear it via TWRP...I just wanted to chime in again and reassure you that I've done the same action with little to no effect. Didn't break anything afaik....

And, if anything, there are plenty of apps that clear ALL the cache for you so you don't have to do it manually as TonikJDK mentioned... What I use and what comes to my mind is App2SD and ES File Explorer...

Hope this helps...
[Google Pixel 2 XL Guides, News, & Discussion] Sui77:
i!

I'm struggeling while rooting/TWRP.

Situation: Factory reset & factory image

Booting TWRP, flashing magisk, flashing TWRP

While I'm able to boot just after flashing Magisk, I'm stuck in Google Logo after flashing TWRP.

Any idea what is my mistake?
[Google Pixel 2 XL Guides, News, & Discussion] Badger50:
Try flashing magisk after twrp.
[Google Pixel 2 XL Guides, News, & Discussion] Sui77:
Done so, same issue.
[Google Pixel 2 XL Guides, News, & Discussion] Badger50:
Then try fastbooting into twrp again, then flash twrp.zip then boot to OS. Then go back to twrp and flash magisk.
[Google Pixel 2 XL Guides, News, & Discussion] srqrob:
I've had consistent success after applying the monthly security updates of fastbooting the TWRP image and then queuing all three zips: TWRP, Kernel and Magisk for a single install. Takes seconds and done.
[Google Pixel 2 XL Guides, News, & Discussion] post-mortem:
I've read several Pixel 2 users complain that they can't install TWRP, so they just have to fastboot boot the img every time they want to flash something.
[Google Pixel 2 XL Guides, News, & Discussion] simplepinoi177:
what exactly is output (in the log) when you install TWRP? There's a good chance it would be helpful and/or might give a better idea what's going on than what you've given so far...

Definite +1 on this statement!:good::good::good:
[Google Pixel 2 XL Guides, News, & Discussion] Sui77:
What I've done:

Fastbooted TWRP

Flashed TWRP

Flashed Magisk

---> STUCK at Google Screen

Flashed TWRP

Flashed Magisk

---> BOOTED UP

Same issue over here:

https://xdaforums.com/pixel-2-xl/help/pixel-2-xl-root-mad-t3889957

I faced the same issue on the Pixel (1) from my mother and it seems to be linked to the EXACT order of the steps (w/wo reboot e.g.)
[Google Pixel 2 XL Guides, News, & Discussion] simplepinoi177:
I'm glad you got it working...

I guess it's as [MENTION=4670411]Az Biker[/MENTION] has been saying, if you really want to do a thorough and most bug-free/glitch-free process and way about it, you should reboot after each and every single process (as he sort of restates again and goes over in the #8 post in the thread you posted...) you could find one of the times he's stating this sort-of PSA here in this post...
[Google Pixel 2 XL Guides, News, & Discussion] megamarini:
Hi mate, thank you for your guide. I'm facing a problema when I try to install TWRP. If I follow your guide and I push Magisk modified boot via Fastboot i succeed to get root. The strange behaviour is this: every time I flash TWRP recovery I get bootloop, with every version I tried. There's no way for me to get working TWRP and Magisk at the same time. Any suggestio?
[Google Pixel 2 XL Guides, News, & Discussion] simplepinoi177:
My apologies if I am not nathanchance...he's not on here much (if at all) even though he created this awesome guide and thread (he may be out doing the developers equivalent of being a superhero I imagine :p)...but I hope my help is acceptable anyways...

P.S. Also, just for future reference and for any who are unaware (my apologies, but I've been seeing it a lot lately -- at least 3 times in the last week...), please be aware that replying and quoting any guide and most (if not all) Original Posts (OPs) in the remote chance of speaking directly to the Original Poster (another version of the word "OP") end up copying a whole lot of information that is usually reserved to just referring to or directly viewing and forces us to scroll a whole bunch unnecessarily and wasting a lot of extra space on a & this webpage/forum. If anything, SPOILER and HIDE tags would be considerate.... thanks for reading...

Magisk essentially makes, let's say, partial changes to the boot (where acquiring root and custom recovery are established) partition, whereas TWRP makes, let's say, complete changes to the boot partition. So when you flash TWRP after installing Magisk, it overwrites the partial changes Magisk does.

Basically, you need to install TWRP first, before flashing the Magisk modified boot image...in this order, you should be able to "...get working TWRP and Magisk at the same time."

Hope this helps...
[Google Pixel 2 XL Guides, News, & Discussion] megamarini:
Thank you for your answer. The problem Is (i forgot to tell you) if if flash twrp before magisk, tried Yesterday, i got bootloop and reboot to recovery, every time.

I tried every twrp and magisk version with no success.

Any suggestion about?
[Google Pixel 2 XL Guides, News, & Discussion] simplepinoi177:
Mmmm...then I would suggest that you install Magisk and obtain root by implementing the .zip installation file/method rather than manually patching and flashing a modified boot image... It's how most experts (I imagine) get it installed for Pixel 2 -- it gives the least bit of issues in terms of glitches or bugs after installation...

*reminder, installing the TWRP installation .zip before the Magisk installation .zip...

Hope this helps...
[Google Pixel 2 XL Guides, News, & Discussion] megamarini:
Tried is, I tried every solution found on XDA or web. The probem is if I install Twrp then flash Magisk.zip I got again bootloop. I resume you the situation:

- Bott TWRP (no installation) and flash Magisk -----> No Way

-Fash TWRP and flash Magisk -------> No way

-Flash TWRP and load via Fastboot Modified Image --------> No Way
[Google Pixel 2 XL Guides, News, & Discussion] Badger50:
Have you thrown a custom kernel in the mix yet?
[Google Pixel 2 XL Guides, News, & Discussion] xDakos:
Unlock everything everything fresh and USB debugging is on

Now stick your **** to your computer and fastboot into bootloader

Now fastboot into trwp

Flash magisk

Done
[Google Pixel 2 XL Guides, News, & Discussion] megamarini:
Yes mate, I tried both original and ElementalX kernel. The kernel boot fine but, even in this way, i can't complete root.

Could the problem be in twrp him self?
[Google Pixel 2 XL Guides, News, & Discussion] Badger50:
Doesn't always work for everyone my friend!
[Google Pixel 2 XL Guides, News, & Discussion] xDakos:
I had a **** tons of problems this method works even with the newest pie version

The trick is only to fastboot into everything and leave the trwp flash

You can even flash magisk and custom kernel and boot

I did this method on like 20+ pixels and when I do it different I bootloop for sure
[Google Pixel 2 XL Guides, News, & Discussion] Badger50:
TWRP hasn't been an issue for me and many others. Version 3.2.3-1 has been fine for several months. It's all in the sequence. What finally worked for me was to....

Fastboot into twrp

Flash twrp.zip

Flash Ex kernel

Boot to OS

Back to twrp

Flash magisk 18.0

Flash magisk uninstaller

Flash magisk again

Then it finally booted up, and has been fine ever since with monthly updates. On a side note, this method took 4-5 times before it booted up.
[Google Pixel 2 XL Guides, News, & Discussion] xDakos:
I mean oldest pie versions I did it on the first useable pie trwp and magisk beta versions
[Google Pixel 2 XL Guides, News, & Discussion] megamarini:
You reflash everytime twrp or After first flash you play only with magisk flash/uninstall?

---------- Post added at 04:55 PM ---------- Previous post was at 04:32 PM ----------

Thank You mate!!! Your method finally works for me! Thank you again and thank you to everyone who answered me!

Finally I can use root on my phone!

:highfive::highfive::highfive::highfive::highfive::highfive: