mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-19 04:21:17 +00:00
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.
This commit is contained in:
parent
67213d471b
commit
5f8da66322
@ -80,6 +80,8 @@ class Antutu(AndroidUiAutoBenchmark):
|
|||||||
info = ApkInfo(antutu_3d)
|
info = ApkInfo(antutu_3d)
|
||||||
if not context.device.is_installed(info.package):
|
if not context.device.is_installed(info.package):
|
||||||
self.device.install_apk(antutu_3d, timeout=120)
|
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)
|
super(Antutu, self).setup(context)
|
||||||
|
|
||||||
def update_result(self, context):
|
def update_result(self, context):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user