mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 14:27:00 +08:00
Add: adb shell over atx agent
This commit is contained in:
@@ -7,7 +7,7 @@ from adbutils.errors import AdbError
|
||||
from module.base.utils import *
|
||||
from module.device.connection import Connection
|
||||
from module.device.method.utils import (RETRY_DELAY, RETRY_TRIES,
|
||||
handle_adb_error, recv_all)
|
||||
handle_adb_error)
|
||||
from module.exception import RequestHumanTakeover, ScriptError
|
||||
from module.logger import logger
|
||||
|
||||
@@ -172,9 +172,7 @@ class AScreenCap(Connection):
|
||||
|
||||
@retry
|
||||
def screenshot_ascreencap(self):
|
||||
stream = self.adb_shell([self.config.ASCREENCAP_FILEPATH_REMOTE, '--pack', '2', '--stdout'], stream=True)
|
||||
|
||||
content = recv_all(stream)
|
||||
content = self.adb_shell([self.config.ASCREENCAP_FILEPATH_REMOTE, '--pack', '2', '--stdout'], stream=True)
|
||||
|
||||
return self.__process_screenshot(content)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user