From c282d4341d006dc70f66c39022f47003690f3469 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolai=20S=C3=B8borg?= Date: Tue, 28 Dec 2021 13:56:04 +0100 Subject: [PATCH] Bump adb read timeout MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Some adb commands (like `dumpsys`) are very slow and the default timeout is "only" 10s. A timeout of 200 seconds is chosen completely at random - works on my phone 🤷 Fixes https://github.com/mvt-project/mvt/issues/113 Fixes https://github.com/mvt-project/mvt/issues/228 --- mvt/android/modules/adb/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mvt/android/modules/adb/base.py b/mvt/android/modules/adb/base.py index c4a25c6..f3b618f 100644 --- a/mvt/android/modules/adb/base.py +++ b/mvt/android/modules/adb/base.py @@ -112,7 +112,7 @@ class AndroidExtraction(MVTModule): :returns: Output of command """ - return self.device.shell(command) + return self.device.shell(command, read_timeout_s=200.0) def _adb_check_if_root(self): """Check if we have a `su` binary on the Android device.