Index: build/android/pylib/instrumentation/test_package.py |
diff --git a/build/android/pylib/instrumentation/test_package.py b/build/android/pylib/instrumentation/test_package.py |
index 79b2fc9737f6346fc9f9bf94a924946d8a93d044..b9309548548bb29c559aec58be47e1c4e79f1f20 100644 |
--- a/build/android/pylib/instrumentation/test_package.py |
+++ b/build/android/pylib/instrumentation/test_package.py |
@@ -6,6 +6,7 @@ |
import os |
+from pylib import constants |
from pylib.instrumentation import test_jar |
from pylib.utils import apk_helper |
@@ -18,7 +19,8 @@ class TestPackage(test_jar.TestJar): |
raise Exception('%s not found, please build it' % apk_path) |
self._apk_path = apk_path |
self._apk_name = os.path.splitext(os.path.basename(apk_path))[0] |
- self._package_name = apk_helper.GetPackageName(self._apk_path) |
+ self._package_name = apk_helper.GetPackageName(constants.ANDROID_SDK_TOOLS, |
+ self._apk_path) |
def GetApkPath(self): |
"""Returns the absolute path to the APK.""" |