Index: build/android/pylib/local/device/local_device_environment.py |
diff --git a/build/android/pylib/local/device/local_device_environment.py b/build/android/pylib/local/device/local_device_environment.py |
index 461223147b09493a0f13e77cabedbb648fc7033c..86ffc5f59daa62457dd32907593ae01eac36561a 100644 |
--- a/build/android/pylib/local/device/local_device_environment.py |
+++ b/build/android/pylib/local/device/local_device_environment.py |
@@ -10,12 +10,14 @@ import shutil |
import tempfile |
import threading |
+import devil_chromium |
from devil import base_error |
from devil.android import device_blacklist |
from devil.android import device_errors |
from devil.android import device_list |
from devil.android import device_utils |
from devil.android import logcat_monitor |
+from devil.android.sdk import adb_wrapper |
from devil.utils import file_utils |
from devil.utils import parallelizer |
from pylib import constants |
@@ -94,6 +96,15 @@ class LocalDeviceEnvironment(environment.Environment): |
self._tool_name = args.tool |
self._trace_output = args.trace_output |
+ devil_chromium.Initialize( |
+ output_directory=constants.GetOutDirectory(), |
+ adb_path=args.adb_path) |
+ |
+ # Some things such as Forwarder require ADB to be in the environment path. |
+ adb_dir = os.path.dirname(adb_wrapper.AdbWrapper.GetAdbPath()) |
+ if adb_dir and adb_dir not in os.environ['PATH'].split(os.pathsep): |
+ os.environ['PATH'] = adb_dir + os.pathsep + os.environ['PATH'] |
+ |
#override |
def SetUp(self): |
if self.trace_output: |