yashsingh1/xdaforums huggingface dataset:
[Google Pixel XL Guides, News, & Discussion] bbarnes1:
I'm having an issue. I ran the steps and was given access to the OEM unlock toggle in the dev options.

I had a couple catches though.

1. The fastboot unlock command looked like it didn't work in the cmd window. It said unlocking wasn't allow. In the bootloaded device status remained locked. However, I had access to the OEM unlock toggle, even through restarts.

2. Sim card was not recognized (Verizon sim). Inserted it several times, completed all the setup... couldn't get service.

I reset the phone and everything is back to normal. Is this a fluke.... maybe I should just try it again.
[Google Pixel XL Guides, News, & Discussion] Homeboy76:
Doesn't work for Pixel 2/Pixel XL 2
[Google Pixel XL Guides, News, & Discussion] bbarnes1:
I'm on an original pixel
[Google Pixel XL Guides, News, & Discussion] Homeboy76:
Opps! :( I apologize.

Try it again, it takes a few minutes after browsing to unlock the bootloader. Before you try again, read the two pages of post before your post for advice others gave when faced with similar problems. Good luck!
[Google Pixel XL Guides, News, & Discussion] bbarnes1:
No worries!:D

Thanks for the reply, I'll be sure to review the thread
[Google Pixel XL Guides, News, & Discussion] qblake:
My problem was that I was running the OTA. After the flash-all it installed and works perfectly!
[Google Pixel XL Guides, News, & Discussion] lownignitus:
I had to do a bit of trickery to get mine to go, I originally removed all accounts, booted to bootloader and thenwiped/factory reset. Followed OP instructions, no OEM toggle, I then Factory Reset from Settings, and tried to get OEM to toggle again. I had to Factory reset from Settings 6 times before it finally was able to be toggled. I even web surfed via WiFi for roughly 5 mins each time before I Factory Reset and tried it again.

Was sweeet sweet satisfaction to be able to unlock this thing after nearly 2 years.
[Google Pixel XL Guides, News, & Discussion] blarrick:
Thank you! I got a refurb PXL via Amazon and they can randomly send Global or VZW model. I got VZW model and first thing I did was unlock the bootloader using this method. Worked perfectly on the 8.0 that it shipped with (I've read that people who are already on the 8.1 June update have a little trouble, but it still works). Then flashed 8.1 June update and all is working well. Thanks a lot.
[Google Pixel XL Guides, News, & Discussion] bbarnes1:
Second time through was a success!

Magisk is up and running as well, google pay seems happy! Didn't realize I'd need a boot.img for that process. But it appears that recent updates for sailfish have been common between verizon and google bought devices so I just got a full image from google's site. Worked like a charm
[Google Pixel XL Guides, News, & Discussion] WhiteReign:
Build Number

OPM4.171019.021.D1

any one do this on this build? Having problems thanks
[Google Pixel XL Guides, News, & Discussion] Homeboy76:
Search 'june' :)
[Google Pixel XL Guides, News, & Discussion] IzzY-AxL:
Can confirm that the OP's method worked with the Verizon Google Pixel XL 128 GB with build #OPM4.171019.021.D1 . Security update June 5th, 2018. ( I factory resetted twice after reading other posters comments ). Didnt work the first time due to the fact that its been a while since I messed around with ADB and i forgot the commands LOL. Inputted the proper commands and BAM no problems over here. THANKS!!
[Google Pixel XL Guides, News, & Discussion] digimon04:
I followed OP's instruction to unlock the bootloader of my Pixel XL three days ago. It still works with the latest June's patch. Thanks:highfive:

Did you flash factory image to both slots? Do you mean you can unlock again in fastboot without going through OP's process again? What is the state of the "enable OEM unlock" button, On or Off? (you mentioned its grey out)

Anyone else confirm this? I can't test it myself atm. If that is the case, I would more than happy to relock it again because I don't need root nor custom recovery. I unlock it just to keep the possibility to flash custom ROM in the future.

I saw another member saying he can't unlock again without going through the OP process
[Google Pixel XL Guides, News, & Discussion] nicholaschum:
Just unlocked my VZW Pixel 1 on PPP1, worked wonders. Thanks to all who were involved!
[Google Pixel XL Guides, News, & Discussion] Badger50:
And thank you sir for all the work you do to theme our devices! :good::good:
[Google Pixel XL Guides, News, & Discussion] jfishbone311:
I guess it is too early for anyone to have tried this with DP4. I got the notification for the update but haven't taken it cause I don't want to lose this ability to unlock. So from what I'm reading it is confirmed on the June Dp3 right? I would have already done it but haven't had time. Today is the day
[Google Pixel XL Guides, News, & Discussion] digimon04:
Anyone try this with July security patch?
[Google Pixel XL Guides, News, & Discussion] andrew2432:
Once unlocked it stays unlocked for good. I think you can update ota with the bootloader unlocked and no twrp or root!?
[Google Pixel XL Guides, News, & Discussion] stanley321:
Just tried it right now, still works!
[Google Pixel XL Guides, News, & Discussion] Nick80835:
Just had someone try it, this is confirmed working on Android P beta 3 (DP4) !!! :victory:
[Google Pixel XL Guides, News, & Discussion] 1xdroid:
How do i relock the bootloader?
[Google Pixel XL Guides, News, & Discussion] scutworker:
Boot the phone to the bootloader, then use fastboot oem lock
[Google Pixel XL Guides, News, & Discussion] Homeboy76:
[MENTION=3643175]1xdroid[/MENTION] [MENTION=2265368]scutworker[/MENTION]

Do not do repeat do not do that, unless you want to brick your phone. :(

Go to this thread: [Guide] Pixel XL Android 8.1.0 (OREO) Unlock/Lock Bootloader + Install Stock Images/Custom kernels/TWRP Recovery/Systemless ROOT + July Security Patch and do # 3 B and C:)
[Google Pixel XL Guides, News, & Discussion] Everage Tech:
Problem Solving...

What OS are you on? Are you on build 8.1.0 (OPM4.171019.021.D1, Jun 2018)? Anything on/past that build is not able to unlock the bootloader, they already patched the exploit. To check however, reboot your phone into recovery mode, and then bring up the options. Go to the option that says "View recovery logs". From there, look into the logs that says something like " ro.boot.oem_unlock_support=0". If it says "0", you can't unlock your bootloader. If it says "ro.boot.oem_unlock_support=1", you can still unlock the bootloader. If you can, do it as fast as possible as they are patching the exploit.
[Google Pixel XL Guides, News, & Discussion] Homeboy76:
Some have reported unlocking the bootloader on (OPM4.171019.021.P1, July 2018).

I think, his bootloader is unlocked.
[Google Pixel XL Guides, News, & Discussion] dorqus:
I unlocked mine with the June 2018 security patch using the method where you factory reset, remove the Sim card, surf the internet, etc.
[Google Pixel XL Guides, News, & Discussion] retali8:
I am able to follow this on build OPM4.171019.021.E1 but when I boot it into fastboot mode the bootloader is still locked. Is there another workaround for this?

[chown@mbp ~]$ fastboot oem unlock
...
FAILED (remote: unknown command)
finished. total time: 0.000s
[chown@mbp ~]$ fastboot flashing unlock
FAILED (remote: Flashing Unlock is not allowed
)
Finished. Total time: 0.000s
[chown@mbp ~]$ fastboot flashing unlock_critical
FAILED (remote: Flashing Unlock is not allowed
)
Finished. Total time: 0.001s
[Google Pixel XL Guides, News, & Discussion] andrew2432:
You were able to get the switch to show that OEM locking was on in developer settings?
[Google Pixel XL Guides, News, & Discussion] retali8:
Yes then when I would reboot it normally it would still show it was toggled on. It just wouldn't work in fastboot mode to where I could issue the unlock command. I've tried to reset it to factory 2-3x and run into the same errors when attempting to fastboot unlock.
[Google Pixel XL Guides, News, & Discussion] Homeboy76:
[MENTION=7785649]andrew2432[/MENTION]

Doesn't work for Pixel 2/Pixel 2 XL :(

OPM4.171019.021.E1 is the June factory image/firmware for T-Mobile - Pixel 2/Pixel 2 XL.
[Google Pixel XL Guides, News, & Discussion] Al3xxxinho:
Hi,

Tried on EE locked Pixel XL with Android 8.1.0, latest June patch and it works as expected.

After running the "adb shell pm uninstall --user 0 com.android.phone", connecting to wifi and opening Chrome, I went to dev options, but the unlock bootloader was still grayed out. I toggled the DEV options off and on from the toggle and then the option was not grayed out anymore.

The rest of the steps were as detailed in the first post.

Thanks !
[Google Pixel XL Guides, News, & Discussion] andrew2432:
There's an extra step for pixel 2 owners though right? Patched?

This??
[Google Pixel XL Guides, News, & Discussion] GokuSSJgod:
I don't think so. Shoot it over to the pixel 2 forum.
[Google Pixel XL Guides, News, & Discussion] frankrocks:
Anyone try on PPP4.180612.004 / July patch? Figures I would find this thread a couple days after I went back to android beta.
[Google Pixel XL Guides, News, & Discussion] joedeuce:
It works on P just the same for the OG Pixels.
[Google Pixel XL Guides, News, & Discussion] sifuadi:
what about the network whether it is still locked?
[Google Pixel XL Guides, News, & Discussion] andrew2432:
Network unlock is from the original carrier, nothing to do with software unlock
[Google Pixel XL Guides, News, & Discussion] Phalanx7621:
Are you sure? What about if I'm married what will it do then? Will I be unlocked?
[Google Pixel XL Guides, News, & Discussion] lucky_strike33:
I believe something else needs to be deleted so we can unlock this bootloader.
[Google Pixel XL Guides, News, & Discussion] Homeboy76:
Maybe, but the discussion should be on the Pixel 2/Pixel 2 XL forum.
[Google Pixel XL Guides, News, & Discussion] dead_ohio_sky:
Just wanted to add this to the thread, using the "adb shell pm uninstall --user 0 com.android.phone" command wasn't enough for me at that step. It wasn't until I disabled the phone app and the phone services app, rebooted, and verified by rerunning that command to make sure the app was no longer installed (as seen by the response: "Failure [not installed for 0]") that I was successfully able to toggle the OEM unlocking option.

Hope that helps someone!
[Google Pixel XL Guides, News, & Discussion] rsb007:
can you please give me more instructions?

thanks a lot!
[Google Pixel XL Guides, News, & Discussion] dead_ohio_sky:
Sure, so here are the steps in the OP with my additions:

1. Remove Google account and any kind of screen lock (fingerprint, PIN, pattern, etc.) from your device.

2. Eject sim card from your device.

3. Reset your device. In setup wizard, skip everything, don't connect to WiFi, don't add fingerprint or any kind of screen lock.

4. Go to Developer Options and enable USB debugging.

5. Connect your phone to PC.

6. Open CMD in adb directory and type

adb shell pm uninstall --user 0 com.android.phone

7. Restart your device.

-- Here I had to go to Settings -> Apps & Notifications -> See All Apps -> In the menu at the top right, select show system -> Disable "Phone", "Phone and Messaging Storage", and "Phone Services" -> Reboot.

-- Rerun Step 6 and verify that it reports the app is not installed for User 0.

8. Connect to WiFi, open Chrome and go to google.com (or any website really).

9. Go to Developer Options and enable OEM unlocking.

10. Reboot into bootloader and via CMD run

fastboot oem unlock

or

fastboot flashing unlock

11. Profit
[Google Pixel XL Guides, News, & Discussion] Spacefish:
Does not work on my Verizon Pixel 2 XL with the latest Android Beta.

I can set the "OEM Unlock" in Developer options with the described method, but after going to the bootloader it shown "unknown command" for "fastboot oem unlock"

and fastboot flashing unlock_critical FAILED (remote: Flashing Unlock is not allowed)

guess they implemented some additional checks in the bootloader which checks the provider config on a hidden partition or something like that...

trying to OTA downgrade to 8.1 now
[Google Pixel XL Guides, News, & Discussion] Badger50:
This is only for the original pixel.
[Google Pixel XL Guides, News, & Discussion] Al3xxxinho:
After unlocking the bootloader it was still network locked, so I've paid aprox 25 pounds to unlock it in my country. Now I can use it with no trouble on any network :)
[Google Pixel XL Guides, News, & Discussion] roo22:
adb shell command prompt issues

Hi, I'm having issues with the 'adb shell uninstall' prompt in the command line. When I hit enter I get the response: 'adb' is not recognized as an internal or external command, operable program or batch file.

How should I continue? I am trying to root my Google Pixel XL in hopes of recovering some data after a factory reset. Thanks.
[Google Pixel XL Guides, News, & Discussion] Craz Basics:
You're missing adb and fastboot drivers. Download this: https://developer.android.com/studio/releases/platform-tools

Extract it to a folder anwhere on your PC. Go into the folder, hold shift and right click, and press "open command window here" and then type in the command you're having issues with.
[Google Pixel XL Guides, News, & Discussion] bbarnes1:
I unlocked on the June security update... how do i install OTA, they fail

Will this method work?

https://xdaforums.com/pixel-2-xl/how-to/tutorial-flashing-ota-updates-unlocked-t3714744
[Google Pixel XL Guides, News, & Discussion] :
No, that method will not work (at least with the newer magisk versions). The ota should work perfectly fine on an unlocked bootloader, unless you have flashed anything. You'll probably be better off sideloading it.
[Google Pixel XL Guides, News, & Discussion] bbarnes1:
All I've done is install magisk and flash the boot.img for root. The auto OTA errors out.

So I can just use fastboot/adb. Or do I need twrp?

Will the bootloader remain unlocked?
[Google Pixel XL Guides, News, & Discussion] gooberedup:
I have the same issue--unlocked bootloader, Magisk and nothing else. Probably will just sideload it, although wish it would just OTA install.
[Google Pixel XL Guides, News, & Discussion] bbarnes1:
I sideloaded the OTA, worked fine. Had to repatch boot.img with magisk.

Still unlocked and rooted
[Google Pixel XL Guides, News, & Discussion] subzero2000:
Anyone happen to know if this works on the July update? I did it just fine on the June update, and am getting pestered by the OTA for July that won't install (Unlocked bootloader and flashed Magisk, nothing else, same as others have reported). My concern is if the July update is flashed, and for some reason one ends up re-locking the bootloader, can it be unlocked again or are you screwed at that point? Would love to hear if anyone has any experience unlocking on the July update. Thanks.
[Google Pixel XL Guides, News, & Discussion] :
You have magisk installed, of course the ota won't work.
[Google Pixel XL Guides, News, & Discussion] subzero2000:
That doesn't appear to be entirely true about OTAs according to the Magisk documentation - https://github.com/topjohnwu/Magisk/blob/master/docs/tips.md

Having said that, it didn't work for me, but it got me much farther in step 1 than I had been previously.

I bit the bullet and side-loaded the July update. Still have root courtesy of Magisk after re-flashing it.

The one question I have is can a Pixel/Pixel XL on the July update be unlocked using this method or not. Does anyone know?

Thanks.
[Google Pixel XL Guides, News, & Discussion] :
In the Magisk documentation you linked, it states you need to uninstall it/restore the stock boot image before performing ota updates :P but who cares, glad you got it working :D. I would assume it would still be unlockable using this method, I don't see anything in the security bulletin or in the aosp gerrit about it
[Google Pixel XL Guides, News, & Discussion] subzero2000:
You're right, ultimately it needs to be removed to some degree. Assuming the system partition hasn't been modified, it appears to be sufficient to just allow Magisk to restore the stock boot image and then accept the OTA as normal, alleviating the need to side-load it. I would have liked to see that work, but there was apparently something the OTA didn't like about my phone and it wasn't meant to be and I had to side-load. Oh well [emoji23]
[Google Pixel XL Guides, News, & Discussion] andrew2432:
If you're already unlocked its done, it won't be relocked by google on an ota I'm almost certain
[Google Pixel XL Guides, News, & Discussion] andytuqing:
after unlocking, it failed the "safetynet" test. I did not root or touch anything except unlock bootloader. I went back by using "fastboot oem lock", however it still fails the safetynet test, and I cant find netflix app in google play store, history show up as incompatible with device. Android pay installed fine, pokemon go loaded and logged in fine. Rootchecker failed the safetynet test. Should I do anything ?
[Google Pixel XL Guides, News, & Discussion] mac796:
With just an unlocked bootloader you will fail safety net the fixes either just flash a custom kernel or root with magisk. And you may need to clear data for the Play Store app at the very end and then you'll be certified again.
[Google Pixel XL Guides, News, & Discussion] dorqus:
FWIW I was able to unlock the bootloader on a Pixel 2 (non-XL) with the February 2018 image on it using the method in page 1 of this thread. Just saying...
[Google Pixel XL Guides, News, & Discussion] sliding_billy:
My 1st thought was that it wasn't a Verizon variant. Had you tried to unlock the bootloader normally before doing this?
[Google Pixel XL Guides, News, & Discussion] dorqus:
Yes I did, the "OEM unlocking" button was greyed out in developer options.
[Google Pixel XL Guides, News, & Discussion] Jaws4God:
I am debating on waiting for a Google Unlocked phone or trying to get a cheaper Verizon version... I do want to make sure I can unlock the bootloader if I ever decide to... So right now is that still possible on the Pixel 1 ? Thanks!
[Google Pixel XL Guides, News, & Discussion] Homeboy76:
Yes!
[Google Pixel XL Guides, News, & Discussion] mrkhigh:
Feb 2018 bootloader was unlockable with the critical command. It is interesting though that you didn't have to use it?

Fastboot flashing unlock_critical
[Google Pixel XL Guides, News, & Discussion] Jaws4God:
So does this mean if the Pixel / Pixel XL has the Feb 2018 bootloader it is unlockable? How can I check that when purchasing one?

Thanks!
[Google Pixel XL Guides, News, & Discussion] Homeboy76:
No! You can update the bootloader by updating the factory image/firmware.

When purchasing a Pixel Pixel XL, ask these two questions:

Is it the Verizon Pixel/Pixel XL?

Is the bootloader unlocked?

Swappa usually answers these questions.

The post above are about the Pixel 2.
[Google Pixel XL Guides, News, & Discussion] Jaws4God:
but if its a Verizon Pixel with a locked bootloader, the directions in this thread will still unlock it, correct? Thank you!
[Google Pixel XL Guides, News, & Discussion] andrew2432:
The original pixel/xl works up to June this year for sure, some reported July I believe, others said July was patched. Some android p previews claim it works as well. I got 2 sprint/vzw/att/T-Mobile variant phones from eBay for use on sprint. It is in fact the model number of the vzw phone.

EBay sellers don't know, and both phones had different security patches. This method worked on both phones. EBay was a bit cheaper than swappa and with a 30day return policy...I gambled and did ok!
[Google Pixel XL Guides, News, & Discussion] Homeboy76:
Yes.
[Google Pixel XL Guides, News, & Discussion] traybore240:
Thank you to whomever came up with this procedure. I wanted to make note, my phone(Verizon Pixel 1) would no longer connect to WiFI after Oreo update. I used Bluetooth PAN to tether to my Macbook for internet access and the procedure worked just fine.
[Google Pixel XL Guides, News, & Discussion] tswillette:
I have a Verizon pixel XL, latest July patches and all. I came upon this thread and followed the directions to a T. I didn't have to factory reset twice, first time through after turning on WiFi and going to a website my OEM unlock option was available to unlock. I flashed twrp, custom rom and happy as can be! Started on pixel dust but moved away to Resurrection ROM, a couple minor adjustments and running buttery SMOOTH. I hope that helps someone
[Google Pixel XL Guides, News, & Discussion] vinyl103:
Is it possible to fully Root the device though?

I've tried this method, twice! And tried the other way with dePixel8 with one purpose....to get deleted files off the device with either DiskDigger, PhoneRecovery, or something similar. None of these recognize the device as a being rooted so they can't do the deep scan necessary to recover the photos.

I've done the factory reset twice now so I'm wondering if it's even possible but some people told me it is, just may take a little longer or something.

tbh, I really don't know much about this kind of stuff so I'm just following the instructions.

Thanks for any good help/suggestions
[Google Pixel XL Guides, News, & Discussion] post-mortem:
Yes. First, unlock the bootloader. Then install (or at least boot) TWRP. From within TWRP, install Magisk (latest Magisk is 16.7). You'll be rooted!
[Google Pixel XL Guides, News, & Discussion] Aimless Rambler:
Just picked up this device (for $50.00) in need of repairs and was disappointed to see the grayed out unlock in dev options. I've been a Nexus fanboy for the most part and this being my first Pixel line I thought it odd Google would allow a carrier to lock er up as such. For any Google phone fanboy this is a must do. BL unlocked! Thanks!
[Google Pixel XL Guides, News, & Discussion] DanielMod:
I have just tried that on my "New" arrived Pixel XL (On Android 7.1.2) and it worked perfectly!

Thank you so much!
[Google Pixel XL Guides, News, & Discussion] itylermartin:
Silly Question.... Would This Method Work on a Verizon Tablet on 5.0.2?

Specifically LG-VK700
[Google Pixel XL Guides, News, & Discussion] prozai:
Hey guys, just wanted to report back that I am able to unlock bootloader on Verizon Pixel with July 2018 patch, peace out and thanks for the guide!
[Google Pixel XL Guides, News, & Discussion] Thaiban:
How you do ?

What about pixel 2 xl ?
[Google Pixel XL Guides, News, & Discussion] Dgameman1:
Now that the Pixel 2 XL is unlocked and rooted.

How would one go about upgrading to the Android P Betas?
[Google Pixel XL Guides, News, & Discussion] Badger50:
Either enroll in the beta program, side load the OTA, or fastboot the factory image. :good:
[Google Pixel XL Guides, News, & Discussion] 10Shilling6Pence:
Whenever I input the command, adb just replies with "error: closed"

Ive made certain that ive followed the instructions, and I can't seem to get past this. Any help is appreciated.
[Google Pixel XL Guides, News, & Discussion] sliding_billy:
Huh? Are you talking about the Google variant? This thread is about the Verizon variant and not the Pixel 2 (which is still not unlockable AFAIK) for that matter.
[Google Pixel XL Guides, News, & Discussion] digimon04:
Just answer the question myself. I first return the phone to completely stock by flashing Google factory image to both slots and then relock the bootloader. Instruction can be found here: https://xdaforums.com/pixel-xl/how-to/guide-pixel-xl-android-8-1oreo-unlock-t3715279

You don't need to go through OP's instruction again. You can simply unlock the bootloader using fastboot even though "enable OEM unlock" button is OFF and grey out.

Tested by myself with OPM4.171019.021.P1, Jul 2018

---------- Post added at 10:50 PM ---------- Previous post was at 10:44 PM ----------

Did you test the platform tool (adb and fastboot) according to this post:

https://xdaforums.com/pixel-xl/how-to/guide-pixel-xl-android-8-1oreo-unlock-t3715279