HTC One M9 owners beware - the pattern lock on your phone is very, very easy to bypass, even on the latest version. The trick is dead simple: 1) Use the Quick toggles on the lock screen to toggle Wi-Fi (on or off, doesn't matter) 2) Done Did you expect more steps? Well, there aren't any. For whatever reason the HTC One M9 just skips over the pattern lock when the state of the Wi-Fi changes. When it disconnects, it unlocks the screen. When it connects to a network, it unlocks the screen. If you have an M9, please try this method and report in the comments whether it works (including the ROM...
Source: http://www.gsmarena.com/htc_one_m9_pattern_lock_is_very_easy_to_bypass-news-14908.php