Mercurial > paraspace
comparison paraspace/dexfile.py @ 131:044bfc415577
Fix issue of data map verification.
- Dalvik complain that data map generated by inject_redir.py is unexpected.
- Test case map_verify_error_test()
- Refactor inject_redir.py to paraspace.injection.inject_redir().
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Tue, 09 Aug 2011 11:47:43 +0800 |
parents | 650244dcdd82 |
children | 75a31967ebee |
comparison
equal
deleted
inserted
replaced
130:117047deda64 | 131:044bfc415577 |
---|---|
969 0x2003: 'kDexTypeDebugInfoItem', | 969 0x2003: 'kDexTypeDebugInfoItem', |
970 0x2004: 'kDexTypeAnnotationItem', | 970 0x2004: 'kDexTypeAnnotationItem', |
971 0x2005: 'kDexTypeEncodedArrayItem', | 971 0x2005: 'kDexTypeEncodedArrayItem', |
972 0x2006: 'kDexTypeAnnotationsDirectoryItem' | 972 0x2006: 'kDexTypeAnnotationsDirectoryItem' |
973 } | 973 } |
974 | |
975 name_to_types = dict([(_name, _typenum) | |
976 for _typenum, _name in types.items()]) | |
974 | 977 |
975 child_names = \ | 978 child_names = \ |
976 'type unused size offset'.split() | 979 'type unused size offset'.split() |
977 pass | 980 pass |
978 | 981 |