Module Expr Str Import alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias TryExcept body ImportFrom alias Assign NameStore AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body TryExcept body ImportFrom alias Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr handlers ExceptHandler type NameLoad body Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Str For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body If AttributeLoad NameLoad attr body Print BinOpMod Str TupleLoad AttributeLoad NameLoad attr Call AttributeLoad Str attr GeneratorExp Call NameLoad NameLoad comprehension NameStore AttributeLoad NameLoad attr orelse Print BinOpMod Str AttributeLoad NameLoad attr Return Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr keyword Lambda arguments args NameParam defaults AttributeLoad NameLoad attr Assign NameStore Call NameLoad GeneratorExp Call NameLoad AttributeLoad NameLoad attr comprehension NameStore NameLoad Assign NameStore Call NameLoad GeneratorExp Call NameLoad Call NameLoad AttributeLoad NameLoad attr comprehension NameStore NameLoad For NameStore NameLoad body Assign NameStore BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd IfExp Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str IfExp BinOpBitAnd AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str IfExp BinOpBitAnd AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str IfExp BinOpBitAnd AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str IfExp BinOpBitAnd AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str IfExp BinOpBitAnd AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str IfExp BinOpBitAnd AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str IfExp BinOpBitAnd AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str IfExp BinOpBitAnd AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str IfExp BinOpBitAnd AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Yield BinOpMod Str TupleLoad NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults vararg body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad Str attr NameLoad decorator_list Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr FunctionDef arguments args NameParam defaults vararg body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str keyword Str keyword ListLoad keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Num keyword Str keyword NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore ListLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr keyword ListLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword Str keyword ListLoad NameLoad Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr Dict Str Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr Dict Str Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad If CompareEq Call NameLoad AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr Return Num Assign NameStore Call AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr If UnaryOpNot AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign AttributeStore NameLoad attr ListLoad NameLoad If BoolOpAnd AttributeLoad NameLoad attr UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr Str If CompareEq AttributeLoad NameLoad attr Str body Return Call NameLoad NameLoad If CompareEq AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr Return Num If CompareEq AttributeLoad NameLoad attr Str body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr orelse If CompareEq AttributeLoad NameLoad attr Str body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr keyword BinOpMult AttributeLoad NameLoad attr Num keyword ListComp Call NameLoad NameLoad comprehension NameStore AttributeLoad NameLoad attr decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr Call NameLoad
N/A N/A Daemon-less ADB client in python. N/A argparse N/A functools N/A logging N/A os N/A stat N/A sys N/A time adb adb_commands adb common_cli N/A N/A adb sign_m2crypto N/A rsa_signer N/A sign_m2crypto M2CryptoSigner N/A N/A N/A ImportError N/A N/A N/A adb sign_pythonrsa N/A rsa_signer N/A N/A sign_pythonrsa PythonRSASigner FromRSAKeyPath N/A N/A N/A ImportError N/A N/A rsa_signer None Devices N/A N/A args N/A N/A N/A Lists the available devices.

  Mimics 'adb devices' output:
    List of devices attached
    015DB7591102001A        device        1,2
   N/A d N/A N/A N/A adb_commands AdbCommands Devices N/A N/A N/A args output_port_path N/A N/A N/A %s	device	%s N/A N/A d serial_number N/A N/A , join N/A N/A str p N/A p N/A d port_path N/A N/A N/A %s	device N/A d serial_number N/A 0 N/A List N/A N/A self device_path N/A N/A N/A Prints a directory listing.

  Args:
    device_path: Directory to list.
   N/A files N/A N/A N/A adb_commands AdbCommands List self device_path N/A N/A N/A files sort key N/A N/A N/A x N/A N/A x filename N/A maxname N/A max N/A N/A len N/A f filename N/A f files N/A maxsize N/A max N/A N/A len N/A str N/A f size N/A f files N/A f files N/A N/A mode N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A stat S_ISDIR N/A f mode d - N/A N/A N/A f mode N/A stat S_IRUSR r - N/A N/A N/A f mode N/A stat S_IWUSR w - N/A N/A N/A f mode N/A stat S_IXUSR x - N/A N/A N/A f mode N/A stat S_IRGRP r - N/A N/A N/A f mode N/A stat S_IWGRP w - N/A N/A N/A f mode N/A stat S_IXGRP x - N/A N/A N/A f mode N/A stat S_IROTH r - N/A N/A N/A f mode N/A stat S_IWOTH w - N/A N/A N/A f mode N/A stat S_IXOTH x - N/A t N/A N/A time gmtime N/A f mtime N/A N/A N/A %s %*d %04d-%02d-%02d %02d:%02d:%02d %-*s
 N/A mode maxsize N/A f size N/A t tm_year N/A t tm_mon N/A t tm_mday N/A t tm_hour N/A t tm_min N/A t tm_sec maxname N/A f filename N/A Logcat N/A N/A self N/A options N/A N/A N/A N/A N/A adb_commands AdbCommands Logcat self N/A N/A join options N/A N/A N/A functools wraps N/A N/A adb_commands AdbCommands Logcat Shell N/A N/A self N/A command N/A N/A Runs a command on the device and prints the stdout.

  Args:
    command: Command to run on the target.
   N/A N/A N/A N/A adb_commands AdbCommands StreamingShell self N/A N/A join command N/A main N/A N/A N/A N/A N/A common N/A N/A common_cli GetCommonArguments N/A N/A N/A common add_argument --rsa_key_path action append default N/A metavar ~/.android/adbkey help RSA key(s) to use, use multiple times to load mulitple keys N/A N/A N/A common add_argument --auth_timeout_s default 60.0 metavar 60 type int help Seconds to wait for the dialog to be accepted when using authenticated ADB. N/A device N/A N/A common_cli GetDeviceArguments N/A parents N/A common device N/A parser N/A N/A argparse ArgumentParser description N/A N/A N/A sys modules N/A __name__ __doc__ parents N/A common N/A subparsers N/A N/A parser add_subparsers title Commands dest command_name N/A subparser N/A N/A subparsers add_parser name help help Prints the commands available N/A subparser N/A N/A subparsers add_parser name devices help Lists the available devices parents N/A common N/A N/A N/A subparser add_argument --output_port_path action store_true help Outputs the port_path alongside the serial N/A N/A N/A common_cli MakeSubparser subparsers parents N/A N/A adb_commands AdbCommands Install N/A N/A N/A common_cli MakeSubparser subparsers parents List N/A N/A N/A common_cli MakeSubparser subparsers parents Logcat N/A N/A N/A common_cli MakeSubparser subparsers parents N/A N/A adb_commands AdbCommands Push N/A source_file Filename or directory to push to the device. N/A N/A N/A common_cli MakeSubparser subparsers parents N/A N/A adb_commands AdbCommands Pull N/A dest_file Filename to write to on the host, if not specified, prints the content to stdout. N/A N/A N/A common_cli MakeSubparser subparsers parents N/A N/A adb_commands AdbCommands Reboot N/A N/A N/A common_cli MakeSubparser subparsers parents N/A N/A adb_commands AdbCommands RebootBootloader N/A N/A N/A common_cli MakeSubparser subparsers parents N/A N/A adb_commands AdbCommands Remount N/A N/A N/A common_cli MakeSubparser subparsers parents N/A N/A adb_commands AdbCommands Root N/A N/A N/A common_cli MakeSubparser subparsers parents Shell N/A N/A N/A len N/A sys argv 1 N/A N/A N/A N/A parser print_help N/A 2 N/A args N/A N/A parser parse_args N/A N/A args verbose N/A N/A N/A N/A logging basicConfig level N/A logging DEBUG N/A N/A N/A args rsa_key_path N/A N/A default N/A N/A N/A os path expanduser ~/.android/adbkey N/A N/A N/A N/A os path isfile default N/A N/A N/A args rsa_key_path N/A default N/A N/A N/A args rsa_key_path N/A rsa_signer N/A N/A N/A N/A parser error Please install either M2Crypto or python-rsa N/A N/A N/A args command_name devices N/A N/A N/A Devices args N/A N/A N/A args command_name help N/A N/A N/A N/A parser print_help N/A 0 N/A N/A N/A args command_name logcat N/A N/A N/A args positional N/A args options N/A N/A N/A N/A args command_name shell N/A N/A N/A args positional N/A args command N/A N/A N/A common_cli StartCli args N/A N/A adb_commands AdbCommands ConnectDevice auth_timeout_ms N/A N/A args auth_timeout_s 1000 rsa_keys N/A N/A rsa_signer path N/A path N/A args rsa_key_path N/A N/A N/A __name__ __main__ N/A N/A N/A N/A sys exit N/A main