yashsingh1/xdaforums huggingface dataset:
[Google Pixel XL Guides, News, & Discussion] burduli:
Hi guys. So I finally found a way to unlock a bootloader on a Verizon Pixel. Without further ado, let's get started. This method works on Pixel and Pixel XL.

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.

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

Be aware that unlocking bootloader removes everything from your device.

UPDATE: Confirmed that this method works on Android Oreo as well as Android P Developer Preview.
[Google Pixel XL Guides, News, & Discussion] Deleted member 5638945:
Uhm, how do you skip Wi-Fi setup? :confused:

EDIT: Guys, can confirm. It works!!! Just tested this as of now. The trick is to factory reset twice because the first reset leaves an indicator to the phone that you did a factory reset just now. Therefore, not allowing you to skip Wi-Fi connection in Setup Wizard. As for the steps, once you opened Google Chrome and visit a website, Go to Developer Options and wait until 3-5 minutes if the option to unlock is still grayed out. You might want to go back and forth one more time to see if the option to unlock is now enabled.
[Google Pixel XL Guides, News, & Discussion] GTX1:
First try, didn't work. Gave it a second go, got it to work. If after you try to enable OEM Unlocking and its still locked, just wait 2-3 minutes with the screen on. Eventually it just unlocked and let me toggle it. Fully unlocked on a 8.1 VZW Pixel.
[Google Pixel XL Guides, News, & Discussion] burduli:
I think it's better if you remove screen lock and Google account from device before you reset it.
[Google Pixel XL Guides, News, & Discussion] ls4cfk:
can confirm. It works :)
[Google Pixel XL Guides, News, & Discussion] amend:
Credit to LeoTheRomRasta and Qu3ntin0 on the Bounty thread

Credit to members LeoTheRomRasta and Qu3ntin0 for making this method available to the community on the Bounty thread yesterday. https://xdaforums.com/pixel-xl/how-to/bounty-verizon-pixel-bootloader-unlock-t3740911/page14 There is an ongoing discussion there about variations on this method.
[Google Pixel XL Guides, News, & Discussion] burduli:
Thanks for pointing that out! I'll copy this into OP.
[Google Pixel XL Guides, News, & Discussion] armando_rod:
Confirmed working on Android P DP2

Remove your Google account before factory reset so it let's you skip wifi setup
[Google Pixel XL Guides, News, & Discussion] thawte:
I just tested this method on a Verizon Pixel XL 2 on the latest security patch and it is working perfectly.

I did a double factory reset and followed the rest of the instructions and then did a double reboot after connecting to WiFi and I can toggle the OEM Unlocking.

Thank you so very much for discovering this!

Thawte

After a reboot the toggle is off and grayed out again... *spoke too soon*
[Google Pixel XL Guides, News, & Discussion] burduli:
Thank you for testing and confirming that method works on Pixel 2/XL too!
[Google Pixel XL Guides, News, & Discussion] Elizage2015:
Good Job Burduli :D R.I.P Smail Amzdak :D :D
[Google Pixel XL Guides, News, & Discussion] thawte:
It did enable the OEM unlock and i toggled it and then tried the unlock commands in the bootloader and they were denied. Once I rebooted the phone, the OEM unlock was disabled and grayed out. Trying steps again...
[Google Pixel XL Guides, News, & Discussion] burduli:
Report back please.
[Google Pixel XL Guides, News, & Discussion] thawte:
Just did the same as above and the double reboot on wifi step enabled the OEM Unlock and I agreed. Did a reboot after enabling unlock and the setting persisted.

C:\platform-tools>adb reboot bootloader

C:\platform-tools>fastboot flashing unlock

...

FAILED (remote: Flashing Unlock is not allowed

)

finished. total time: 0.016s

C:\platform-tools>fastboot flashing unlock_critical

...

FAILED (remote: Flashing Unlock is not allowed

)

finished. total time: 0.000s

C:\platform-tools>

Just rebooted after this and the toggle is grayed out once more and disabled.

I wonder if there is another step for the Pixel XL 2?
[Google Pixel XL Guides, News, & Discussion] burduli:
Did you try fastboot oem unlock?
[Google Pixel XL Guides, News, & Discussion] thawte:
I will re-do all of my steps and try out this.
[Google Pixel XL Guides, News, & Discussion] burduli:
Good luck. Looking forward to the results.
[Google Pixel XL Guides, News, & Discussion] thawte:
I am at the fastboot mode and tried the oem unlock:

C:\platform-tools>fastboot oem unlock

...

FAILED (remote: unknown command)

finished. total time: 0.000s

