func (ua *UIAutomator) Unlock() error {
	var done = make(chan bool)
	go func() {
		time.AfterFunc(
			time.Duration(1000)*time.Millisecond,
			func() {
				done <- true
			},
		)
		ua.Shell(
			[]string{"am start -W -n com.github.uiautomator/.IdentifyActivity -e theme black"},
			0,
		)
	}()
	<-done
	return ua.Press("home")
}
/*
Unblock the device
package uiautomator
import (
	"reflect"
	"time"
)
func (ua *UIAutomator) WakeUp() error {
	return ua.post(
		&RPCOptions{
			Method: "wakeUp",
			Params: []interface{}{},
		},
		nil,
		nil,
	)
}
func (ua *UIAutomator) Sleep() error {
	return ua.post(
		&RPCOptions{
			Method: "sleep",
			Params: []interface{}{},
		},
		nil,
		nil,
	)
}
func (ua *UIAutomator) checkScreenStatus(wakeUpOeSleep bool) (bool, error) {
	info, err := ua.GetDeviceInfo()
	if err != nil {
		return false, err
	}
	return info.ScreenOn == wakeUpOeSleep, nil
}
func (ua *UIAutomator) IsWakeUp() (res bool, err error) {
	res, err = ua.checkScreenStatus(true)
	return
}
func (ua *UIAutomator) IsSleep() (res bool, err error) {
	res, err = ua.checkScreenStatus(false)
	return
}
func (ua *UIAutomator) Press(key string) error {
	return ua.post(
		&RPCOptions{
			Method: "pressKey",
			Params: []interface{}{key},
		},
		nil,
		nil,
	)
}
func (ua *UIAutomator) PressKeyCode(key int, meta interface{}) error {
	params := []interface{}{key}
	if reflect.TypeOf(meta).Kind() == reflect.Int {
		params = append(params, meta)
	}
	return ua.post(
		&RPCOptions{
			Method: "pressKeyCode",
			Params: params,
		},
		nil,
		nil,
	)
}