From 24000a21df4c3ae4fcd33598b7555ac713e951e0 Mon Sep 17 00:00:00 2001 From: Marc Bonnici Date: Fri, 16 Dec 2016 11:20:37 +0000 Subject: [PATCH] Dex2oat: Now uses root if available. Command fails to execute with permission error on some devices therefore now attempts to use root if available. --- wlauto/workloads/dex2oat/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wlauto/workloads/dex2oat/__init__.py b/wlauto/workloads/dex2oat/__init__.py index f93af6f4..28f87b59 100644 --- a/wlauto/workloads/dex2oat/__init__.py +++ b/wlauto/workloads/dex2oat/__init__.py @@ -75,7 +75,7 @@ class Dex2oatBenchmark(Workload): self.device.push_file(self.apk_file, on_device_apk) def run(self, context): - self.device.execute(self.command, self.run_timeout) + self.device.execute(self.command, self.run_timeout, as_root=self.device.is_rooted) def update_result(self, context): """