Index: scripts/slave/recipe_modules/chromium_android/api.py |
diff --git a/scripts/slave/recipe_modules/chromium_android/api.py b/scripts/slave/recipe_modules/chromium_android/api.py |
index a36a7305848cbe2ad7b70b79bc350920aeaaed02..43dabb481916ab2f9f9ca315cbdc952b807679ee 100644 |
--- a/scripts/slave/recipe_modules/chromium_android/api.py |
+++ b/scripts/slave/recipe_modules/chromium_android/api.py |
@@ -2,6 +2,7 @@ |
# Use of this source code is governed by a BSD-style license that can be |
# found in the LICENSE file. |
+import glob |
import os |
import re |
import urllib |
@@ -358,10 +359,15 @@ class AndroidApi(recipe_api.RecipeApi): |
def provision_devices(self, skip_wipe=False, disable_location=False, |
min_battery_level=None, disable_network=False, |
disable_java_debug=False, reboot_timeout=None, |
+ no_adb_keys_files=False, |
**kwargs): |
args = ['-t', self.m.chromium.c.BUILD_CONFIG] |
if skip_wipe: |
args.append('--skip-wipe') |
+ if not no_adb_keys_files: |
navabi
2015/03/04 00:19:23
This option is for if in the future some bots may
jbudorick
2015/03/04 00:23:50
I don't really have a problem with having an optio
navabi
2015/03/04 00:56:38
I agree. Done.
|
+ if glob.glob(os.path.join(os.environ['HOME'], '.android', '*.pub')): |
+ args.append('--adb-key-files %s' % os.path.join(os.environ['HOME'], |
+ '.android', '*.pub')) |
if disable_location: |
args.append('--disable-location') |
if reboot_timeout is not None: |