Index: build/android/pylib/instrumentation/apk_info.py |
diff --git a/build/android/pylib/instrumentation/apk_info.py b/build/android/pylib/instrumentation/apk_info.py |
index 46f0d7bb9f161d088f1a8221b2e176ecf8fbbdc0..fc7dcdfd9d05da67af4daddeb04c426b7e44c85b 100644 |
--- a/build/android/pylib/instrumentation/apk_info.py |
+++ b/build/android/pylib/instrumentation/apk_info.py |
@@ -5,6 +5,7 @@ |
"""Gathers information about APKs.""" |
import collections |
+import constants |
import logging |
import os |
import pickle |
@@ -32,7 +33,8 @@ class ApkInfo(object): |
"""Helper class for inspecting APKs.""" |
def __init__(self, apk_path, jar_path): |
- self._PROGUARD_PATH = os.path.join(os.environ['ANDROID_SDK_ROOT'], |
+ sdk_root = os.getenv('ANDROID_SDK_ROOT', constants.ANDROID_SDK_ROOT) |
+ self._PROGUARD_PATH = os.path.join(sdk_root, |
'tools/proguard/bin/proguard.sh') |
if not os.path.exists(self._PROGUARD_PATH): |
self._PROGUARD_PATH = os.path.join(os.environ['ANDROID_BUILD_TOP'], |