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.
Summary by Sourcery
在各控制单元和绑定中新增连接健康监控机制,并提供统一的
connected状态接口。新功能:
is_aliveAPI,以极低开销检测设备断连。connected回调/接口;在未实现时提供合理的默认行为。增强改进:
adb get-state提升 ADB 连接测试效果,并通过具备连接感知的重试和退避延迟,使 screencap 更加稳健。Original summary in English
Summary by Sourcery
Add connection health monitoring and a unified
connectedstatus interface across control units and bindings.New Features:
is_aliveAPI to detect device disconnection with minimal overhead.connectedcallback/interface for custom controllers across C++, Python, and NodeJS bindings, with sensible defaults when not implemented.Enhancements:
adb get-stateand make screencap more robust with connection-aware retries and backoff delays.