Skip to content

[REPAIR] 关于使用ADB命令出现问题的解决方案 #6

@sh3d0ww01f

Description

@sh3d0ww01f

#5

造成 raise ERROR的原因如下

Image

实则为adb命令报错了

adb.exe: unknown command input

根据本地测试 adb 现在改为 adb shell input tap 类似的调用方案

Image

如下图 adb shell 中有input tap 这个字段

Image

解决方案

self.utils.run_command(['-c' 替换为 self.utils.run_command(['-c', "shell" 即可解决

retcode 为0 证明无报错

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions