I recently rooted my OnePlus 3 (Android Oreo) and began removing system apps i deemed useless.

At one point i removed the gboard application since i prefer using Swiftkey. At the point of removal there was no problem, however, when i restarted my phone i was prompted with the "please insert pin" screen.

The problem is that the system keyboard does not appear. It is therefore impossible to actually type the pin code.

My question is whether or not is has anything to do with the removal of gboard. If so, where can i find the zip file so i can flash it (i have TWRP installed).

If that isn't the case i would like to know how else i can fix the problem. Is there some way i can type the pin using adb?

  • 1
    I haven't tried it myself but if you have adb debugging toggled 'on' at the device lock screen I wonder if you could instrument keystrokes via adb? – CzarMatt Jan 2 '19 at 18:47
  • I had the same idea, however i couldn't find anything useful. – Kaette Jan 2 '19 at 19:03
  • @czarMatt you can it would be like As far as a shell on the lock screen try: adb shell then input text xxxx where xxxx is pin then input keyevent 66 to hit okay then exit to get out of shell your device maybe unlocked I am not near a computer to test. I am also not sure if keyevent 66 is still okay. They may have changed it to another recent number. – Bo Lawson Jan 2 '19 at 19:49
  • 1
    @BoLawson Yes, that's right. Mappings can be found here: developer.android.com/reference/android/view/KeyEvent If text doesn't work then look up the mappings for each PIN digit and input them one at at time with adb shell input keyevent <int_here> – CzarMatt Jan 2 '19 at 20:03

Your Answer

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

Browse other questions tagged or ask your own question.