Skip to content

Latest commit

 

History

History
107 lines (61 loc) · 4.7 KB

File metadata and controls

107 lines (61 loc) · 4.7 KB
graph LR
    FileSyncConnection["FileSyncConnection"]
    Push["Push"]
    Pull["Pull"]
    List["List"]
    Stat["Stat"]
    Send["Send"]
    Read["Read"]
    ReadUntil["ReadUntil"]
    Stat -- "depends on" --> FileSyncConnection
    List -- "depends on" --> FileSyncConnection
    Pull -- "depends on" --> FileSyncConnection
    Push -- "depends on" --> FileSyncConnection
    Push -- "employs" --> Send
    Push -- "employs" --> ReadUntil
    Pull -- "uses" --> Send
    Pull -- "uses" --> ReadUntil
    Pull -- "calls" --> Stat
    List -- "uses" --> Send
    List -- "uses" --> ReadUntil
    Stat -- "uses" --> Send
    Stat -- "uses" --> Read
    ReadUntil -- "builds upon" --> Read
Loading

CodeBoardingDemoContact

Details

The Filesync Protocol Handler subsystem is a critical part of the python-adb project, specializing in file synchronization operations over an established ADB connection. It adheres to the project's architectural bias towards direct, stateless communication with Android devices, implementing the client-side logic for file transfer and metadata retrieval.

FileSyncConnection

Manages the dedicated ADB connection for filesync operations, serving as the foundational communication channel for all file synchronization commands. It abstracts the low-level connection details, providing a reliable stream for data exchange.

Related Classes/Methods:

Push

Implements the file upload functionality, enabling the transfer of files from the host machine to the connected Android device. It handles the protocol-specific commands and data streaming for uploads.

Related Classes/Methods:

Pull

Implements the file download functionality, facilitating the transfer of files from the Android device to the host machine. It manages the request and reception of file data from the device.

Related Classes/Methods:

List

Implements the directory listing functionality, allowing the host to retrieve a list of files and directories present at a specified path on the Android device.

Related Classes/Methods:

Stat

Implements the file metadata retrieval functionality, enabling the host to query detailed information (e.g., size, permissions, modification time) about a specific file or directory on the Android device.

Related Classes/Methods:

Send

Provides the low-level mechanism for transmitting data packets over the established filesync connection. It is a utility component used by higher-level operations to send commands and data to the device.

Related Classes/Methods:

Read

Provides the low-level mechanism for receiving data packets from the filesync connection. It is a fundamental utility component for all operations that expect a response or data stream from the device.

Related Classes/Methods:

ReadUntil

A specialized utility for controlled reading of data streams from the filesync connection until a specific condition or pattern is met. It builds upon the basic Read functionality to provide more sophisticated data parsing.

Related Classes/Methods: