Index: devil/devil/android/tools/device_recovery.py |
diff --git a/devil/devil/android/tools/device_recovery.py b/devil/devil/android/tools/device_recovery.py |
index f19fd59d86dd15df4c97c45d5392d4f6bd318dca..1e52a95d2df3df56223510ca7149864cc296312d 100755 |
--- a/devil/devil/android/tools/device_recovery.py |
+++ b/devil/devil/android/tools/device_recovery.py |
@@ -168,14 +168,22 @@ def main(): |
args = parser.parse_args() |
run_tests_helper.SetLogLevel(args.verbose) |
- devil_custom_deps = None |
+ devil_dynamic_config = { |
+ 'config_type': 'BaseConfig', |
+ 'dependencies': {}, |
+ } |
+ |
if args.adb_path: |
- devil_custom_deps = { |
- 'adb': { |
- devil_env.GetPlatform(): [args.adb_path], |
- }, |
- } |
- devil_env.config.Initialize(configs=devil_custom_deps) |
+ devil_dynamic_config['dependencies'].update({ |
+ 'adb': { |
+ 'file_info': { |
+ devil_env.GetPlatform(): { |
+ 'local_paths': [args.adb_path] |
+ } |
+ } |
+ } |
+ }) |
+ devil_env.config.Initialize(configs=[devil_dynamic_config]) |
blacklist = (device_blacklist.Blacklist(args.blacklist_file) |
if args.blacklist_file |