343 Commits

Author SHA1 Message Date
Ben Gruver
11d179bfdb Get rid of the default 6 thread maximum thing 2016-02-28 11:22:16 -08:00
Ben Gruver
6417e812e1 Refactor ClassPath to take ClassProviders
This allows for a more general mechanism for providing defined classes
2016-02-26 21:13:29 -08:00
Ben Gruver
6429b3daa9 Clean up the jar naming
The previous naming was interfering with 'gr install' installing the
artifacts locally.
2016-02-20 12:04:47 -08:00
Ben Gruver
8533ab7429 Merge branch 'master' into smalidea 2016-02-13 15:43:37 -08:00
Ben Gruver
e202aeede5 Pass in the Opcodes to use for SyntheticAccessorFSM 2015-10-17 13:50:26 -07:00
Ben Gruver
3124e94d4b Add support for static volatile opcodes in OdexedFieldInstructionMapper
This fixes a regression introduced in 2.1
2015-10-16 19:07:50 -07:00
Ben Gruver
398630dde5 Infer the register type based on the result of an instance-of instruction
In oat files, it's possible that a check-cast is removed based on the
register being provably of the type being cast to, based on the result
of an instance-of check.

Supporting this in general would require more sophisticated static analysis
than is currently done. Instead, this adds a special-case specifically
for the case of an instance-of followed immediately by an if-eqz
2015-10-13 21:59:47 -07:00
Ben Gruver
d6b17b9935 Don't add an empty .param annotation when not writing debug info 2015-10-13 18:46:13 -07:00
Ben Gruver
7844089286 Add support for alternate field ordering starting at oat version 67 2015-10-01 22:50:35 -07:00
Ben Gruver
d6043955f5 Fix minor issue in DisassemblyTest 2015-10-01 19:03:23 -07:00
Ben Gruver
ea3fdd7e86 Merge branch 'master' into smalidea 2015-10-01 08:34:21 -07:00
Ben Gruver
827e2db34d Add support for normalizing virtual methods
This is useful, for example, when comparing the result of deodexing with
the original dex file, to remove the "false" differences caused by the
different potential ways to reference a given virtual method.
2015-09-30 20:36:12 -07:00
Ben Gruver
64785d79a3 Add support for using an oat file as the boot class path 2015-09-30 20:36:12 -07:00
Ben Gruver
8920228819 Add oat support in DexFileFactory 2015-09-30 20:36:12 -07:00
Ben Gruver
3ff884b1c3 Add art-specific opcodes and opcode values 2015-09-29 23:41:30 -07:00
Alex Light
c456c55c40 Make smali respect order of implements
Previously smali would reorder implements directives to be
alphabetical in the dex file. In the Java 8 Language the order of
interfaces may affect the order of initializer invocation when using
default methods. Therefore we will preserve this order in
smali/baksmai.

Bug: 24338722

Change-Id: I6851b02a5402c7d4cd4b60af54052c320e48d0bf
2015-09-24 13:04:30 -07:00
Ben Gruver
632924c9c6 Improve whitespace normalization in baksmali's AnalysisTest 2015-05-01 22:01:06 -07:00
Rover12421
c55bef3604 DuplicateTest FAILED fix 2015-04-10 11:56:44 +08:00
Ben Gruver
912a474644 Merge branch 'master' into smalidea 2015-03-31 20:02:14 -07:00
Ben Gruver
b742c40263 Comment out unused switch payload instructions 2015-03-20 16:38:19 -07:00
Ben Gruver
75bef01d10 Merge branch 'master' into smalidea 2015-03-18 21:00:32 -07:00
Ben Gruver
2a0e4657ea Don't wrap a large (>32k) register count in a register directive 2015-03-18 20:13:02 -07:00
Ben Gruver
bd6385f062 Duplicate a switch payload that is refered to multiple times 2015-03-18 20:01:49 -07:00
Ben Gruver
1aad736c20 Ensure that sparse switch items are written out in the correct order 2015-03-17 21:18:19 -07:00
Ben Gruver
d4bce2e768 Don't propagate exceptions from RoundtripTest.runTest() 2015-03-17 21:14:24 -07:00
Ben Gruver
1e0677617c Extract out a base RoundtripTest and IdenticalRoundtripTest class 2015-03-17 20:41:20 -07:00
Igor Murashkin
144951a9e9 Add lambda experimental dalvik opcodes
* Add new -X/--experimental flag to [dis]assemble opcodes not in art yet
* Add new opcodes liberate-variable, box-lambda, unbox-lambda,
                  capture-variable, create-lambda, invoke-lambda
