[Google Pixel 2 Questions & Answers] chadeel:
My pixel 2 is hard bricked. Phone bootloader is locked and phone boot loop into the bootloader. Not going to recovery but accepting fastboot command. As bootloader is locked and as oem is locked. I can do nothing.

There is only one solution, i find is that to unlock bootloader using htc token unlock technique. A guy using teamviewer unlocked the pixel one which is at same situation as mine. video link is attached. He used htc token unlock procedure and unlocked the bootlaoder and install the htc bootlaoder to temporary install the htc zip then after that he install the google officical zip.

I find the fastboot command which can give htc like token codes but i can't get the unlock_code.bin from htcdev..

Refereence urls are attached, Any one can solve this mystery?

Bootloader: mw8998-002.0069.00

Boot slot : b

Video

http://https://www.youtube.com/watch?v=5rfk-NtWIIs

Image

https://xdaforums.com/pix...ocked-t3842095

All files which guy used

https://xdaforums.com/pix...t3540772/page6

Some Codes which i used using htc modified adb (fastboot)

E:\Android World\Google\pixel 2\8.1\walleye-9\walleye-opm4.171019.021.q1>htc_fastboot --slot

usage: htc_fastboot [-h] [-v] [-V] [-s <serial number>] [-w]

[--slot <all|a|b|other>] [-a] [--set-active=a]

[--set-active=b] [-d | --force-resend]

<command> ...

Created by BSP Core team on 2015-03-11.

Copyright 2016 HTC Corp. All rights reserved.

optional arguments:

-h, --help show this help message and exit

-v, --verbose set verbosity level

-V, --version show program's version number and exit

-s <serial number> specify device serial number or path to device port

-w Erase userdata and cache (and formatif supported by

partition type).

--slot <all|a|b|other>

Specify slot name to be used if the device supports

slots.

-a, --set-active Sets the active slot to the value given by --slot or

current slot to be active. This will run after all

non-reboot commands.

--set-active=a Sets the active slot to a/b

--set-active=b

-d disable auto resend function for ROM pack pre-update,

no effect on partial ROM

--force-resend Enable auto resend function for any fastboot command

fastboot commands:

use htc_fastboot <command> -h to get more details

<command>

flash write a file to a partition

flashall Flash boot, system, vendor, and recovery from your

build folder. If the device supports slots, the slot

that has been flashed to is set as active. Secondary

images may be flashed to an inactive slot.

flash-primary Same as flashall, but do not flash secondary images.

flash-secondary Only flashes the secondary images.

update Reflash device from update.zip. Sets the flashed slot

as active.

erase erase a partition

format format a ext4 partition

set_active Sets the active slot. If slots are not supported, this

does nothing.

getvar display a bootloader variable

devices list all connected devices

reboot reboot device normally

reboot-bootloader reboot device into bootloader

dump dump the device content to the specific file

getfb dump the screenshot to a bitmap file

C:\Users\Ch Adeel\Downloads\pixel-unlock-20191011T045602Z-001\pixel-unlock\adb\adb>cmd

The system cannot find message text for message number 0x2350 in the message file for Application.

(c) 2019 Microsoft Corporation. All rights reserved.

C:\Users\Ch Adeel\Downloads\pixel-unlock-20191011T045602Z-001\pixel-unlock\adb\adb>htc_fastboot --set-active=a

htc_fastboot v3.1.0.1 (2016-10-25)

Setting current slot to 'a'...

FAILED (remote: Slot Change is not allowed in Lock State

)

finished. total time: 0.000s

htc_fastboot finished. total time: 0.704s

C:\Users\Ch Adeel\Downloads\pixel-unlock-20191011T045602Z-001\pixel-unlock\adb\adb>astboot flash unlocktoken Unlock_code.bin

DNS server not authoritative for zone.

C:\Users\Ch Adeel\Downloads\pixel-unlock-20191011T045602Z-001\pixel-unlock\adb\adb>fastboot flash unlocktoken Unlock_code.bin

htc_fastboot v3.1.0.1 (2016-10-25)

error: cannot load 'Unlock_code.bin'

htc_fastboot finished. total time: 0.718s

C:\Users\Ch Adeel\Downloads\pixel-unlock-20191011T045602Z-001\pixel-unlock\adb\adb>fastboot flash unlocktoken Unlock_code.bin

htc_fastboot v3.1.0.1 (2016-10-25)

error: cannot load 'Unlock_code.bin'

