6

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

source

ADB Shell: Wipe Data

adb shell
wipe data
/system/bin/sh: wipe: not found

source

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)

source

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)

source

So the question is, what are my options to wipe my phone?

3
  • You could simply do an fastboot oem unlock reboot and then relock the bootloader. Unlocking erases all the user data.
    – Robert
    Commented Jul 25, 2018 at 17:51
  • I think I would need to start the oem unlock in developers settings in the OS, no?
    – Patrick
    Commented Jul 25, 2018 at 18:51
  • Right I forgot that, on current devices AFAIR you have to do so.
    – Robert
    Commented Jul 26, 2018 at 7:45

1 Answer 1

1

I finally got it to work. The base of the solution was to use adb screen casting. I was lucky, the apk was installed and I could remote control the device and made a OS factory reset.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .