mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-12 10:49:43 +08:00
feat: 新增oppo手动启动一次settings
This commit is contained in:
@@ -163,7 +163,7 @@ func (dev *AndroidDevice) Init() error {
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to init android device. brand is null %v", err)
|
||||
}
|
||||
if strings.ToLower(brand) == "huawei" {
|
||||
if strings.ToLower(brand) == "oppo" {
|
||||
// 启动一次io.appium.settings。防止oppo设备上切换输入法失败
|
||||
myexec.RunCommand("adb", "-s", dev.SerialNumber, "shell",
|
||||
"monkey", "-p", "io.appium.settings", "-c", "android.intent.category.LAUNCHER", "1")
|
||||
|
||||
Reference in New Issue
Block a user