AzurLaneAutoScript icon indicating copy to clipboard operation
AzurLaneAutoScript copied to clipboard

Opt: Restart adb when restart game, fixed #1508 Q1

Open Zach8777 opened this issue 3 years ago • 6 comments

Zach8777 avatar Aug 13 '22 21:08 Zach8777

先看一下 #1167,重启adb有一些要注意的地方。

18870 avatar Aug 14 '22 01:08 18870

只重启uiautomator2会有什么问题吗,搜索了一下国王的issue和pr,没有看到有相关的记录呢

Zach8777 avatar Sep 05 '22 01:09 Zach8777

u2 是每个模拟器独立的,可以重启

LmeSzinc avatar Sep 10 '22 07:09 LmeSzinc

在module/device/connection.py里有一个install_uiautomator2(),为什么在device/adb.py里不使用这个函数,而要重新写一遍这个逻辑呢

Zach8777 avatar Sep 25 '22 06:09 Zach8777

你想说的是 deploy/adb.py 吧,deploy目录下是Alas安装的时候需要使用的,此时Alas主体还未被下载

LmeSzinc avatar Sep 30 '22 17:09 LmeSzinc

判断如果click_count==6 或者连续两个click_count>=4就尝试重新安装uiautomator2. 追上了最新的bug_fix分支

Zach8777 avatar Oct 20 '22 18:10 Zach8777