From 5f8da6632224425da416a3585b79227a85cc7e20 Mon Sep 17 00:00:00 2001 From: Sebastian Goscik Date: Mon, 18 Jan 2016 16:38:01 +0000 Subject: [PATCH] antutu: Fixed runtime permissions Antutu 6 lists corse_location as a requirement but also asks for fine_location at runtime. So it is now manually beign granted. --- wlauto/workloads/antutu/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wlauto/workloads/antutu/__init__.py b/wlauto/workloads/antutu/__init__.py index 5d046044..f863148f 100644 --- a/wlauto/workloads/antutu/__init__.py +++ b/wlauto/workloads/antutu/__init__.py @@ -80,6 +80,8 @@ class Antutu(AndroidUiAutoBenchmark): info = ApkInfo(antutu_3d) if not context.device.is_installed(info.package): self.device.install_apk(antutu_3d, timeout=120) + # Antutu doesnt seem to list this as one of its permissions, but it asks for it. + self.device.execute("pm grant com.antutu.ABenchMark android.permission.ACCESS_FINE_LOCATION") super(Antutu, self).setup(context) def update_result(self, context):