refactor: android device Init, replace run shell

This commit is contained in:
lilong.129
2024-09-25 22:46:45 +08:00
parent f5e55ef49d
commit eac5e8368b
2 changed files with 3 additions and 4 deletions

View File

@@ -1 +1 @@
v5.0.0-beta-2409252241
v5.0.0-beta-2409252246

View File

@@ -189,9 +189,8 @@ type AndroidDevice struct {
}
func (dev *AndroidDevice) Init() error {
myexec.RunCommand("adb", "-s", dev.SerialNumber, "shell",
"ime", "enable", "io.appium.settings/.UnicodeIME")
myexec.RunCommand("adb", "-s", dev.SerialNumber, "shell", "rm", "-r", env.DeviceActionLogFilePath)
dev.d.RunShellCommand("ime", "enable", "io.appium.settings/.UnicodeIME")
dev.d.RunShellCommand("rm", "-r", env.DeviceActionLogFilePath)
return nil
}