199 Commits

Author SHA1 Message Date
Ben Gruver
bf95959ae4 Move ExceptionWithContext to Util module 2012-10-15 20:23:01 -07:00
Ben Gruver
1176b75123 Add support for new virtual table generation
This adds support for a fix in dalvik that changes the way
virtual tables are generated.

This new logic can be turned on with the -K option. This option
will be removed once the new functionality can be tied to a released
api level, at which point, it will be triggered when using an
appropriate api level with the -a option.
2012-10-11 19:59:49 -07:00
Ben Gruver
92a9aa2aa5 Minor cleanup of synthetic access related stuff 2012-10-08 19:18:06 -07:00
Ben Gruver
60bb8c675c Simply the generic-ity around Instruction, OffsetInstruction and InstructionMethodItem 2012-09-25 20:18:42 -07:00
Ben Gruver
de3a5f95ae Fix how the classpath is set for JavaExec gradle tasks 2012-09-24 00:20:30 -07:00
Ben Gruver
40c48da564 The great tab cleanup of 2012 2012-09-23 21:16:21 -07:00
Ben Gruver
181c04c839 Add copyright/license for build scripts 2012-09-16 00:03:44 -07:00
Ben Gruver
9382ba8591 Use JavaExec instead of ant.java 2012-09-15 23:17:12 -07:00
Ben Gruver
c9afead1a9 Implement proguard support 2012-09-15 22:56:10 -07:00
Ben Gruver
5cf9fe7c0a Generate fat jars for smali and baksmali 2012-09-15 19:21:34 -07:00
Ben Gruver
7d1263a4ff Implement versioning in the gradle build 2012-09-15 19:21:30 -07:00
Ben Gruver
1026c6c10c gradleize baksmali project 2012-09-15 15:58:43 -07:00
Ben Gruver
4af666e4a6 Remove support for the extended opcodes 2012-08-24 16:54:05 -07:00
Ben Gruver
5934004fe3 Allow try end addresses that fall in the middle of an instruction 2012-08-24 14:52:55 -07:00
Ben Gruver
343df2f456 Simplify deodexing
This makes it possible to deodex an odex file using only the dependencies
listed in the odex file itself. Adding extra dependencies via the -c
option should no longer be needed.
2012-07-05 21:55:54 -07:00
Ben Gruver
5b4073a85c Add the findbugs library to baksmali explicitly, rather than transitively through dexlib 2012-07-05 21:54:03 -07:00
Ben Gruver
a9ce1cf3ec For unknown opcodes, mention the original opcode value in a comment 2012-07-03 22:36:29 -07:00
Ben Gruver
5f2ad8bd13 Suppress some warnings when doing the proguard thing 2012-06-20 22:22:11 -07:00
Ben Gruver
0534f304b6 Use proguard on the assembled smali/baksmali jars
This is primarily to remove any unused classes, to reduce the jar size
2012-06-20 16:32:28 -07:00
Ben Gruver
7bb622e0b1 Set the default local to en-US, to avoid locale specific weirdness 2012-06-19 18:03:44 -07:00
Ben Gruver
3f70d08442 Gracefully handle duplicate methods and fields in baksmali
baksmali will emit duplicate methods and fields as commented blocks, when it
is safe to do so.
2012-06-19 16:03:20 -07:00
Ben Gruver
cf01f5db09 Refactor ClassDefItem
This primarily adds nullable/nonnull annotations, and fixes a few related issues
2012-06-05 18:34:09 -07:00
Ben Gruver
10ebad1205 Refactor the ClassDataItem interface
This improves the usability and makes the nullness (or nonnullness) for
various things explicit.
2012-06-05 18:09:38 -07:00
Ben Gruver
e5466fee23 Add annotation lookup functionality to AnnotationDirectoryItem 2012-06-05 18:09:33 -07:00
Ben Gruver
b71c12967b Refactor the interface of AnnotationDirectoryItem
This makes it easier to use, and fixes a few null safeness issues.
2012-06-05 17:59:45 -07:00
Ben Gruver
2bfc114146 Clean up the maven configuration
This allows everything to be built with a simple "mvn package" from the root
2012-05-23 14:31:11 -07:00
Ben Gruver
36c2f08ba0 Clean up how the usage messages are printed
This also fixes an OOM issue when trying to print the usage message
on a terminal that doesn't report its width.
2012-05-13 11:57:50 -07:00
Ben Gruver
a4b5f66e4c Fix an issue with missing parameter annotations in methods without a body 2011-12-20 20:27:55 -08:00
Ben Gruver
0da8e11d11 Make sure the api level is set before reading in the dex file 2011-11-20 23:13:55 -08:00
Ben Gruver
4d3b3311e1 Fix a few issues with Format 35mi 2011-11-20 20:21:30 -08:00
Ben Gruver
c8de336727 Use Format 35c for invoke-direct-empty, and get rid of Format 35s 2011-11-20 15:46:40 -08:00
Ben Gruver
5967598d01 Add support for specifying a custom inline method table to use while deodexing 2011-11-20 15:46:40 -08:00
Ben Gruver
e00d96c438 Fix an issue with the handling of sparse-switch-data blocks 2011-11-20 15:46:40 -08:00
Ben Gruver
c2f08d5123 Add support for an --api-level parameter 2011-11-20 15:46:40 -08:00
Ben Gruver
c4db7e2473 Add support for Format5rc 2011-11-20 15:46:39 -08:00
Ben Gruver
1efc2c0388 Add support for Format52c (type references) 2011-11-20 15:46:39 -08:00
Ben Gruver
d863324ffb Add support for Format41c (field references) 2011-11-20 15:46:39 -08:00
Ben Gruver
d12c769276 Add support for Format41c (type references) 2011-11-20 15:46:38 -08:00
Ben Gruver
f40b4e9a1e Delete the old, unused string template 2011-11-19 11:39:49 -08:00
Ben Gruver
b0c62b9781 Seperate out execute-inline and execute-inline/range into seperate 35mi and 3rmi formats 2011-11-19 11:39:49 -08:00
Ben Gruver
3bfd77dff0 Use the term VtableIndex rather than MethodIndex for invoke-*-quick instructions/formats 2011-11-19 11:39:49 -08:00
Ben Gruver
225535b1c9 Add .gitignore files to exclude the target directory for the various modules 2011-11-19 11:39:45 -08:00
Ben Gruver
bbe539f2d2 Add support for the throw-verification-error opcode 2011-10-09 22:51:39 -04:00
Ben Gruver
cb3e0ea38a Improve the way sparse/packed switch data blocks are found and processed 2011-10-09 01:19:25 -04:00
Ben Gruver
3c4f8094a2 Fix possible issue(?) in IntegerRenderer.writeUnsignedTo 2011-07-15 13:32:36 -04:00
Ben Gruver
74c14ffcca Rename the printLongAsHex and printIntAsHex methods in IndentingWriter for clarity 2011-07-15 13:32:36 -04:00
jesusfreke@jesusfreke.com
baa030c201 Correctly escape any special characters in the value of the .source directive
git-svn-id: https://smali.googlecode.com/svn/trunk@811 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2011-06-03 01:40:23 +00:00
jesusfreke@jesusfreke.com
a564a1733b Don't forget to check if synthetic accessor comments are disabled
git-svn-id: https://smali.googlecode.com/svn/trunk@810 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2011-05-20 06:37:17 +00:00
jesusfreke@jesusfreke.com
2f376953b4 Add helper comments for synthetic member accessors
This adds a comment before a synthetic member accessor is called, which
mentions what member in the parent is being accessed

Kudos to jasta for suggesting this feature!

git-svn-id: https://smali.googlecode.com/svn/trunk@809 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2011-05-20 06:16:22 +00:00
JesusFreke@JesusFreke.com
b9a19bf3f1 Remove deodexerant and related functionality
git-svn-id: https://smali.googlecode.com/svn/trunk@797 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2010-12-21 17:33:20 +00:00