Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there any way to avoid pressing ok on the stock Android pin screen? There was an option to do this in cyanogenmod (9?) for my Nexus S 4G but it's not in stock (which I'm using now, unrooted). Is there any way to make it so that pressing the correct code automatically unlocks it, without having to press ok?

share|improve this question
up vote 2 down vote accepted

There's a reason why pressing OK has to be done and cannot be avoided is this - the PIN number can be of any length of your preference, and by pressing OK that is signalling the intention that There I have all the PIN digits entered, now Android, please verify!

If there was a way to avoid pressing OK, that would impose the restriction on the length of the PIN digits used, once the length of digits is reached (for example the PIN can be four digits long), then it would be automatic, but unfortunately in this case, no, you do have to press OK.

share|improve this answer
So there's no way to do it at all on stock? Because like I said, cyanogenmod has this option. – mitwilsch Sep 12 '12 at 19:13
It could be done by modifying the source in AOSP, and re-build the ROM for your handset :) – t0mm13b Sep 12 '12 at 19:14

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.