-
Notifications
You must be signed in to change notification settings - Fork 74
feat(device): Add minicap as a high-performance screenshot method (pr-minicap) #387
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BREAKING CHANGE: Version 3 completely removed atx-agent, see https://github.com/openatx/uiautomator2/blob/master/docs/2to3.md
…ager. BREAKING CHANGE: WSA is no longer supported.
Relocates the U2Screenshot class from its dedicated file to the core/device/uiautomator2/uiautomator2.py module. This improves module cohesion by consolidating all uiautomator2-related functionality, including its client and screenshot capabilities, into a single, logical location. It enhances code organization and makes the structure more intuitive.
Relocates the U2Screenshot class from its dedicated file to the core/device/uiautomator2/uiautomator2.py module. This improves module cohesion by consolidating all uiautomator2-related functionality, including its client and screenshot capabilities, into a single, logical location. It enhances code organization and makes the structure more intuitive.
…e-refactor) Consolidates device interaction logic into unified client classes, improving code organization and reducing redundancy. This change merges separate control and screenshot components for ADB and Scrcpy into single, cohesive client interfaces. Key changes: - AdbClient now handles both control and screenshot functionalities. - ScrcpyClient integrates control and screenshot logic, replacing the separate ScrcpyControl and ScrcpyScreenshot classes. - Removed the redundant U2Screenshot class. - Updated core/device/Control.py and core/device/Screenshot.py to utilize the new consolidated client architecture. - Renamed core/device/screenshot/mss.py to core/device/windows/mss.py.
…factor) The device interaction logic has been refactored to merge screenshot and control functionalities into a single class. - `core/device/Control.py` has been deleted. - `core/device/Screenshot.py` has been renamed to `core/device/Device.py` and now encapsulates all methods for both capturing screenshots and performing control actions (click, swipe, scroll, etc.). - The `Baas_thread` now instantiates a single `Device` object, simplifying its interaction with the underlying device. This improves code organization and reduces complexity by providing a unified interface for device operations.
uiautomator2==3.4.0 depends on adbutils>=2.9.3,<2.10.0, so it requires a dependency version bump
…pr-device-refactor) Consolidate NemuControl and NemuScreenshot into a unified NemuClient. This moves all MuMu Player 12 interaction logic to core/device/nemu/nemu.py, reducing code duplication and improving maintainability. The NemuClient now handles both control and screenshot operations, including enhanced auto-detection of the emulator path. Similarly, PyautoguiControl and PyautoguiScreenshot are merged into a single PyautoguiClient in core/device/windows/pyautogui.py. These changes simplify the Device class's initialization logic by using a single client instance for both control and screenshot methods, leading to a cleaner and more consistent architecture.
…les (pr-device-refactor)
…-minicap) This commit introduces support for minicap as a new screenshot method. Minicap is a fast and efficient tool for capturing display frames from Android devices, which can significantly improve the performance and reliability of image acquisition for the automation script. Changes include: - New `MinicapClient` in `core/device/openstf/minicap.py` handles minicap installation, process management, and frame capturing. - `default_config.py` updated to list "minicap" as an available screenshot method. - `core/device/screenshot.py` integrates `MinicapClient` for use.
…ove unsed ui2 functions
The `get_screen_size` method now returns dimensions as `(height, width)` instead of `(width, height)`. This change aligns the function's output with the expected format for downstream consumers, preventing potential misinterpretations or layout issues where height and width might be swapped. While `adb shell wm size` typically reports `WIDTHxHEIGHT`, the application's internal logic expects `HEIGHTxWIDTH` from this method.
Ensuring the minicap process remains active and stable. This prevents premature termination due to garbage collection of the connection.
… instead of depending on ui2 Moves app lifecycle management (start, stop, get current app) from direct u2 calls to the `connection` object. This change encapsulates device interaction logic within the `connection` module.
… instead of depending on ui2 Moves app lifecycle management (start, stop, get current app) from direct u2 calls to the `connection` object. This change encapsulates device interaction logic within the `connection` module.
# Conflicts: # core/device/connection.py
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.