331 Commits

Author SHA1 Message Date
Ben Gruver
7a03efcac6 Attempt to fix test for windows... again. 2013-10-10 20:41:36 -07:00
Ben Gruver
44c5c07c57 Don't output parameter names when using the -b/--no-debug-info option 2013-09-28 17:55:52 -07:00
Ben Gruver
f7d6d5fade Gracefully handle instructions with invalid references 2013-09-14 19:53:21 -07:00
Ben Gruver
f9bcf89674 Attempt to fix tests for windows 2013-09-14 13:59:02 -07:00
Ben Gruver
49fa5f5f44 Don't crash if the smali/baksmali.properties file can't be found 2013-06-01 13:44:23 -07:00
Ben Gruver
13705697c2 Clean up how the classes are sorted before being disassembled 2013-05-18 17:36:25 -07:00
Ben Gruver
74436bdd2f Fix issues with initialization of bootClassPath and inlineResolver 2013-05-12 20:55:10 -07:00
Ben Gruver
dea5f8d544 Exit with non-zero status if any error occurred while running baksmali 2013-05-12 12:32:08 -07:00
Ben Gruver
7e25c35df7 Make baksmali thread safe, and add -j option 2013-05-12 12:31:24 -07:00
Ben Gruver
4b171afedb Misc baksmali cleanup 2013-05-11 13:37:19 -07:00
Ben Gruver
2a91095e8c Fix up proguard configuration 2013-05-07 00:05:34 -07:00
Ben Gruver
5b69a5f3a5 Merge remote-tracking branch 'izzy_github/deodex2' into dexlib_redesign
Conflicts:
	dexlib2/src/main/java/org/jf/dexlib2/analysis/ClassPath.java
2013-05-06 21:13:55 -07:00
Ben Gruver
d38f3a7983 Fix up line number handling to be unsigned int safe 2013-05-03 19:35:47 -07:00
Ben Gruver
936cc551f7 Clean up some TODOs 2013-04-30 21:57:08 -07:00
Izzat Bahadirov
03b8247850 Renamed getVersion() to getOdexVersion() in DexBackedOdexFile. 2013-04-29 16:27:45 -04:00
Ben Gruver
1bf6f23245 Implementation of new generificationified writer functionality 2013-04-27 22:23:30 -07:00
Izzat Bahadirov
9c72df65f7 Using standard InlineMethodResolver if no custom one is provided. 2013-04-22 14:00:49 -04:00
Ben Gruver
b6435e7a47 Add support to smali for a .source directive with no source file 2013-04-18 00:27:16 -07:00
Ben Gruver
3e4e5ec7a4 Change .param and .local syntax, to be able to handle empty name/type/signature 2013-04-18 00:17:34 -07:00
Ben Gruver
83f77f51aa Refactor how api specific Opcodes work (make them non-static) 2013-04-17 22:32:08 -07:00
Ben Gruver
8979759556 Gracefully handle duplicate fields/methods in baksmali 2013-04-13 18:55:34 -07:00
Ben Gruver
0a18ea7f8b Separate direct/virtual methods and static/instance fields in the ClassDef interface
This is unfortunately required to support not-quite-well-formed dex files
containing duplicate static/instance fields, or duplicate direct/virtual methods,
which dalvik inadvertently allows.

In cases when there are duplicate fields/methods in the same category, we
unambiguously remove/hide the latter duplicate fields/methods.
2013-04-13 16:25:37 -07:00
Ben Gruver
5b99529feb Remove unneeded TODO 2013-04-12 00:03:41 -07:00
Ben Gruver
2363e6e43c Gracefully handle unknown instructions 2013-04-11 23:58:43 -07:00
Ben Gruver
5fa302678c Add support for custom inline tables 2013-04-10 21:14:46 -07:00
Ben Gruver
a55990c876 Re-enable deodexing in baksmali
It's not quite working yet.
2013-04-09 23:45:48 -07:00
Ben Gruver
7172de2aab Always write out the register info in numeric order 2013-04-09 21:17:38 -07:00
Ben Gruver
c017b06cd0 Add a register info test for the case of multiple start instructions 2013-04-09 20:34:22 -07:00
Ben Gruver
8c2d92d954 Enforce strict reference equality for uninit ref register types 2013-04-08 21:45:22 -07:00
Ben Gruver
3f05570b6b Always use .equals for comparing RegisterType instances 2013-04-08 20:27:35 -07:00
Ben Gruver
d87770e69b Add a test framework for baksmali
This also adds a test for register info comments in constructors
2013-04-08 00:09:15 -07:00
Ben Gruver
93aa50139c Refactor the way the baksmali options are handled 2013-04-08 00:09:15 -07:00
Ben Gruver
c91b03ba45 Add support for generating register information 2013-04-08 00:09:15 -07:00
Ben Gruver
ffe82bdcb5 Fully remove the dependency on the old dexlib from baksmali 2013-04-08 00:09:15 -07:00
Ben Gruver
92d690894a Remove some unneeded baksmali command line options 2013-04-08 00:09:15 -07:00
Ben Gruver
db7795ffaa Add support for odex format 20bc 2013-03-09 20:35:26 -08:00
Ben Gruver
61277b50b3 Add support for odex formats 3rms and 3rmi 2013-03-09 19:28:19 -08:00
Ben Gruver
2a91d72a15 Add support for odex format 35mi 2013-03-09 18:41:52 -08:00
Ben Gruver
8a151ae671 Add support for odex format 35ms 2013-03-09 18:07:25 -08:00
Ben Gruver
e88723c666 Add support for odex format 22cs 2013-03-09 18:07:19 -08:00
Ben Gruver
93ff1cab5b Expand TODO regarding the syntax of locals 2013-03-05 21:04:52 -08:00
Ben Gruver
8f8b67f65e Refactor the dump/annotation functionality 2013-03-03 23:47:28 -08:00
Ben Gruver
31d87776c4 Refactor/rewrite the AnnotatedBytes class and helpers
This allows annotations to be added out-of-order, rather than the previous
requirement of forward-only annotating
2013-03-03 18:00:53 -08:00
Ben Gruver
46cefa3d5b Factor out dependency versions, and upgrade to gradle 14.0 2013-03-03 17:58:02 -08:00
Ben Gruver
cc3be5df1e Make RawDexFile extends DexBackedDexFile.Impl 2013-02-28 22:49:31 -08:00
Ben Gruver
ff32d5cc14 Refactor how annotatations are handled a bit, and add annotations for TypeListItems 2013-02-26 22:20:43 -08:00
Ben Gruver
373ff22ec6 Beginning of annotated dump implementation 2013-02-24 15:58:24 -08:00
Ben Gruver
a78d169848 Make DexFileFactory return a DexBackedDexFile 2013-02-24 15:38:12 -08:00
Ben Gruver
50ef7eda3f Create smali.jar/baksmali.jar symlinks after building jars 2013-02-24 15:38:12 -08:00
Ben Gruver
e77b5a7354 Sort the interfaces before writing them, in baksmali 2012-12-29 14:47:22 -08:00