mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 13:17:00 +08:00
Opt: Recommend best method in benchmark
This commit is contained in:
@@ -144,3 +144,14 @@ class Connection:
|
||||
except AssertionError:
|
||||
logger.warning('AssertionError when connecting emulator with uiautomator2.')
|
||||
logger.warning('If you are using BlueStacks, you need to enable ADB in the settings of your emulator.')
|
||||
|
||||
def remove_minicap(self):
|
||||
"""
|
||||
Force to delete minicap.
|
||||
|
||||
`minicap` sends compressed images, which may cause detection errors.
|
||||
In most situation, uiautomator won't install minicap on emulators, but sometimes will.
|
||||
"""
|
||||
logger.info('Removing minicap')
|
||||
self.adb_shell(["rm", "/data/local/tmp/minicap"])
|
||||
self.adb_shell(["rm", "/data/local/tmp/minicap.so"])
|
||||
|
||||
Reference in New Issue
Block a user