mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-06 00:09:37 +08:00
feat: unlock android device screen; brighten android device screen
This commit is contained in:
@@ -194,6 +194,10 @@ func (dev *AndroidDevice) Options() (deviceOptions []AndroidDeviceOption) {
|
||||
func (dev *AndroidDevice) Init() error {
|
||||
dev.d.RunShellCommand("ime", "enable", "io.appium.settings/.UnicodeIME")
|
||||
dev.d.RunShellCommand("rm", "-r", config.DeviceActionLogFilePath)
|
||||
// unlock android device screen
|
||||
dev.d.RunShellCommand("input", "keyevent", "82")
|
||||
// brighten android device screen
|
||||
dev.d.RunShellCommand("input", "keyevent", "224")
|
||||
|
||||
if dev.UIA2 {
|
||||
// uiautomator2 server must be started before
|
||||
|
||||
Reference in New Issue
Block a user