htc_fastboot finished. total time: 0.678s

C:\Users\Ch Adeel\Downloads\pixel-unlock-20191011T045602Z-001\pixel-unlock\adb\adb>fastboot flash unlocktoken Unlock_code.bin

htc_fastboot v3.1.0.1 (2016-10-25)

target reported max download size of 536870912 bytes

sending 'unlocktoken' (0 KB)...

OKAY [ 0.016s]

writing 'unlocktoken'...

FAILED (remote: Flashing is not allowed in Lock State)

finished. total time: 0.016s

htc_fastboot finished. total time: 0.677s

C:\Users\Ch Adeel\Downloads\pixel-unlock-20191011T045602Z-001\pixel-unlock\adb\adb>fastboot flash unlocktoken Unlock_code.bin

htc_fastboot v3.1.0.1 (2016-10-25)

target reported max download size of 536870912 bytes

sending 'unlocktoken' (0 KB)...

OKAY [ 0.018s]

writing 'unlocktoken'...

FAILED (remote: Flashing is not allowed in Lock State)

finished. total time: 0.019s

htc_fastboot finished. total time: 0.695s

C:\Users\Ch Adeel\Downloads\pixel-unlock-20191011T045602Z-001\pixel-unlock\adb\adb>fastboot oem get_identifier_token

...

FAILED (remote: unknown command)

finished. total time: 0.000s

htc_fastboot finished. total time: 0.672s

C:\Users\Ch Adeel\Downloads\pixel-unlock-20191011T045602Z-001\pixel-unlock\adb\adb>fastboot oem get_ks_token

...

(bootloader) INFO< Please cut following message >

(bootloader) INFO<<<< Identifier Token Start >>>>

(bootloader) INFO4147A3D900014CAB1F647A2404E64867

(bootloader) INFO2F38DBE685CE1336E7901A7BC3BC0750

(bootloader) INFO952DCF6785D6E3F14741CEFADAEE407E

(bootloader) INFO0BF54F840C3F7735782B9FB0D2DC7EF5

(bootloader) INFO0EF6F99B62D1ABFCB02A5C2EB1C2118B

(bootloader) INFO3F81D26A354721E6E25A8C5849C2DAA1

(bootloader) INFO45D9042183144296061282636BC994A3

(bootloader) INFO96901F516733CA2E893B6B865CE1BFAE

(bootloader) INFO7FE0E6F5976FA061F6BFB487F3D86D1A

(bootloader) INFO8D1957A513BED8FA72BB803946BBE952

(bootloader) INFO37F16589D00FB0EF26B223B03288E68F

(bootloader) INFO55F97D54133737DF27BA874DDBAE4EEE

(bootloader) INFODDB3491BA955DDED99469A5FFADAE7AA

(bootloader) INFOA6333D7B22B97B391AEE6AB31A8D8300

(bootloader) INFO85638C3E8087D65E964553D366360813

(bootloader) INFO707111F7AFF1D167244A5390430C1C61

(bootloader) INFO<<<<< Identifier Token End >>>>>

OKAY [ 0.016s]

finished. total time: 0.016s

htc_fastboot finished. total time: 0.675s

C:\Users\Ch Adeel\Downloads\pixel-unlock-20191011T045602Z-001\pixel-unlock\adb\adb>fastboot flash kstoken Unlock_code.bin

htc_fastboot v3.1.0.1 (2016-10-25)

target reported max download size of 536870912 bytes

sending 'kstoken' (0 KB)...

OKAY [ -0.000s]

writing 'kstoken'...

FAILED (remote: unlock token check failed)

finished. total time: -0.000s

htc_fastboot finished. total time: 0.678s

C:\Users\Ch Adeel\Downloads\pixel-unlock-20191011T045602Z-001\pixel-unlock\adb\adb>fastboot flash ks_token Unlock_code.bin

htc_fastboot v3.1.0.1 (2016-10-25)

target reported max download size of 536870912 bytes

sending 'ks_token' (0 KB)...

OKAY [ 0.016s]

writing 'ks_token'...

FAILED (remote: Flashing is not allowed in Lock State)

finished. total time: 0.016s

htc_fastboot finished. total time: 0.684s

C:\Users\Ch Adeel\Downloads\pixel-unlock-20191011T045602Z-001\pixel-unlock\adb\adb>fastboot flash ks_token Unlock_code.bin

htc_fastboot v3.1.0.1 (2016-10-25)