C:\platform-tools>
[Google Pixel XL Guides, News, & Discussion] burduli:
Damn :(
[Google Pixel XL Guides, News, & Discussion] thawte:
Here are the usual commands for the Pixel 2...

Unlocking the bootloader

WARNING: This WILL wipe your entire phone. Please make copies or backups of any important data. This can also go wrong rendering your device inoperable. Proceed with caution.

On your phone, open Settings, navigate to "System" then "About phone", and tap on the build number 7 times.

Go one menu up, click on "Developer options", and turn on USB debugging and OEM unlocking.

In your terminal, type the following command:

Code:

adb reboot bootloader

Next, decide if you want to do a standard unlock or critical unlock. A critical unlock allows you to directly flash bootloader files, otherwise you will get an error when you try to do so.

Depending on what you decided in the previous step, run the following commands:

Code:

fastboot flashing unlock

(OPTIONAL)

Code:

fastboot flashing unlock_critical

Follow the prompts on your device then reboot!

Not quiet sure why it's rejecting the commands even though the switch is toggled?
[Google Pixel XL Guides, News, & Discussion] 0hfrankieboy:
Unfortunately no it will not.
[Google Pixel XL Guides, News, & Discussion] hokiealumnus:
Until it is patched after Verizon/Google see this thread/the XDA article, yes.

Once patched though, there's no getting it back.

EDIT - REMEMBER, if you are not back to 100% stock image on both slots when you re-lock, you will brick your phone.
[Google Pixel XL Guides, News, & Discussion] Mikecosta64:
Android DP3

Like many people when I first saw this, I tried the procedure posted in OP on a Verizon pixel 2 and found that they didn't work. What's interesting is that I tried this on the same pixel 2 after installing it on DP3 and it allowed me to toggle OEM unlocking in the developer settings (before when I tried this in Oreo or DP2 it was grayed out). I toggle it on but when I rebooted to the bootloader to run the command it said flashing unlock is not allowed. Thoughts?

Edit

(bootloader) avb_err:0(0)

(bootloader) is_avb_critical_error:no

(bootloader) have_oem_lock_id:yes

(bootloader) avb_stored_rollback_indexes:

(bootloader) avb_user_settable_key_set:no

(bootloader) avb_version:1.0.0

(bootloader) mid:G011A

(bootloader) version-main:

(bootloader) imei:

(bootloader) boot-mode:FASTBOOT

(bootloader) logical-block-size:0x1000

(bootloader) erase-block-size:0x1000000

(bootloader) unlocked:no

(bootloader) off-mode-charge:1

(bootloader) charger-screen-enabled:1

(bootloader) battery-soc-ok:yes

(bootloader) battery-voltage:4103

(bootloader) version-baseband:g8998-00223-1804251450

(bootloader) version-bootloader:mw8998-002.0071.00

(bootloader) variant:

(bootloader) partition-type:userdata:ext4

(bootloader) partition-size:userdata: 0xD49BFB000

(bootloader) partition-type:vendor_b:ext4

(bootloader) partition-size:vendor_b: 0x1F400000

(bootloader) partition-type:vendor_a:ext4

(bootloader) partition-size:vendor_a: 0x1F400000

(bootloader) partition-type:system_b:ext4

(bootloader) partition-size:system_b: 0xA0000000

(bootloader) partition-type:system_a:ext4

(bootloader) partition-size:system_a: 0xA0000000

(bootloader) partition-type:boot_b:raw

(bootloader) partition-size:boot_b: 0x2000000

(bootloader) partition-type:boot_a:raw

(bootloader) partition-size:boot_a: 0x2000000

(bootloader) has-slot:radio:yes

(bootloader) has-slot:bootloader:yes

(bootloader) has-slot:vendor:yes

(bootloader) has-slot:modem:yes

(bootloader) has-slot:system:yes

(bootloader) has-slot:vbmeta:yes

(bootloader) has-slot:dtbo:yes

(bootloader) current-slot:b

(bootloader) has-slot:boot:yes

(bootloader) slot-retry-count:b:6

(bootloader) slot-unbootable:b:no

(bootloader) slot-successful:b:yes

(bootloader) slot-retry-count:a:6

(bootloader) slot-unbootable:a:no

(bootloader) slot-successful:a:yes

(bootloader) slot-count:2

(bootloader) vzwisLTE:

(bootloader) vzwmid:

(bootloader) cid:00000001

(bootloader) secure:yes

(bootloader) serialno:

(bootloader) hw-revision:MP1

(bootloader) product:walleye

(bootloader) max-download-size:0x20000000

(bootloader) kernel:uefi
[Google Pixel XL Guides, News, & Discussion] kentrogers:
Still works!

I just tested after updating the firmware to the June security patch -- 8.1.0 (OPM4.171019.021.D1, Jun 2018) -- then relocked the bootloader.
[Google Pixel XL Guides, News, & Discussion] tflgen2:
Still grayed out for me (OG Pixel VZW 8.1.0 June security).

Someone mentioned "manual restart" what were they referring to?

Edit: worked. just kept at it.
[Google Pixel XL Guides, News, & Discussion] dangambino:
Godbless your android soul!!!!! I've been waiting since last November to unlock my bootloader and root. I'm ****ing ecstatic.

Thank you and I hope you get the bounty
[Google Pixel XL Guides, News, & Discussion] moley10:
i have the error: device "null" not found. any ideas?

this is after typing ..... adb shell pm uninstall –user 0 com.android.phone

edit** i have done it now. I guess it does not matter about that error.
[Google Pixel XL Guides, News, & Discussion] amosavitas:
friggn stud, thank you.
[Google Pixel XL Guides, News, & Discussion] zubblwump:
Just successfully unlocked my bootloader with this method yesterday. No problems whatsoever. Rooted and set everything up like i like. Today I noticed the toggle was grayed out and said "connect to the internet or contact your carrier". Still unlocked, no intention to re-lock...but that bothered me so I followed the advice from earlier in this thread:

"Once your rooted you can download a root explorer and go to /data/system/users open up 0.xml with text editor and look for <restrictions /> ...... at the bottom of page change value to "false" This will allow the toggle to work like it should."

After doing so, it was still grayed out so i rebooted to see if that would work...and now it only boots to TWRP. If I boot to fastboot, my device isn't recognized, so I can't just flash there again. Anyone know why this happened or how to get back?
[Google Pixel XL Guides, News, & Discussion] lafester:
No idea but you can flash ota in twrp.

Once unlocked you don't need that switch anymore btw.
[Google Pixel XL Guides, News, & Discussion] zubblwump:
Thanks. Yes, I know i don't need the switch. I just preferred to see it switched on. No big deal. I ended up wiping data from TWRP and set up root again.
[Google Pixel XL Guides, News, & Discussion] mozhno:
Did you make a nandroid backup? If so, boot into TWRP and install the backup. If not, I wonder if you could boot into TWRP and install the ROM that is on your xl that you previously installed? You'ld likely have to wipe data at least, before rebooting, and you would want to reinstall TWRP and boot into it before rebooting. These are just my quick thoughts as to what I might consider. Others here have much greater expertise.
[Google Pixel XL Guides, News, & Discussion] Ismokel:
It's still just amazing to me that people who have no clue what unlocked bootloader means. Don't do it just because you can. If you don't know what it does then you don't need it.

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

Here's how you run stock with Google pay and Netflix

https://xdaforums.com/pixel-xl/development/kernel-stock-kernel-safetynet-patch-t3588154/page9
[Google Pixel XL Guides, News, & Discussion] bobby_sucker:
works like a charm!

Thanks and a ton of respect!
[Google Pixel XL Guides, News, & Discussion] andrew2432:
Have a vzw branded sprint pixel xl and will be attempting to unlock the bootloader later today after some charging.

Once unlocked, I will then need to manually install otas and never re lock it? This method won't work if you unlock, relock, then attempt it again later?

Edit: worked first try! Followed steps exactly, no need to deviate and worked wonderfully. I was pretty disappointed when my phone came with vzws branding but what at awesome place to be!!

Edit2: they do want it at sprint. Won't they complain about dev options/OEM unlocking being enabled IF they look?

Edit3: factory reset after bootloader unlock, dev options aren't up until build number tapped!!
[Google Pixel XL Guides, News, & Discussion] ThePhoneGeek:
Yeah I am in the exact same boat. I picked up a Pixel 2 XL to play with and was hoping this method would work but alas it does not...
[Google Pixel XL Guides, News, & Discussion] spleenandcigars:
Thanks! It worked flawless. Had to wait 2-3 minutes to be able to unlock OEM and then it was ok... Running now Magisk and Xposed with modules with no issue whatsoever.
[Google Pixel XL Guides, News, & Discussion] kongmingtwo:
there any restrictions on this yet? my s7 bit the dust a few hours ago and I'm looking for mod-friendly options on a new vzw phone

...although I'm now getting this strange feeling verizon conveniently won't sell me one anymore.
[Google Pixel XL Guides, News, & Discussion] jaytv:
Verizon hasn't sold the 2016 Pixels for quite some time now. Ebay, Craigslist, and Swappa are your best bets now...
[Google Pixel XL Guides, News, & Discussion] heros_45:
Confirm that it works on DP3, easy and fast
[Google Pixel XL Guides, News, & Discussion] pac-tafary:
Hi I'm just got my Pixel 2xl and I tried this method OEM unlock is work good but in fastboot I tried all the commands fastboot flashing unlock fastboot flashing unlock_critical fastboot OEM unlock fastboot OEM lock but nothing I can't unlock the bootloader if someone knows something that I can do please help me
[Google Pixel XL Guides, News, & Discussion] Badger50:
This is for the origin Verizon pixel, not the Verizon P2XL :(
[Google Pixel XL Guides, News, & Discussion] pac-tafary:
Sad but thanks
[Google Pixel XL Guides, News, & Discussion] Crysis21:
Any chance this will work for EE UK first gen Pixel?
[Google Pixel XL Guides, News, & Discussion] Pen16x:
I have a Verizon Pixel XL and I have successfully unlocked my bootloader but when I try to lock it again after I flash TWRP my phone goes into a bootloop where the google splash screen shows for less than a second. If I lock my bootloader again, everything works fine.

How can I lock my bootloader again?
[Google Pixel XL Guides, News, & Discussion] Homeboy76:
"If I lock my bootloader again, everything works fine.

How can I lock my bootloader again?"

What?

Please do not mess around with unlocking relocking your bootloader. People have bricked their phones because they did not understand the proper procedure to relock the bootloader.

Most people unlock the bootloader to root their phone.

Once you root your phone do not lock the bootloader without reading #3 'B' and 'C' on this thread: [Guide] Pixel XL Android 8.1.0 (OREO) Unlock/Lock Bootloader + Install Stock Images/Custom kernels/TWRP Recovery/Systemless ROOT + June Security Patch
[Google Pixel XL Guides, News, & Discussion] andrew2432:
I think you could just flash a stock image from adb if anything messes up, maybe wait for confirmation on that though lol

You cannot lock it with twrp on the device I thought, it must be fully stock if I'm not mistaken, check out homeboys thread for a better answer he linked it!!
[Google Pixel XL Guides, News, & Discussion] Crysis21:
Good new boys. I've successfully unlocked the EE Uk Google Pixel (first gen) with the above method. Many thanks for this exploit :). It worked instantly and I was able to thick the OEM unlock option.

Phone software: Android 8.1 with 05 April Security Patch

Cristians-MacBook-Pro:~ cristi$ fastboot oem unlock
...
OKAY [ 0.049s]
finished. total time: 0.049s

Now the bootloader is unlocked when I reboot the phone. The option is again greyed out, but it says `Bootloader already unlocked` which is great.

Do you know any SIM unlock tools for unlocked bootloaders?
[Google Pixel XL Guides, News, & Discussion] gmfrk8:
Worth it?

Is there any reason to unlock a phone if you don't plan on rooting it in the near future? Are there any downsides to unlocking the phone and not rooting it? Is there even a reason to?

I got a Verizon Pixel and I can't decide whether to unlock it or not. I still want to use Android pay and would like to not lose any access to banking apps.

I don't plan on rooting the phone until after Android P since I like stock android.
[Google Pixel XL Guides, News, & Discussion] hokiealumnus:
The downside is the unknown - will Verizon/Google patch this unlock method. Chances of that are very high. They patched the first method within a few months. It is doubtful they will leave this one open. If you ever want root, it might be a good idea to err on the side of unlock now, for fear you may not be able to later.
[Google Pixel XL Guides, News, & Discussion] selw0nk:
I say it is worth it. Say if you want to sale the phone on Craigslist and someone asks you if the bootloader is unlocked? They would probably not buy it if it was not unlocked. That's if the buyer plans on rooting the phone.
[Google Pixel XL Guides, News, & Discussion] gmfrk8:
I've looked around and cannot get a straight answer on this though. Will just unlocking it affect my banking/google pay apps? I've read both yes and no.

I don't understand how the google edition version with an unlocked bootloader can run those apps but not an unlocked phone without being rooted
[Google Pixel XL Guides, News, & Discussion] hokiealumnus:
That will take some research. In most cases you can run a custom kernel/ROM that doesn't allow detection of bootloader unlock and not root. Or you can do that plus root with Magisk and have it hide root. Whether that works or not for your purposes is something you'd have to find out. I don't use Android Pay or any banking really and can't speak to whether these things work for that. If they use safety net, they should work fine.
[Google Pixel XL Guides, News, & Discussion] Everage Tech:
Important update

I don't think this will work on a Pixel (Verizon) anymore. Before the June mid-update, if you go into recovery logs, you would find that there will be codes. One of the codes would say "ro.boot. oem_unlock_support=1", effectively allowing you to unlock your bootloader. That's basically what this exploitation does. After some update or something like that, you'll find that it says "ro.boot. oem_unlock_support=0", meaning that this may not work anymore. This update isn't something you can download and restart to, which is weird. Just a heads-up if you are going to attempt this.

It may still work, but it's something to keep in mind.

---------- Post added at 08:20 PM ---------- Previous post was at 08:14 PM ----------

It depends what your intentions are. If you want to root your phone, go ahead, but be aware that there are risks present, and that anything could go wrong. Unlocking your phone just unlocks the bootloader, so you can root or boot into another OS. Just keep in mind that anything could go wrong when flashing, unlocking your phone, and rooting. When I unlocked my bootloader, something went wrong, and my bootloader was unlocked, but the OS was corrupt. I was also using a Verizon Pixel, so when unlocking your bootloader, be aware that your OS will most likely get corrupt for whatever reason. My only option after corrupting my phone was to flash it onto Android Nougat. You can still use Android Pay, it won't affect anything when unlocking is successful.

In general (from my experience), Verizon Pixels are harder to work with than regular Pixels. Anything could go wrong with them especially rooting and unlocking it.
[Google Pixel XL Guides, News, & Discussion] defvayne:
OEM unlocking is still grayed out, been waiting for an hour and nothing.
[Google Pixel XL Guides, News, & Discussion] dorqus:
Confirmed this worked for me on Verizon Pixel XL (128GB) with June 5th security update. Did factory reset from recovery mode, rebooted, followed the steps in the OP, then did a factory reset from the settings menu, rebooted, and after connecting to WiFi and surfing for about 2 minutes was able to enable OEM Unlocking, then unlocked bootloader, and booted up TWRP. Flashing the non Verizon Google Factory Image now, will then root it with Magisk and install Viper4Android and Substratum and I'll be happy...
[Google Pixel XL Guides, News, & Discussion] bobby_sucker:
U obviously did something wrong

There's no need to wait, it's a straightforward process, takes less than a minute to execute
[Google Pixel XL Guides, News, & Discussion] defvayne:
It ended up working after redoing the process. Took a few minutes after browsing for it to work.
[Google Pixel XL Guides, News, & Discussion] Ismokel:
Short answer is yes. If you unlock your bootloader Android pay Netflix and some other apps won't work. But you can flash a patched kernel and or magisk root to get around that.
[Google Pixel XL Guides, News, & Discussion] andrew2432:
Why does Netflix block unlocked bootloader?

Can't you just download a Netflix apk? Its the play store not Netflix app blocking?
[Google Pixel XL Guides, News, & Discussion] hokiealumnus:
Correct, it is blocked from download on the Play Store. You can download and install the apk and it works without issue. It just won't update itself like it would from the Play Store.
[Google Pixel XL Guides, News, & Discussion] backwoods919:
Netflix downloads and works just fine for me via play store.
[Google Pixel XL Guides, News, & Discussion] qblake:
I'm in the same boat as many, on DP3, if I flash Magisk 16.4 from TWRP I hang on the Google logo then it reboots to TWRP, have to flash-all stock in order to boot normally.

Magisk is the only way to root as of right now, correct?
[Google Pixel XL Guides, News, & Discussion] tweaked:
Install Dp3 using flash all.

reboot to system. Let it load, but don't set any pins, passes, or lock screens.

You need to download the twrp img and then twrp flashable. Put the flashable on your phone storage. Make sure you downloaded the same versions.. Im using 3.2.2

You need to have ADB working..

Reboot to bootloader after you load the home screen.

Run Twrp img using fastboot.

So: fastboot boot twrp.img

Then install twrp from starage using the booted twrp img.

Now reboot to your newly installed twrp.

Install 16.4 as you normally would.

Reboot to system.

Should be all you need.
[Google Pixel XL Guides, News, & Discussion] andrew2432:
Worked on march rom
[Google Pixel XL Guides, News, & Discussion] Flip_RX:
Worked on new phone with 8.0
[Google Pixel XL Guides, News, & Discussion] Phalanx7621:
For anyone reading this, ROM must = security patch. FYI.
[Google Pixel XL Guides, News, & Discussion] slogar25:
I don't get what you are saying
[Google Pixel XL Guides, News, & Discussion] andrew2432:
I said march ROM when I technically mean the march security patch of googles android 8.1. March ROM to me is the stock zip from the download page, sorry!!