Sample Header Ad - 728x90

Using "locksettings" to manage a 4x4 lock pattern?

3 votes
0 answers
581 views
I'm running Android 11 on a Pixel 5. I know about the locksettings --set-pattern ... shell command, but that command only seems to work in a 3x3 pattern space. For example, if the pattern is to start at the upper left and in a clockwise direction to touch each corner of a 3x3 lock-pattern square, I can set that pattern lock as follows (because the pattern dots are numbered 1 through 9) ... locksettings --set-pattern 1397 However, my ROM also offers the option of 4x4, 5x5, and 6x6 pattern spaces (dots numbered 1 through 16 for 4x4, and 1 through 25 for 5x5, and 1 through 36 for 6x6). If I want to do the same clockwise traversal to the corners in a 4x4 pattern space, the numbers would be 1, 4, 16, 13. However, I don't know a way to specify these 4 numeric values to the locksettings --set-pattern ... command. Is there any way to use locksettings --set-pattern ... in a 4x4, 5x5, or 6x6 pattern space? If not, is there any way to run some other shell command(s) under Android 11 to set a lock pattern in a 4x4, 5x5, or 6x6 pattern space? Thank you very much in advance.
Asked by HippoMan (955 rep)
Jan 7, 2023, 07:24 AM
Last activity: Jan 8, 2023, 03:24 AM