From bb17590689721fc0915ea06f8950671e1395ae07 Mon Sep 17 00:00:00 2001 From: Marc Bonnici Date: Mon, 5 Jun 2017 14:16:12 +0100 Subject: [PATCH] ResourceGetter: Updated to check if an apk is a uiautomation test apk. The getter now checks the apk package name to distinguish between a regular android apk and a uiautomator apk. --- wlauto/resource_getters/standard.py | 1 + 1 file changed, 1 insertion(+) diff --git a/wlauto/resource_getters/standard.py b/wlauto/resource_getters/standard.py index 77f41878..0f948137 100644 --- a/wlauto/resource_getters/standard.py +++ b/wlauto/resource_getters/standard.py @@ -563,6 +563,7 @@ def get_from_list_by_extension(resource, filelist, extension, version=None, vari filelist = [ff for ff in filelist if version.lower() in os.path.basename(ff).lower()] if extension == 'apk': filelist = [ff for ff in filelist if not ApkInfo(ff).native_code or resource.platform in ApkInfo(ff).native_code] + filelist = [ff for ff in filelist if resource.uiauto == ('com.arm.wlauto.uiauto' in ApkInfo(ff).package)] if len(filelist) == 1: return filelist[0] elif not filelist: