AzurLaneAutoScript
AzurLaneAutoScript copied to clipboard
Opt: Restart adb when restart game, fixed #1508 Q1
先看一下 #1167,重启adb有一些要注意的地方。
只重启uiautomator2会有什么问题吗,搜索了一下国王的issue和pr,没有看到有相关的记录呢
u2 是每个模拟器独立的,可以重启
在module/device/connection.py里有一个install_uiautomator2(),为什么在device/adb.py里不使用这个函数,而要重新写一遍这个逻辑呢
你想说的是 deploy/adb.py 吧,deploy目录下是Alas安装的时候需要使用的,此时Alas主体还未被下载
判断如果click_count==6 或者连续两个click_count>=4就尝试重新安装uiautomator2. 追上了最新的bug_fix分支