From ca0b6e88a15ca999b02b97f58f9c7720483aab4c Mon Sep 17 00:00:00 2001 From: Sergei Trofimov Date: Tue, 30 Aug 2016 14:25:11 +0100 Subject: [PATCH] AndroidTarget: fixed kick_off() kick_off relies on nohup, which may not work properly unless the command for it is explicitly backgrounded with "&", which was not being done in the AndroidTarget implementation of kick_off(). --- devlib/target.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devlib/target.py b/devlib/target.py index f4e3ea9..10cfff4 100644 --- a/devlib/target.py +++ b/devlib/target.py @@ -825,7 +825,7 @@ class AndroidTarget(Target): if as_root is None: as_root = self.needs_su try: - command = 'cd {} && {} nohup {}'.format(self.working_directory, self.busybox, command) + command = 'cd {} && {} nohup {} &'.format(self.working_directory, self.busybox, command) output = self.execute(command, timeout=1, as_root=as_root) except TimeoutError: pass