target reported max download size of 536870912 bytes

sending 'ks_token' (0 KB)...

OKAY [ 0.000s]

writing 'ks_token'...

FAILED (remote: Flashing is not allowed in Lock State)

finished. total time: 0.000s

htc_fastboot finished. total time: 0.690s

C:\Users\Ch Adeel\Downloads\pixel-unlock-20191011T045602Z-001\pixel-unlock\adb\adb>fastboot flash zip update.zip

htc_fastboot v3.1.0.1 (2016-10-25)

error: cannot load 'update.zip'

htc_fastboot finished. total time: 0.794s

C:\Users\Ch Adeel\Downloads\pixel-unlock-20191011T045602Z-001\pixel-unlock\adb\adb>fastboot flash zip update.zip

htc_fastboot v3.1.0.1 (2016-10-25)

found large-zip header, file count: 6

processing file 1/6...

sending 'zip' (0 KB)...

FAILED (remote: GetVar Variable Not found)

finished. total time: 0.000s

htc_fastboot finished. total time: 0.984s

C:\Users\Ch Adeel\Downloads\pixel-unlock-20191011T045602Z-001\pixel-unlock\adb\adb>fastboot boot bootloader.img

usage: htc_fastboot [-h] [-v] [-V] [-s <serial number>] [-w]

[--slot <all|a|b|other>] [-a] [--set-active=a]

[--set-active=b] [-d | --force-resend]

<command> ...

htc_fastboot: error: argument <command>: invalid choice: 'boot' (choose from 'flash', 'flashall', 'flash-primary', 'flash-secondary', 'update', 'erase', 'format', 'set_active', 'getvar', 'devices', 'reboot', 'reboot-bootloader', 'dump', 'getfb', 'oem', 'empty')

C:\Users\Ch Adeel\Downloads\pixel-unlock-20191011T045602Z-001\pixel-unlock\adb\adb>bootloaderfastboot flash zip update.zip

DNS server not authoritative for zone.

C:\Users\Ch Adeel\Downloads\pixel-unlock-20191011T045602Z-001\pixel-unlock\adb\adb>fastboot flash zip update.zip

htc_fastboot v3.1.0.1 (2016-10-25)

found large-zip header, file count: 6

processing file 1/6...

sending 'zip' (0 KB)...

FAILED (remote: GetVar Variable Not found)

finished. total time: -0.000s

htc_fastboot finished. total time: 1.081s

C:\Users\Ch Adeel\Downloads\pixel-unlock-20191011T045602Z-001\pixel-unlock\adb\adb>fastboot flash zip update.zip

htc_fastboot v3.1.0.1 (2016-10-25)

found large-zip header, file count: 6

processing file 1/6...

sending 'zip' (0 KB)...

FAILED (remote: GetVar Variable Not found)

finished. total time: 0.000s

htc_fastboot finished. total time: 0.988s

C:\Users\Ch Adeel\Downloads\pixel-unlock-20191011T045602Z-001\pixel-unlock\adb\adb>fastboot flash zip update.zip

htc_fastboot v3.1.0.1 (2016-10-25)

found large-zip header, file count: 6

processing file 1/6...

sending 'zip' (0 KB)...

FAILED (remote: GetVar Variable Not found)

finished. total time: 0.000s

htc_fastboot finished. total time: 0.966s

C:\Users\Ch Adeel\Downloads\pixel-unlock-20191011T045602Z-001\pixel-unlock\adb\adb>fastboot flash zip update.zip

htc_fastboot v3.1.0.1 (2016-10-25)

found large-zip header, file count: 6

processing file 1/6...

sending 'zip' (0 KB)...

FAILED (remote: GetVar Variable Not found)

finished. total time: 0.000s

htc_fastboot finished. total time: 1.005s

C:\Users\Ch Adeel\Downloads\pixel-unlock-20191011T045602Z-001\pixel-unlock\adb\adb>fastboot flash zip update.zip

htc_fastboot v3.1.0.1 (2016-10-25)

found large-zip header, file count: 6

processing file 1/6...

sending 'zip' (0 KB)...

FAILED (remote: GetVar Variable Not found)

finished. total time: 0.000s

htc_fastboot finished. total time: 1.000s

C:\Users\Ch Adeel\Downloads\pixel-unlock-20191011T045602Z-001\pixel-unlock\adb\adb>fastboot flash zip update.zip

