How many times a day do you push code to your phone and then pick it up, press the power button to wake the device and then swipe to unlock? If you're like me that answer is probably hundreds!
By adding a couple of permissions to your src/debug/AndroidManifest.xml file and adding a helper class in src/debug/... that can be called from your activities, you can wakeup and unlock the device automatically when you push code to your phone.
When i launch this on my Nexus 5 with Lollipop 5.0.1, the phone became bugged.
Home button stop to work, app icons disappear from screen and so on. The only thing i can do in this case is restart the phone