* Add support for encoding 25x instructions
* Adds LambdaTest to check new opcodes assemble/disassemble properly

TODO: invoke-lambda-range

Change-Id: I5c8bcbfa8b6cb9a13ef2017fce2d1b7fda6e11c3
2015-03-16 11:40:58 -07:00
Ben Gruver
8c1d8ddef2 Merge branch 'master' into smalidea3 2015-03-04 20:58:14 -08:00
Ben Gruver
06d108d791 Refactor how the PARAM_LIST_OR_ID thing is parsed
This gets rids of the empty placeholder tokens, which cause errors
in IDEA's built-in lexer support code
2015-03-04 20:56:53 -08:00
Ben Gruver
f0c481a7a1 Use single-quotes in build.gradle files when double-quotes aren't needed 2015-03-01 22:30:33 -08:00
Ben Gruver
900ad6ea87 Use the proguard plugin for gradle 2015-03-01 19:51:34 -08:00
Ben Gruver
f5d3fc4a6d Switch the default for implicit references 2015-01-20 19:01:18 -08:00
Ben Gruver
e778f7b865 Make the checkPackagePrivateAccess functionality an option
This is only needed for 4.2.0, but not 4.2.1. Both are api 17, so we can't
tie this functionality to an api level.
2014-12-28 15:03:02 -08:00
yyjdelete
d1dbf6b14b Use options.checkPackagePrivateAccess 2014-11-14 21:59:08 +08:00
Connor Tumbleson
6811d13935 Implement dex entry for non classes.dex files 2014-11-06 23:09:44 -06:00
Ben Gruver
f1fe3a0062 Merge pull request #21 from whydoubt/floating-point-values
Floating point values
2014-08-16 11:55:01 -07:00
Jeff Smith
9cc35b2d05 No need to reevaluate 'resource != null' 2014-08-15 14:25:38 -05:00
Ben Gruver
5316638892 Improve the readability of the newline normalization stuff for tests 2014-07-19 20:33:37 -07:00
Ben Gruver
d33fd6773c Implement implicit method/field references in baksmali 2014-07-19 20:26:50 -07:00
Jeff Smith
0b836342e2 Give comment-generating functions more precise naming 2014-02-17 00:08:50 -06:00
Jeff Smith
bfecccf113 Merge remote-tracking branch 'upstream/master' into floating-point-values 2014-02-16 22:29:04 -06:00
Ben Gruver
dd2079cd53 Fix NPE when using a custom inline method table 2014-01-29 19:39:34 -08:00
Ben Gruver
1d28b32ff5 Refactor the maven upload build stuff
This also adds the required javadoc jars
2014-01-18 11:33:39 -08:00
Ben Gruver
5b411f3447 Add gradle configuration for uploading smali artifacts to maven 2014-01-17 02:04:07 -08:00
Ben Gruver
eae0b0edbf Make sure we always shut down the executor
Previously, an ExecutionException from the task could cause the process
to hang, because the ExecutorService was never shut down
2013-12-12 01:37:14 -08:00
Jeff Smith
86c677ba84 Merge remote-tracking branch 'upstream/master' into floating-point-values 2013-12-10 19:45:58 -06:00
Ben Gruver
fce4cc0c42 Replace use of System.lineSeparator(), to keep compatibility with java 6 2013-12-08 17:44:15 -08:00
Ben Gruver
338db9fdf7 Fix up option parsing code for resource id stuff to use 'i' 2013-12-08 17:44:15 -08:00
Ben Gruver
68564258a3 occured -> occurred 2013-12-08 17:44:15 -08:00
Ben Gruver
d0c0c84d66 Don't System.exit from baksmali.disassembleClass 2013-12-08 17:44:15 -08:00