TIL: awake and unlock screen when installing app is possible
Here is the link: http://stackoverflow.com/questions/22332513/wake-and-unlock-android-phone-screen-when-compile-and-run-project Here is the answer: One solution: set the following flags in your activity class(es): if (BuildConfig.DEBUG) { // These flags cause the device screen to…