moler.cmd.adb package¶
Submodules¶
moler.cmd.adb.adb_shell module¶
adb shell command module.
-
class
moler.cmd.adb.adb_shell.
AdbShell
(connection, serial_number=None, prompt=None, expected_prompt=None, newline_chars=None, target_newline='n', runner=None, set_timeout=None, allowed_newline_after_prompt=False, set_prompt=None, prompt_after_login=None, prompt_from_serial_number=False)¶ Bases:
moler.cmd.commandchangingprompt.CommandChangingPrompt
-
build_command_string
()¶ Builds command string from parameters passed to object.
Returns: String representation of command to send over connection to device.
-
on_new_line
(line, is_full_line)¶ Parses the output of the command.
Parameters: - line – Line to process, can be only part of line. New line chars are removed from line.
- is_full_line – True if line had new line chars, False otherwise.
Returns: None.
-
re_generated_prompt
= '^adb_shell@{} \\$'¶
-
Module contents¶
Package for implementing ADB commands.