| Index: build/android/devil/android/sdk/dexdump.py
|
| diff --git a/build/android/devil/android/sdk/dexdump.py b/build/android/devil/android/sdk/dexdump.py
|
| index 48d810f67c747e6eb0fd18a5c9136e5ca52dc722..992366e84ae4cc8f986a99fc711621823d7348dc 100644
|
| --- a/build/android/devil/android/sdk/dexdump.py
|
| +++ b/build/android/devil/android/sdk/dexdump.py
|
| @@ -2,12 +2,13 @@
|
| # Use of this source code is governed by a BSD-style license that can be
|
| # found in the LICENSE file.
|
|
|
| -import os
|
| -
|
| +from devil.android.sdk import build_tools
|
| from devil.utils import cmd_helper
|
| -from pylib import constants
|
| +from devil.utils import lazy
|
| +
|
| +
|
| +_dexdump_path = lazy.WeakConstant(lambda: build_tools.GetPath('dexdump'))
|
|
|
| -_DEXDUMP_PATH = os.path.join(constants.ANDROID_SDK_TOOLS, 'dexdump')
|
|
|
| def DexDump(dexfiles, file_summary=False):
|
| """A wrapper around the Android SDK's dexdump tool.
|
| @@ -22,7 +23,7 @@ def DexDump(dexfiles, file_summary=False):
|
| # TODO(jbudorick): Add support for more options as necessary.
|
| if isinstance(dexfiles, basestring):
|
| dexfiles = [dexfiles]
|
| - args = [_DEXDUMP_PATH] + dexfiles
|
| + args = [_dexdump_path.read()] + dexfiles
|
| if file_summary:
|
| args.append('-f')
|
|
|
|
|