I locked myself out of my phone
4 minute read.
Turns out the Google Pixel has quite some sturdy security with Android 9.0.
How it happened
Last Friday Vhite Rabbit went to the Start-up BW summit. We presented the prototype of an Augmented Reality booth there: basically a digital event booth that works with a Web App and markers stuck all over the booth.
It went really well, apart from the service we used to generate and shorten the QR code for the visitors asking for money after 20 scans. Also, it was just a prototype and many phones ended up not supported.
Due to all of that, we all used my phone for demonstration, which meant I had to change my pattern to something the others could remember (I have an instanely complicated pattern usually).
Exhausted from the event on Saturday, I was unable to remember my usual pattern on Saturday morning. In the delirium I set the pattern to an equally complex one… that I do longer remember, because most of the time I was able to unlock via fingerprint and did not need to remember what the pattern was.
What now?
There is quite a bit of data on that phone that I’d like to save, so what choice do I have but try to unlock the phone to avoid the factory reset.
While trying around I rebooted my phone, which locked me out of most options that would have been better than brute forcing the unlock pattern:
- Deleting
/data/system/gesture.key
- Using Find My Device
Luckily, I’m a developer and have USB debugging enabled. Also luckily, the Android Debug Bridge tool allows you to input anything into the device remotely.
And even more luckily, you can bypass most of the pattern unlock timeout by restarting the phone (28 seconds instead of 960, yay!).
I am now at 1028 tries. Should this ever work out, you will read about it.