changeset 128:b381aa95fbad

Apply array sorting in inject_redir.py
author Thinker K.F. Li <thinker@codemud.net>
date Mon, 08 Aug 2011 22:48:14 +0800
parents 650244dcdd82
children 52749d91cc22
files examples/inject_redir.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/examples/inject_redir.py	Mon Aug 08 22:34:11 2011 +0800
+++ b/examples/inject_redir.py	Mon Aug 08 22:48:14 2011 +0800
@@ -8,6 +8,7 @@
 from paraspace.dexfile import DEXFile, DEXFile_linked
 from paraspace.dex_deptracker import prepare_dep_decls
 from paraspace.dex_deptracker import restore_dependencies
+from paraspace.dex_deptracker import dex_sort_sorted_arrays
 from paraspace.injection import inject_classdefs, make_methodidxs_redir_map
 from paraspace.injection import dexfile_redirect_types
 import sys
@@ -51,6 +52,7 @@
 dexfile_redirect_types(dst_linked, typeidxs_redir, methodidxs_redir,
                        excludes=injected_typeidxs)
 
+dex_sort_sorted_arrays(dst_linked)
 restore_dependencies(dst_linked, decls)
 
 restore_raw = dst_linked.to_str()