UIautomator2-手动init(安装)指南
VERSION=1.1.5 # 请换成最新版本 wget https://github.com/openatx/android-uiautomator-server/releases/download/$VERSION/app-uiautomator.apk wget https://github.com/openatx/android-uiautomator-server/releases/download/$VERSION/app-uiautomator-test.apk adb install app-uiautomator.apk adb install app-uiautomator-test.apk
VERSION=0.4.8 # 请换成最新版本 wget https://github.com/openatx/atx-agent/releases/download/$VERSION/atx-agent_$VERSION_linux_armv6.tar.gz tar -xzvf atx-agent_$VERSION.tar.gz adb push atx-agent /data/local/tmp/ adb shell chmod 755 /data/local/tmp/atx-agent # 注: 如果在/data/local/tmp 目录不好使,就push到/data/data/com.android.shell目录下 /data/local/tmp/atx-agent version # 查看版本 /data/local/tmp/atx-agent server -d # # 启动atx-agent并切换到后台运行
adb shell rm /data/local/tmp/minicap adb shell rm /data/local/tmp/minicap.so adb shell rm /data/local/tmp/minitouch adb shell /data/local/tmp/atx-agent server --stop adb shell rm /data/local/tmp/atx-agent adb uninstall com.github.uiautomator adb uninstall com.github.uiautomator.test