1

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?

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

I finally got it to work. The base of the solution was to use https://www.vysor.io/ (adb screen casting). I was lucky, the apk installed and I could remote controll the device and made a OS factory reset.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.