diff 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
line wrap: on
line diff
--- a/paraspace/dex_deptracker.py	Tue Aug 09 21:52:05 2011 +0800
+++ b/paraspace/dex_deptracker.py	Wed Aug 10 14:04:02 2011 +0800
@@ -96,6 +96,10 @@
     pass
 
 
+## \brief Find depend attributes of a class.
+#
+# It does not cross the boundary of the class.
+#
 def _find_dep_decls_from_clazz(name_path, clazz, dex_types):
     # XXX: implements the loop with _travel_dex_type()
     dep_decls = {}