adb.adb_debug module¶
Daemon-less ADB client in python.
Contents
-
adb.adb_debug.
Devices
(args)[source]¶ Lists the available devices.
Mimics
adb devices
output:List of devices attached 015DB7591102001A device 1,2
- Parameters
args (argparse.ArgumentParser) – CLI arguments; see
adb.common_cli.GetDeviceArguments()
.- Returns
0
- Return type
int
-
adb.adb_debug.
List
(device, device_path)[source]¶ Prints a directory listing.
See also
- Parameters
device (adb.adb_commands.AdbCommands) – TODO
device_path (str, bytes) – Directory to list.
- Yields
str – A formatted listing for a file in
device_path
-
adb.adb_debug.
Shell
(device, *command)[source]¶ Runs a command on the device and prints the stdout.
See also
adb.adb_commands.AdbCommands.StreamingShell()
,adb.adb_commands.AdbCommands.InteractiveShell()
- Parameters
device (adb.adb_commands.AdbCommands) – TODO
command (list[str]) – Command to run on the target.