We can only answer this question if you're talking about the Screen lock. It's typically something that a user will have to set manually, if he decides to activate either the PIN or Password lock under the Security option in the Settings menu. Otherwise, there wouldn't be any unlock codes, and it would be possible to unlock the phone simply by sliding the lock icon across the screen. Did this answer your question?