Commit Graph

1923 Commits

Author SHA1 Message Date
1df3869a30 Don't add tools.jar when building the idea project files 2016-02-20 12:04:48 -08:00
7b387e06c5 Gracefully handle analysis errors 2016-02-20 12:04:47 -08:00
5b2943d89b Check for switch offset validity in the MethodAnalyzer 2016-02-20 12:04:47 -08:00
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
4b337cc04d Allow local search scopes when searching class usages 2016-02-20 12:00:05 -08:00
f16ea398a1 Don't require an active debugging session when making a code fragment
This is needed, e.g. when editing a conditional statement in the
breakpoint window.
2016-02-20 12:00:05 -08:00
92f8ec50c5 Add the ideadirs task for smalidea 2016-02-14 12:53:56 -08:00
df4e74e41c Make smalidea a separate gradle/idea project 2016-02-14 12:53:56 -08:00
6e788c8a8e Move META-INF/plugin.xml under resources 2016-02-14 12:50:31 -08:00
2e7fe1b8fe Fix the tests that require a real jdk 2016-02-14 12:50:31 -08:00
327957ae66 Update for new MethodAnalyzer signature 2016-02-14 12:50:31 -08:00
1b00e0a155 Add the .tokens files to the binary jar 2016-02-14 12:50:31 -08:00
0be7264eb3 Bump gradle up to 2.11 2016-02-14 12:50:31 -08:00
5bdb7ee520 Bump the version to 2.1.2 2016-02-14 12:50:31 -08:00
8533ab7429 Merge branch 'master' into smalidea 2016-02-13 15:43:37 -08:00
b12d4e9ec8 Bump the version number to 2.1.1 2016-01-10 11:24:31 -08:00
73bd8ce9d4 Add a speculative fix for unicode filename errors on Mac 2015-12-04 12:00:27 -08:00
3e265038f5 Implement support for adding new labels to a MutableMethodImplementation 2015-10-18 13:24:34 -07:00
b8e255f389 Add support for 64-bit oat files 2015-10-17 14:47:10 -07:00
e202aeede5 Pass in the Opcodes to use for SyntheticAccessorFSM 2015-10-17 13:50:26 -07:00
4c66761aea Minor javadoc fix for AnalyzedInstruction.setPostRegisterType 2015-10-17 13:48:54 -07:00
da58cc8991 Only use the instance-of/if-eqz type info if we're getting more information
We should only use the type info from an instance-of/if-eqz combo if we're
going from an interface to a class, or going from a class to a subtype
of that class -- otherwise, we're actually losing information.
2015-10-17 13:18:55 -07:00
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
37d14becd1 Fix register propagation when overriding a register type from a predecessor 2015-10-14 21:57:23 -07:00
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
d6b17b9935 Don't add an empty .param annotation when not writing debug info 2015-10-13 18:46:13 -07:00
ccf087b0dd Bump up MAX_OAT_VERSION to 71 2015-10-01 22:51:10 -07:00
7844089286 Add support for alternate field ordering starting at oat version 67 2015-10-01 22:50:35 -07:00
d6043955f5 Fix minor issue in DisassemblyTest 2015-10-01 19:03:23 -07:00
ea3fdd7e86 Merge branch 'master' into smalidea 2015-10-01 08:34:21 -07:00
a9dcd62b92 Add link to wiki from README.md 2015-09-30 21:09:56 -07:00
bec8743c15 Bump the version number to 2.1.0 2015-09-30 20:39:37 -07:00
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
c8c70ac58e Add support for calculating field offsets for art 2015-09-30 20:36:12 -07:00
64785d79a3 Add support for using an oat file as the boot class path 2015-09-30 20:36:12 -07:00
8920228819 Add oat support in DexFileFactory 2015-09-30 20:36:12 -07:00
3ff884b1c3 Add art-specific opcodes and opcode values 2015-09-29 23:41:30 -07:00
e5266afb14 Add a minimal parser for oat files 2015-09-29 23:40:52 -07:00
613c493e96 Bump the version number to 2.0.8 2015-09-24 15:07:44 -07:00
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
0c7e7b7ffc Add ability to list methods/fields/types when assembling with smali
This can be useful in analyzing why you are going over the 64k
method/field/type limit
2015-09-05 16:11:21 -07:00
05221069a9 Update README.md
Updated links, info, etc. now that googlecode is fully deprecated.
2015-09-05 13:24:58 -07:00
4d8ec4c795 Handle invalid debug item offsets more gracefully 2015-08-26 15:55:30 -07:00
3065d6b7de Add backwards compatible version of DexFileFactory.loadDexFile and Opcodes
Keep the old prototype, so we don't break existing code.
2015-06-18 17:44:30 -07:00
b960e8950b Replace a missed usage of Iterators.emptyIterator() 2015-06-18 17:40:57 -07:00
a5de80a453 Bump the version number to 2.0.7 2015-06-18 14:06:43 -07:00
7c97ddbb45 Remove usages of the deprecated Iterators.emptyIterator() method 2015-06-18 13:34:12 -07:00
0f1e995099 Add the generated accessorTest to source control
Some java compilers don't generate the synthetic accessor methods in the
way that the accessorTest is trying to test. So we build the test dex
file using a known-good compiler and check it in, ensuring the test is
always run using an appropriate dex file.
2015-05-23 11:26:35 -07:00
546fdfe3d1 Fix an unprotected read in SmaliClassReferenceSearcher 2015-05-09 11:15:33 -07:00
1895a4df82 Fix NPE in SmaliClass.setName() 2015-05-05 20:46:17 -07:00