Chromium Code Reviews| Index: mojo/devtools/common/devtoolslib/android_shell.py |
| diff --git a/mojo/devtools/common/devtoolslib/android_shell.py b/mojo/devtools/common/devtoolslib/android_shell.py |
| index a4a7d16db7261e650c0c776564dc35a6655e537b..4a12f819405c3a8eabefb110e1874be25a8807b4 100644 |
| --- a/mojo/devtools/common/devtoolslib/android_shell.py |
| +++ b/mojo/devtools/common/devtoolslib/android_shell.py |
| @@ -199,6 +199,17 @@ class AndroidShell(Shell): |
| return len(subprocess.check_output(self._adb_command([ |
| 'shell', 'pm', 'list', 'packages', _MOJO_SHELL_PACKAGE_NAME]))) > 0 |
| + @staticmethod |
| + def get_tmp_dir_path(): |
|
etiennej
2015/10/02 10:58:05
Docstring please
ppi
2015/10/03 21:48:49
Done.
|
| + return '/data/data/%s/cache/tmp/' % _MOJO_SHELL_PACKAGE_NAME |
| + |
| + def pull_file(self, device_path, destination_path, remove_original=False): |
|
etiennej
2015/10/02 10:58:04
Docstring
ppi
2015/10/03 21:48:49
Done.
|
| + subprocess.check_call(self._adb_command([ |
| + 'pull', device_path, destination_path])) |
| + if remove_original: |
| + subprocess.check_call(self._adb_command([ |
| + 'shell', 'rm', device_path])) |
| + |
| def check_device(self, require_root=False): |
| """Verifies if the device configuration allows adb to run. |