代码案例 - 常见代码说明

在ATP键盘上面按下搜索键

device.adb_shell('am broadcast -a ZY_EDITOR_CODE --ei code 3')

修改手机输入法为搜狗

--显示当前手机输入法列表
print(device.adb_shell('ime list -s'))

--切换特定的输入法
device.adb_shell('ime set com.sohu.inputmethod.sogou/.SogouIME')

查看当前APP的activity信息

out = device.adb_shell('dumpsys activity top  | grep ACTIVITY')
print(out)
powered by GitbookFile Modify: 2021-03-27 23:14:19

results matching ""

    No results matching ""