Google is introducing stronger lock screen security in Android 17 to make PIN and password guessing attacks much harder. The update reduces the number of incorrect attempts allowed before a device is temporarily locked and also adds new features to help genuine users recover access more easily.
The biggest change is the new limit on failed unlock attempts. Android 17 now allows only six incorrect PIN or password attempts in the first minute before lockout restrictions begin. The system gradually increases the waiting period if users continue entering the wrong PIN. Google has also introduced a lifetime limit of 20 failed attempts, after which no further unlock attempts are accepted until the device owner recovers access.
This is a notable change from previous Android versions, which allowed far more incorrect attempts over the same period.
Google says these changes are designed to make brute-force attacks much more difficult, especially against devices protected with weak PINs or passwords.
Android 17 also introduces a small but useful improvement for users who accidentally enter the same wrong PIN multiple times. The operating system can now detect duplicate incorrect entries and will not count them as separate failed attempts. Instead, it displays a message explaining that the repeated incorrect PIN has not been counted again.
Another user-friendly change is the way lockout timers are displayed. Instead of showing a countdown in seconds, Android 17 will display simpler messages such as “Try again in 30 minutes.” This makes it easier for users to understand how long they need to wait before trying again.
Google has also added a recovery shortcut directly on the lock screen. If users are locked out of their device, they can use the shortcut to access account recovery information from another device, making the recovery process easier.
Google first announced these enhanced lock screen protections during The Android Show: I/O Edition in May. The new security measures build on improvements introduced in Android 16 and will be available on supported devices running Android 17.






