public void unlockScreen ( ) { if ( config . commandLogging ) { Log . d ( config . commandLoggingTag , "unlockScreen()" ) ; } final Activity activity = activityUtils . getCurrentActivity ( false ) ; instrumentation . runOnMainSync ( new Runnable ( ) { @ Override public void run ( ) { if ( activity != null ) { activity . getWindow ( ) . addFlags ( WindowManager . LayoutParams . FLAG_DISMISS_KEYGUARD ) ; } } } ) ; }
Unlocks the lock screen .