diff paraspace/dexfile.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 f31bfe55d9c2
children d4e794249b0f
line wrap: on
line diff
--- a/paraspace/dexfile.py	Tue Aug 09 21:52:05 2011 +0800
+++ b/paraspace/dexfile.py	Wed Aug 10 14:04:02 2011 +0800
@@ -2085,7 +2085,8 @@
         method_typeid = methodid.classIdx
         classdef = self.find_class_typeid(method_typeid)
         
-        method = self.find_method_name_proto(method, method_proto, classdef)
+        method = self.find_method_name_proto(method_name, method_proto,
+                                             classdef)
         
         return method