mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-22 07:03:43 +08:00
Chore: [ALAS] Add method uninstall_uiautomator2
This commit is contained in:
@@ -242,6 +242,17 @@ class Uiautomator2(Connection):
|
|||||||
hierarchy = etree.fromstring(content.encode('utf-8'))
|
hierarchy = etree.fromstring(content.encode('utf-8'))
|
||||||
return hierarchy
|
return hierarchy
|
||||||
|
|
||||||
|
def uninstall_uiautomator2(self):
|
||||||
|
logger.info('Removing uiautomator2')
|
||||||
|
for file in [
|
||||||
|
'app-uiautomator.apk',
|
||||||
|
'app-uiautomator-test.apk',
|
||||||
|
'minitouch',
|
||||||
|
'minitouch.so',
|
||||||
|
'atx-agent',
|
||||||
|
]:
|
||||||
|
self.adb_shell(["rm", f"/data/local/tmp/{file}"])
|
||||||
|
|
||||||
@retry
|
@retry
|
||||||
def resolution_uiautomator2(self, cal_rotation=True) -> t.Tuple[int, int]:
|
def resolution_uiautomator2(self, cal_rotation=True) -> t.Tuple[int, int]:
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user