I forgot my oneplus one pin. I have tried using google device manager and have tried putting in my pin (150+ times) to be prompted for my google account.

I was thinking if it would be possible for me to enable usb debugging and use adb to unlock my oneplus one

I was trying to do what the third answer in this thread suggests How to enable USB Debugging in Android if forgotten pattern for screen-unlock?

but am unable to follow, specifically, i don't know what to do when it says to mount "Data".

thanks in advance.

  • No chance with a stock Cyanogen Recovery since shell access is not available. Also, my answer noted that the answer is tested on devices running custom Recovery.
    – Firelord
    Aug 10, 2015 at 10:04
  • sorry i misunderstood :(
    – singh
    Aug 10, 2015 at 20:18

2 Answers 2


You can boot into recovery, then adb should be enabled by default. But I don't know what you want to do to reset your code. If you would have rooted the phone, then you may be able to do that but I think you can't reset the code from adb. The only thing you may do is, first make an adb backup, then do a factory reset and get the data back from your backup.

  • Comments are not for extended discussion; this conversation has been moved to chat.
    – Andrew T.
    Oct 13, 2021 at 2:03

You can boot into recovery and maybe gain an adb shell as root. Then, you can just remove /data/system/gatekeeper.password.key using the command rm /data/system/gatekeeper.password.key in the shell. Then any pin/password should unlock the device.

If you can't open a shell as root, then maybe you can use https://github.com/amarullz/AROMA-Filemanager/releases/tag/2.00 . Just put it on your phone (with sideload (?)) or on a usb key, that you will connect using an OTG cable. Once done, you just "install" that zip and you get GUI file manager and you can easily delete the /data/system/gatekeeper.password.key.

You must log in to answer this question.

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