Index: build/android/gyp/apk_install.py |
diff --git a/build/android/gyp/apk_install.py b/build/android/gyp/apk_install.py |
index e308aabdb2271a1824b618994fc5a92ac9a80b7f..ef3032b088cf14e1607ef2a82acc4a131060c519 100755 |
--- a/build/android/gyp/apk_install.py |
+++ b/build/android/gyp/apk_install.py |
@@ -21,6 +21,7 @@ from util import md5_check |
BUILD_ANDROID_DIR = os.path.join(os.path.dirname(__file__), '..') |
sys.path.append(BUILD_ANDROID_DIR) |
+from pylib import constants |
from pylib.utils import apk_helper |
def GetNewMetadata(device, apk_package): |
@@ -62,6 +63,8 @@ def main(argv): |
help='Path to build device configuration.') |
parser.add_option('--stamp', |
help='Path to touch on success.') |
+ parser.add_option('--configuration-name', |
+ help='The build CONFIGURATION_NAME') |
options, _ = parser.parse_args() |
device = build_device.GetBuildDeviceFromPath( |
@@ -69,6 +72,8 @@ def main(argv): |
if not device: |
return |
+ constants.SetBuildType(options.configuration_name) |
+ |
serial_number = device.GetSerialNumber() |
apk_package = apk_helper.GetPackageName(options.apk_path) |