python的: weditor 比较好用, 会装一个app助手,xPathlate, 可以判断是否resourceid是否唯一
安装步骤:
1.先安装UIAutomator2
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple UIAutomator2
2.cmd命令 python -m uiautomator2 init
如果报错,杀掉adb进程先:adb shell ps |find "uiautomator"
adb shell kill 4924
adb root
3.cmd命令 pip install weditor 。
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple weditor==0.6.3
cmd输入weditor