Guide: Re-Locking the Bootloader completely on the Pixel 2 XL

bigblueshock

Senior Member
Jun 26, 2010
501
139
0
Long Island
I did not see this posted anywhere, nor do I see it on Google's Factory Image website/instructions.

Based on testing... When re-locking the bootloader, "fastboot flashing lock" does NOT seem to lock the critical partition.

After following Google's steps to a T and locking the regular bootloader, It was indeed locked. I even attempted to lock regular bootloader again, and received a message stating it was already locked. Bootloader screen also says everything is locked. All is fine and dandy, right?

For ****s and giggles, I tried performing "fastboot flashing lock_critical". It indeed asked me if I wanted to lock the critical partition. After re-locking critical, I was not able to lock critical again. Safe to say, critical does not get re-locked when re-locking regular bootloader.

Safe to say... to re-lock the bootloader completely, you probably want to perform "fastboot flashing lock_critical" then perform the regular "fastboot flashing lock".
 

abogrhen

Senior Member
Jul 10, 2012
383
146
73
I did not see this posted anywhere, nor do I see it on Google's Factory Image website/instructions.

Based on testing... When re-locking the bootloader, "fastboot flashing lock" does NOT seem to lock the critical partition.

After following Google's steps to a T and locking the regular bootloader, It was indeed locked. I even attempted to lock regular bootloader again, and received a message stating it was already locked. Bootloader screen also says everything is locked. All is fine and dandy, right?

For ****s and giggles, I tried performing "fastboot flashing lock_critical". It indeed asked me if I wanted to lock the critical partition. After re-locking critical, I was not able to lock critical again. Safe to say, critical does not get re-locked when re-locking regular bootloader.

Safe to say... to re-lock the bootloader completely, you probably want to perform "fastboot flashing lock_critical" then perform the regular "fastboot flashing lock".
we unlocked bootloader then unlocked critical
so it makes sense to lock critical then lock bootloader as you said
 

rester555

Senior Member
Oct 27, 2010
299
55
0
So the process for stock and locked would be to install a factory image to wipe and bring back to stock, fastboot flashing lock_critical, and fastboot flashing lock?
 

Galactus

Senior Member
Dec 28, 2009
5,990
2,155
253
London
Correct :good: However, I wouldn't do it unless you plan to RMA it, or sell it :cool:
Hmmmm what about if you are worried about theft. You can still wipe the phone and login with another account can't you with the bootloader unlocked? Where as the phone will always be tied to the last google account logged in if the bootloader is locked, making the phone useless to sell even overseas. I could be wrong though.
 

rspkt

Senior Member
Nov 24, 2012
195
83
58
When re-locking my bootloader on my Pixel 2 XL, I only needed to enter "fastboot flashing lock_critical" first. When I entered "fastboot flashing lock" afterwards, this error was returned:

FAILED (remote: ' Device already : locked!')

Seems you only need one step not both. My device is now 100% stock and bootloader is locked and ready for RMA.
 

kaplex

New member
Sep 16, 2009
1
0
0
When re-locking my bootloader on my Pixel 2 XL, I only needed to enter "fastboot flashing lock_critical" first. When I entered "fastboot flashing lock" afterwards, this error was returned:

FAILED (remote: ' Device already : locked!')

Seems you only need one step not both. My device is now 100% stock and bootloader is locked and ready for RMA.
Yes. just "fastboot flashing lock_critical" will completely lock your bootloader
 

Badger50

Forum Moderator
Staff member
Feb 27, 2011
11,218
9,394
253
60
Kansas City
Looking to sell my phone. So is there detailed instructions I can follow to return to stock and relock bootloader?
Clean fastboot the factory and let it wipe your device. Then factory reset, then lock the bootloader. You must be 100% stock before you lock it down my friend :good:
 

def-g

Senior Member
Dec 30, 2008
853
230
0
Winnipeg
Clean fastboot the factory and let it wipe your device. Then factory reset, then lock the bootloader. You must be 100% stock before you lock it down my friend :good:
If data is wiped once I flash the factory image. Why would I need to factory reset it? Your wisdom is appreciated.