Index: tools/memory_inspector/memory_inspector/backends/android/android_backend.py |
diff --git a/tools/memory_inspector/memory_inspector/backends/android/android_backend.py b/tools/memory_inspector/memory_inspector/backends/android/android_backend.py |
index 2116bb6f86a8e613b779c130e616612bba4b3de7..8fcfebf36a5572c1e1d4a3a4a02a02545796f2b4 100644 |
--- a/tools/memory_inspector/memory_inspector/backends/android/android_backend.py |
+++ b/tools/memory_inspector/memory_inspector/backends/android/android_backend.py |
@@ -327,8 +327,7 @@ class AndroidProcess(backends.Process): |
# TODO(primiano): Some pre-KK versions of Android might need a sleep here |
# as, IIRC, 'am dumpheap' did not wait for the dump to be completed before |
# returning. Double check this and either add a sleep or remove this TODO. |
- dump_out = self.device.underlying_device.old_interface.GetFileContents( |
- dump_file_path) |
+ dump_out = self.device.underlying_device.ReadFile(dump_file_path) |
self.device.underlying_device.RunShellCommand('rm %s' % dump_file_path) |
return dumpheap_native_parser.Parse(dump_out) |