I want to sell my Nexus 6P for parts, but I want to wipe it first. The screen of my Nexus 6P broke (internally, the touchscreen MIGHT be fine, idk). The phone is full-disk encrypted with a PIN and the bootloader is locked (no root). I can't fully boot the phone since it will be stuck on the FDE pin entry.
As we know the Nexus 6P does not have external monitor support - so this is not an option. I do have ADB and Fastboot access, but commands like
fastboot erase userdata
are blocked, since the bootloader is locked. Also various adb shell
commands did not work.
What I tried:
ADB Shell: Recovery --wipe_data
adb shell
recovery --wipe_data
/system/bin/sh: recovery: not found
ADB Shell: Wipe Data
adb shell
wipe data
/system/bin/sh: wipe: not found
Fastboot: Wipe
adb devices # Check the phone is running
adb reboot bootloader
# Wait a few seconds
fastboot devices # Check the phone is in bootloader
fastboot -w # Wipe user data
Erasing 'userdata' FAILED (remote: device is locked. Cannot erase)
Fastboot: Erase
adb devices # Check the phone is running
adb reboot bootloader
# Wait a few seconds
fastboot devices # Check the phone is in bootloader
fastboot erase userdata
Erasing 'userdata' FAILED (remote: device is locked. Cannot erase)
So the question is, what are my options to wipe my phone?
fastboot oem unlock
reboot and then relock the bootloader. Unlocking erases all the user data.