Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2837)

Unified Diff: build/android/pylib/sdk/dexdump.py

Issue 1314913009: [Android] Move some pylib modules into devil/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/android/pylib/sdk/aapt.py ('k') | build/android/pylib/sdk/split_select.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/pylib/sdk/dexdump.py
diff --git a/build/android/pylib/sdk/dexdump.py b/build/android/pylib/sdk/dexdump.py
index ec10aba077524c839fe3f18cfa8fa8af2a0a4fb1..f7357f7d0603789b73ae269c01659bd14c34341d 100644
--- a/build/android/pylib/sdk/dexdump.py
+++ b/build/android/pylib/sdk/dexdump.py
@@ -2,29 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-import os
-
-from pylib import cmd_helper
-from pylib import constants
-
-_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.
-
- Args:
- dexfiles: The dexfile or list of dex files to dump.
- file_summary: Display summary information from the file header. (-f)
-
- Returns:
- An iterable over the output lines.
- """
- # TODO(jbudorick): Add support for more options as necessary.
- if isinstance(dexfiles, basestring):
- dexfiles = [dexfiles]
- args = [_DEXDUMP_PATH] + dexfiles
- if file_summary:
- args.append('-f')
-
- return cmd_helper.IterCmdOutputLines(args)
+# pylint: disable=unused-wildcard-import
+# pylint: disable=wildcard-import
+from devil.android.sdk.dexdump import *
« no previous file with comments | « build/android/pylib/sdk/aapt.py ('k') | build/android/pylib/sdk/split_select.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698