Can I find out if the iPhone has an access code?

I am developing an application that asks for a PIN when it starts. It's not great, but I can live with him. The problem is that they ask me to ask for a PIN every time the phone also wakes up. In combination with the OS requesting your access code, this is too much.

Is there a legal way to determine if the phone has a password to wake up, so I can skip the PIN code requirement in this case? I don’t want to know the PIN code, and I don’t care if it was blocked (for example, if the phone slept very briefly), I just want to know that the data is somehow “protected”.

+6
security iphone locking
source share
2 answers

For the AppStore or not? If the first, in no way.


In 3.x, the access code is stored in the keychain, which means that you need to get into the SpringBoard process to determine if the access code exists and is not empty. If you are in SpringBoard, a call -[SBAwayController isPasswordProtected] will determine if the device has an access code.

+5
source share

I created a very ugly workaround for the same problem.

0
source share

All Articles