Is there any way to have the lock-screen unlock as soon as I enter the correct code? For instance, on my iPod touch if I type the 4 digit passcode, it'll unlock as soon as I hit that fourth digit. Is there any equivalent of this on Android? On my Droid X2, I have to enter the PIN and then hit the arrow-like return button.


No, because unlike the iphone/ipod touch, the unlock PIN can be longer then 4 digits. Android allows between 4 and 16 digits for the lock screen. Since it is "unknown" what the length of your pin is, you have to press OK to indicate "you are done".

  • 2
    Ahh. Too bad it just doesn't compare the hashes on each tap. – Kevin Mark Jun 6 '11 at 18:52
  • iPhone has the same behavior above but also offers a 4 and 6 key lock. No reason Android couldn't also offer both. – William Oct 14 '18 at 21:42

Some of the alternate lock types unlock immediately.

The built-in Android pattern lock, where you do a "join the dots" between the nine dots displayed on the screen unlocks immediately your finger lifts off the screen (presuming that you've got the pattern right).

  • he's talking about the PIN code.. – Irfan Jun 7 '11 at 4:25
  • 1
    @Power Clearly yes, and I'm talking about alternates to the PIN code that do what he wants. – GAThrawn Jun 7 '11 at 8:47

Yes, the question is old but remains valid for current time as well, so I'm answering keeping currently relevant Android versions in mind.

If your Android is rooted, has a compatible Xposed Framework1 installed, then provided that your Android can run GravityBox Xposed module, the latter can solve the problem.


  1. Install GravityBox relevant to your Android version, enable the module under Xposed Installer app and reboot the device.
  2. Launch GravityBox, go to Lockscreen tweaks and enable Quick unlock. Once you enable it, the previously grayed out entry named PIN length would become available for tweak. Set it to the length your current PIN/Password consists of.

Changes would take place immediately.

(Click image to enlarge)


Official GravityBox versions:

1 Xposed Framework: Android 4.x, Android 5.x and 6.x


Handcent SMS has a lockscreen with PIN input that also has similar functionality. Entering the correct code auto unlocks when the last correct digit is entered without the need to press OK.


I came across the Next Lock Screen which has its own pin/pattern system where you don't have to press return/enter. You have to enable the Next Lock Screen PIN/pattern-system and disable the android PIN/pattern.


On OnePlus/OxygenOS phones, this setting can be changed when changing the PIN itself. So if you want to switch to auto-enter versus manual enter, do the procedure for changing the PIN and you will have a checkbox while entering the PIN to change this setting.


yes there is a way to get unlocked without tapping "ok" soon as you finish your pin. go to security settings and on pin code there will be an option saying "confirm pin without tapping ok" check that and u r good to go.

  • 1
    Hi, since Android is full of customization, it might be more helpful if you could mention the device model and the Android version which has this feature. Thanks! – Andrew T. Feb 26 at 0:42

The Cyanogenmod (checked in CM10) lock screen also allows to unlock as soon as you enter the correct code.

  • That's a nice feature of CyanogenMod. But the OP doesn't have CyanogenMod installed, so it won't help him specifically. – Stephen Schrauger Oct 22 '14 at 13:27
  • This close to what I was looking for. I updated to CM13 and can no longer find this option. – Steven C. Howell Apr 5 '16 at 20:42

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.