htc_fastboot v3.1.0.1 (2016-10-25)

found large-zip header, file count: 6

processing file 1/6...

sending 'zip' (0 KB)...

FAILED (remote: GetVar Variable Not found)

finished. total time: 0.000s

htc_fastboot finished. total time: 0.961s

C:\Users\Ch Adeel\Downloads\pixel-unlock-20191011T045602Z-001\pixel-unlock\adb\adb>fastboot flash zip update.zip

htc_fastboot v3.1.0.1 (2016-10-25)

found large-zip header, file count: 6

processing file 1/6...

sending 'zip' (0 KB)...

FAILED (remote: GetVar Variable Not found)

finished. total time: -0.000s

htc_fastboot finished. total time: 0.984s

C:\Users\Ch Adeel\Downloads\pixel-unlock-20191011T045602Z-001\pixel-unlock\adb\adb>fastboot flash zip update.zip

htc_fastboot v3.1.0.1 (2016-10-25)

found large-zip header, file count: 6

processing file 1/6...

sending 'zip' (0 KB)...

FAILED (remote: GetVar Variable Not found)

finished. total time: 0.000s

htc_fastboot finished. total time: 0.976s

C:\Users\Ch Adeel\Downloads\pixel-unlock-20191011T045602Z-001\pixel-unlock\adb\adb>fastboot flash zip update.zip

htc_fastboot v3.1.0.1 (2016-10-25)

found large-zip header, file count: 6

processing file 1/6...

sending 'zip' (0 KB)...

FAILED (remote: GetVar Variable Not found)

finished. total time: 0.000s

htc_fastboot finished. total time: 0.984s

C:\Users\Ch Adeel\Downloads\pixel-unlock-20191011T045602Z-001\pixel-unlock\adb\adb>fastboot flash zip update.zip

htc_fastboot v3.1.0.1 (2016-10-25)

found large-zip header, file count: 6

processing file 1/6...

sending 'zip' (0 KB)...

FAILED (remote: GetVar Variable Not found)

finished. total time: -0.000s

htc_fastboot finished. total time: 0.990s

C:\Users\Ch Adeel\Downloads\pixel-unlock-20191011T045602Z-001\pixel-unlock\adb\adb>fastboot flash zip update.zip

htc_fastboot v3.1.0.1 (2016-10-25)

found large-zip header, file count: 6

processing file 1/6...

sending 'zip' (0 KB)...

FAILED (remote: GetVar Variable Not found)

finished. total time: 0.000s

htc_fastboot finished. total time: 0.974s

C:\Users\Ch Adeel\Downloads\pixel-unlock-20191011T045602Z-001\pixel-unlock\adb\adb>fastboot flash zip update.zip

htc_fastboot v3.1.0.1 (2016-10-25)

found large-zip header, file count: 6

processing file 1/6...

sending 'zip' (0 KB)...

FAILED (remote: GetVar Variable Not found)

finished. total time: -0.000s

htc_fastboot finished. total time: 0.984s

C:\Users\Ch Adeel\Downloads\pixel-unlock-20191011T045602Z-001\pixel-unlock\adb\adb>fastboot flash zip update.zip

htc_fastboot v3.1.0.1 (2016-10-25)

found large-zip header, file count: 6

processing file 1/6...

sending 'zip' (0 KB)...

FAILED (remote: GetVar Variable Not found)

finished. total time: 0.000s

htc_fastboot finished. total time: 1.434s

C:\Users\Ch Adeel\Downloads\pixel-unlock-20191011T045602Z-001\pixel-unlock\adb\adb>fastboot flash zip update.zip

htc_fastboot v3.1.0.1 (2016-10-25)

< waiting for device >

found large-zip header, file count: 6

processing file 1/6...

sending 'zip' (0 KB)...

FAILED (remote: GetVar Variable Not found)

finished. total time: 0.000s

htc_fastboot finished. total time: 1.444s

C:\Users\Ch Adeel\Downloads\pixel-unlock-20191011T045602Z-001\pixel-unlock\adb\adb>fastboot flash zip update.zip

htc_fastboot v3.1.0.1 (2016-10-25)

found large-zip header, file count: 6

processing file 1/6...

sending 'zip' (0 KB)...

FAILED (remote: GetVar Variable Not found)

finished. total time: -0.000s

htc_fastboot finished. total time: 0.984s

Some hidden oem fastboot commands

http://https://forum.xda-developers....exist-t3497182