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

Side by Side Diff: tools/android/dexdiffer/dexdiffer.py

Issue 2322253003: Make dexdiffer.py u+x (Closed)
Patch Set: Created 4 years, 3 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 unified diff | Download patch
« no previous file with comments | « no previous file | tools/android/dexdiffer/dexdiffer_unittest.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python
1 # Copyright 2016 The Chromium Authors. All rights reserved. 2 # Copyright 2016 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 4 # found in the LICENSE file.
4 """Tool to diff 2 dex files that have been proguarded. 5 """Tool to diff 2 dex files that have been proguarded.
5 6
6 To use this tool, first get dextra. http://newandroidbook.com/tools/dextra.html 7 To use this tool, first get dextra. http://newandroidbook.com/tools/dextra.html
7 Then use the dextra binary on a classes.dex file like so: 8 Then use the dextra binary on a classes.dex file like so:
8 dextra_binary -j -f -m classes.dex > output.dextra 9 dextra_binary -j -f -m classes.dex > output.dextra
9 Do this for both the dex files you want to compare. Then, take the appropriate 10 Do this for both the dex files you want to compare. Then, take the appropriate
10 proguard mapping files uesd to generate those dex files, and use this script: 11 proguard mapping files uesd to generate those dex files, and use this script:
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 278
278 diffs = _DiffDexDicts(dex_base, dex_new) 279 diffs = _DiffDexDicts(dex_base, dex_new)
279 if diffs: 280 if diffs:
280 for diff in diffs: 281 for diff in diffs:
281 print diff 282 print diff
282 283
283 284
284 if __name__ == '__main__': 285 if __name__ == '__main__':
285 main() 286 main()
286 287
OLDNEW
« no previous file with comments | « no previous file | tools/android/dexdiffer/dexdiffer_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698