{"id":1052,"date":"2013-09-20T19:00:27","date_gmt":"2013-09-20T13:30:27","guid":{"rendered":"http:\/\/ravi.rajiniravi.com\/blog\/?p=1052"},"modified":"2013-09-20T14:40:54","modified_gmt":"2013-09-20T09:10:54","slug":"of-combinations-9-point-pattern-unlock","status":"publish","type":"post","link":"https:\/\/ravi.rajiniravi.com\/blog\/2013\/09\/of-combinations-9-point-pattern-unlock\/","title":{"rendered":"# of Combinations &#8211; 9 point pattern unlock"},"content":{"rendered":"<p>Lots of people use the pattern unlock feature on Android phones. Don\u2019t know why this liking for Pattern over Pin or Password. But I guess that it has to do with the fact that pattern unlock is unique to Android\u2019s vs Windows Phones or iPhones.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-1053 aligncenter\" alt=\"PatternUnlock\" src=\"http:\/\/ravi.rajiniravi.com\/blog\/wp-content\/uploads\/2013\/09\/PatternUnlock-247x440.png\" width=\"247\" height=\"440\" srcset=\"https:\/\/ravi.rajiniravi.com\/blog\/wp-content\/uploads\/2013\/09\/PatternUnlock-247x440.png 247w, https:\/\/ravi.rajiniravi.com\/blog\/wp-content\/uploads\/2013\/09\/PatternUnlock-348x620.png 348w, https:\/\/ravi.rajiniravi.com\/blog\/wp-content\/uploads\/2013\/09\/PatternUnlock.png 720w\" sizes=\"auto, (max-width: 247px) 100vw, 247px\" \/><\/p>\n<p>Anyways, ever wondered how many combinations are possible on these 9 points arranged 3 x 3? We had an interesting conversation over evening tea one day and I sat to do some math.<\/p>\n<p>First, the conditions for pattern lock.<\/p>\n<ol>\n<li>The pattern should connect at least four dots.<\/li>\n<li>The dots in the pattern must be distinct.<\/li>\n<li>If the line segment connecting any two consecutive dots in the pattern passes through any other dots, the other dots must have previously been in the pattern.\n<ul>\n<ul>\n<li>Not many know of this rule. People usually don\u2019t cross over an already connected point.<\/li>\n<\/ul>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-1055\" alt=\"override\" src=\"http:\/\/ravi.rajiniravi.com\/blog\/wp-content\/uploads\/2013\/09\/override.png\" width=\"55\" height=\"53\" align=\"middle\" \/><\/p>\n<ul>\n<ul>\n<li>The other thing which most of the people don\u2019t know is the possibility to go thru the gap and join a point which is not immediately adjacent..<\/li>\n<\/ul>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-medium size-full wp-image-1056\" alt=\"knight\" src=\"http:\/\/ravi.rajiniravi.com\/blog\/wp-content\/uploads\/2013\/09\/knight.png\" width=\"58\" height=\"57\" \/><\/li>\n<\/ol>\n<p>The number of combinations possible with 4 to 9 dots are\u2026<\/p>\n<ul>\n<li>4 dots, 1,624 combinations<\/li>\n<li>5 dots, 7,152 combinations<\/li>\n<li>6 dots, 26,016 combinations<\/li>\n<li>7 dots, 72,912 combinations<\/li>\n<li>8 dots, 140,704 combinations<\/li>\n<li>9 dots, 140,704 combinations<\/li>\n<\/ul>\n<p>So the total number of possible combinations are 389,112.<\/p>\n<p>Now, the second question is, if you brute force to unlock a pattern, what is the maximum time taken? Consider the phone doesn\u2019t lock itself out permanently but locks for 30 seconds after 5 tries. Incidentally, you are allowed 5 tries before the lock screen is suspended for 30 seconds (both PIN and pattern). In pattern, the limit for tries is 20 before it locks out completely and asks for the Google account and password.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Lots of people use the pattern unlock feature on Android phones. Don\u2019t know why this liking for Pattern over Pin or Password. But I guess that it has to do with the fact that pattern unlock is unique to Android\u2019s vs Windows Phones or iPhones. Anyways, ever wondered how many combinations are possible on these [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":3979,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"book_review_cover_url":"","book_review_title":"","book_review_series":"","book_review_author":"","book_review_genre":"","book_review_isbn":"","book_review_publisher":"","book_review_release_date":"","book_review_format":"","book_review_pages":"","book_review_source":"","book_review_rating":"","book_review_summary":"","_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1052","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"jetpack_featured_media_url":"https:\/\/ravi.rajiniravi.com\/blog\/wp-content\/uploads\/2021\/01\/photo-1547139559-c89c59d117611.jpg","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ravi.rajiniravi.com\/blog\/wp-json\/wp\/v2\/posts\/1052","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ravi.rajiniravi.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ravi.rajiniravi.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ravi.rajiniravi.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ravi.rajiniravi.com\/blog\/wp-json\/wp\/v2\/comments?post=1052"}],"version-history":[{"count":6,"href":"https:\/\/ravi.rajiniravi.com\/blog\/wp-json\/wp\/v2\/posts\/1052\/revisions"}],"predecessor-version":[{"id":1059,"href":"https:\/\/ravi.rajiniravi.com\/blog\/wp-json\/wp\/v2\/posts\/1052\/revisions\/1059"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ravi.rajiniravi.com\/blog\/wp-json\/wp\/v2\/media\/3979"}],"wp:attachment":[{"href":"https:\/\/ravi.rajiniravi.com\/blog\/wp-json\/wp\/v2\/media?parent=1052"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ravi.rajiniravi.com\/blog\/wp-json\/wp\/v2\/categories?post=1052"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ravi.rajiniravi.com\/blog\/wp-json\/wp\/v2\/tags?post=1052"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}