List of all combinations for the Android pattern lock
(1)(2)(3)
(4)(5)(6)
(7)(8)(9)
- 4 dots: 1,624 combinations
- up to 5 dots: 8,776 combinations
- up to 6 dots: 34,792 combinations
- up to 7 dots: 107,704 combinations
- up to 8 dots: 248,408 combinations
- up to 9 dots: 389,112 combinations
- exactly 4 dots: 1,624 combinations
- exactly 5 dots: 7,152 combinations
- exactly 6 dots: 26,016 combinations
- exactly 7 dots: 72,912 combinations
- exactly 8 dots: 140,704 combinations
- exactly 9 dots: 140,704 combinations
List of possible combinations (Full list)
1234
12345
123456
1234567
12345678
123456789
1234568
12345687
123456879
12345689
...
For an exact number of connected dots (Filtered lists)
# Exactly 4 connected dots
$ grep -E '^.{4}$' 'combinations/all.txt'
For a minimum number of connected dots (Filtered lists)
# At least 8 connected dots
$ grep -E '^.{8,}$' 'combinations/all.txt'
For a maximum number of connected dots (Filtered lists)
# At most 7 connected dots
$ grep -E '^.{,7}$' 'combinations/all.txt'
For a range of connected dots (Filtered lists)
# Between 5 (inclusive) and 6 (inclusive) connected dots
$ grep -E '^.{5,6}$' 'combinations/all.txt'
For a specific dot being connected (Filtered lists)
# Dot at position (8) being connected
$ grep -F '8' 'combinations/all.txt'
# Dots at positions (5) and (7) being connected
$ cat 'combinations/all.txt' | grep -F '5' | grep -F '7'
Copyright (c) delight.im <[email protected]>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.