4

I have a Google Nexus 6P with Copperhead OS installed on it. I forgot the pattern to unlock the screen. Is there any way I can recover (a part) of the data on my phone? I am pretty sure that the answer is going to be "no way", but I just want to ask to make sure, before I wipe the phone.

I DO have a fingerprint in the phone, which works. Unfortunately - for some security reason - it wants the pattern as well.

Maybe I can add, that I kind of remember the swipe pattern. I am sure about a middle part, but not about the beginning and the end. Unfortutely I have tried so many combinations by now (even keeping a book), that I have to wait 240 seconds now until I am allowed to enter the next try. (First I had to wait 20, then 30, 60, 120 seconds, now 240.) I had about 55 tries by now.

2

What you can do since you have such an open phone is unlock the bootloader temporarily and flash a custom recovery to remove the password related files. Here's how:

  1. Unlock your bootloader - 1
  2. Install a custom recovery - 1
  3. Use the custom recovery's "File Manager" feature to remove the following files - 2:
/data/system/password.key
/data/system/pattern.key
/data/system/locksettings.db
/data/system/locksettings.db-shm
/data/system/locksettings.db-wal
  1. Reboot your device
  2. It should now have no password/pattern, enjoy your device
  3. Reinstall stock recovery (should be automatically reinstalled when you reboot) and relocking bootloader - 3 (Optional)
4
  • "This will erase all user data from the device!" have you read the instructions you shared?
    – alecxs
    Jul 23 '20 at 2:56
  • He have Copperhead OS, he have his bootloader unlocked.
    – Tipz Team
    Jul 23 '20 at 7:31
  • 1
    main purpose of CopperheadOS is Security therefore the last step in official install instructions is locking bootloader
    – alecxs
    Jul 23 '20 at 11:42
  • even on unlocked bootloader this method would cause data loss (for FBE file-based encryption in general) but in this case even for FDE full disk encryption, because CopperheadOS generates separate disk encryption keys for each user profile based on login credentials which get unrecoverable on deleted locksettings.db (besides this TWRP might not work on fingerprint but asking for pattern instead)
    – alecxs
    Jul 23 '20 at 12:04

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.