Mercurial > paraspace
comparison paraspace/dex_deptracker.py @ 137:987fead83ce3
Fix issue that dalvik complaining fail to verify code.
- Since order of typeId and methodId are changed, index values in
code block of methods are invalid after sorting sorted arrays.
- We add dex_sort_sorted_arrays_consistent() function as a wrapper
of dex_sort_sorted_arrays(). It remap indices mentioned in code
blocks after sorting.
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Wed, 10 Aug 2011 14:04:02 +0800 |
parents | ddf8a20ecc4b |
children | 0704e23009e4 |
comparison
equal
deleted
inserted
replaced
136:f31bfe55d9c2 | 137:987fead83ce3 |
---|---|
94 pass | 94 pass |
95 pass | 95 pass |
96 pass | 96 pass |
97 | 97 |
98 | 98 |
99 ## \brief Find depend attributes of a class. | |
100 # | |
101 # It does not cross the boundary of the class. | |
102 # | |
99 def _find_dep_decls_from_clazz(name_path, clazz, dex_types): | 103 def _find_dep_decls_from_clazz(name_path, clazz, dex_types): |
100 # XXX: implements the loop with _travel_dex_type() | 104 # XXX: implements the loop with _travel_dex_type() |
101 dep_decls = {} | 105 dep_decls = {} |
102 | 106 |
103 for attr in dir(clazz): | 107 for attr in dir(clazz): |