Ben Gruver
37d14becd1
Fix register propagation when overriding a register type from a predecessor
2015-10-14 21:57:23 -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
ccf087b0dd
Bump up MAX_OAT_VERSION to 71
2015-10-01 22:51:10 -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
a9dcd62b92
Add link to wiki from README.md
2015-09-30 21:09:56 -07:00
Ben Gruver
bec8743c15
Bump the version number to 2.1.0
2015-09-30 20:39:37 -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
c8c70ac58e
Add support for calculating field offsets for art
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
Ben Gruver
e5266afb14
Add a minimal parser for oat files
2015-09-29 23:40:52 -07:00
Ben Gruver
613c493e96
Bump the version number to 2.0.8
2015-09-24 15:07:44 -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
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
Ben Gruver
05221069a9
Update README.md
...
Updated links, info, etc. now that googlecode is fully deprecated.
2015-09-05 13:24:58 -07:00
Ben Gruver
4d8ec4c795
Handle invalid debug item offsets more gracefully
2015-08-26 15:55:30 -07:00
Ben Gruver
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
Ben Gruver
b960e8950b
Replace a missed usage of Iterators.emptyIterator()
2015-06-18 17:40:57 -07:00
Ben Gruver
a5de80a453
Bump the version number to 2.0.7
2015-06-18 14:06:43 -07:00
Ben Gruver
7c97ddbb45
Remove usages of the deprecated Iterators.emptyIterator() method
2015-06-18 13:34:12 -07:00
Ben Gruver
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
Ben Gruver
8f0026eb46
Bump the version number to 2.0.6
2015-04-30 23:27:54 -07:00
Ben Gruver
583079cc43
Ensure that java 6 is used for release builds
2015-04-30 23:26:23 -07:00
Rover12421
17828564ba
README link fix
2015-04-09 21:51:09 -07:00
Ben Gruver
abd113eb3b
Ensure the stream is closed in DexFileFactory.loadDexFile
2015-04-09 21:33:33 -07:00
Ben Gruver
0a26ac2e5b
Upgrade to proguard 5.2.1
2015-04-09 21:33:22 -07:00
Rover12421
9838b83be9
ignore .idea directory
2015-04-10 11:58:29 +08:00
Rover12421
c55bef3604
DuplicateTest FAILED fix
2015-04-10 11:56:44 +08:00
Ben Gruver
923f5a7d10
Fix a bounds check problem in IndentingWriter
2015-03-20 16:39:07 -07:00
Ben Gruver
b742c40263
Comment out unused switch payload instructions
2015-03-20 16:38:19 -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
32e76b181b
Fix up the whitespace normalization in TextUtils.normalizeWhitespace
...
Previously, all inter-line whitespace was being removed. And it now
normalizes trailing new lines as well
2015-03-17 21:16:36 -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
Ben Gruver
0c982a02f1
Add Member and Annotatable interfaces
2015-03-16 20:52:55 -07:00
Ben Gruver
bf167c2f0e
Make sure the elements are sorted in an encoded annotation
2015-03-16 20:36:34 -07:00
Ben Gruver
b76dee7ebd
Don't assume dx is on-path. Rather, grab it from maven central
...
The version of dx in maven central seems to be fairly old, but it works
well enough for our purposes.
2015-03-16 19:54:57 -07:00
Ben Gruver
dd91dd1a71
Merge pull request #31 from iam/lambda_work
...
Add lambda experimental dalvik opcodes
2015-03-16 16:01:29 -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
f70084bdfe
Use [^] for the lexer's catch-all rule
...
[^] matches the entire character set, while . doesn't match new lines, etc.
2015-03-04 00:16:46 -08:00
Ben Gruver
e7f1549573
Merge pull request #28 from victorkp/master
...
Update doedexerant makefile
2015-03-03 18:10:16 -08:00
Ben Gruver
6a56d9a9e9
Merge pull request #29 from yirkha/master
...
Fix for Dalvik VM crash on parameter annotations
2015-03-03 18:08:44 -08:00
Ben Gruver
ea4074fdcc
Don't try to test for reserved file names
...
Instead, we'll just check os.name
2015-03-01 22:42:48 -08:00
Ben Gruver
c19627e2d3
Enable parallel gradle execution by default
2015-03-01 22:35:30 -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