python+uiautomator2安装本地APK

1)由于uiautomator2目前只支持从URL安装APK,那么要安装本地的APK就需要借助于Python的os函数

2)具体方式如下:

import os
os.system("adb install E:\\测试资源\\apk\\baiduliulanqi.apk")

3)uiautomator2安装APK方式

d.app_install('http://some-domain.com/some.apk')

备注:https://www.jianshu.com/p/3bacaeab06b2 //adb命令大全
posted @ 2019-06-12 11:39  xmmc  阅读(2275)  评论(0编辑  收藏  举报