Ben Gruver
198e0816cf
Fix argument name for offsets in Preconditions class
2013-06-22 13:02:33 -07:00
Ben Gruver
b70b2e0e40
Update version to 2.0b5
2013-06-15 21:40:16 -07:00
Ben Gruver
a96cdbee3a
Merge pull request #15 from izzytwosheds/bugfixes
...
Interface methods in the vtable are called on current class, not interface
2013-06-15 20:38:14 -07:00
Izzat Bahadirov
805b247b7d
Interface methods in the vtable are called on current class, not interface.
...
During optimization Dalvik checks if method is invoked on an interface, which causes warnings or errors. To prevent this, we assume that the class we are generating vtable for implements the interface, invoke the interface method on that class and let Dalvik resolve it at runtime.
2013-06-15 23:21:05 -04:00
Ben Gruver
4a92c48839
Use the correct register when creating an UnresolvedOdexInstruction
2013-06-15 18:12:46 -07:00
Ben Gruver
02560f3f7f
Make sure the referenced class is accessible when deodexing a field/method access
2013-06-15 18:12:09 -07:00
Ben Gruver
8553393690
Fix some warnings in MethodAnalyzer
2013-06-15 18:12:05 -07:00
Ben Gruver
5a372d5fcf
Make SyntheticAccessorResolver thread safe
2013-06-15 11:32:31 -07:00
Ben Gruver
e59a185fa6
Merge pull request #14 from izzytwosheds/payload_alignment
...
Payload alignment
2013-06-06 16:56:59 -07:00
Izzat Bahadirov
46619d11bf
More proper unit test conditions.
2013-06-04 21:40:42 -04:00
Izzat Bahadirov
180529840c
Always aligning payload instructions.
2013-06-04 15:44:12 -04:00
Izzat Bahadirov
6d48e5db17
Breaking out of loop after test condition verification.
2013-06-04 15:35:54 -04:00
Ben Gruver
01cfa02bfe
Fix issue with opcodes that have a max api
2013-06-01 14:27:57 -07:00
Ben Gruver
d1c0848d13
Don't reuse map entries for the class iterator in ClassPool
2013-06-01 13:53:14 -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
f1f00f9f6e
Initialize ClassDef index to -1 instead of 0 in DexPool
2013-06-01 13:41:53 -07:00
Ben Gruver
2973f7a4af
Fix issue in DexPool with blank parameter annotations
2013-06-01 13:06:04 -07:00
Ben Gruver
9ed12bac38
Add a common superclass for Annotation and AnnotationEncodedValue
2013-05-28 11:06:57 -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
8987784d7d
Update version to 2.0b4
2013-05-12 21:00:17 -07:00
Ben Gruver
0a7f00ccb1
Use Iterable<DexFile> instead of DexFile[] in ClassPath constructor
2013-05-12 20:59:50 -07:00
Ben Gruver
74436bdd2f
Fix issues with initialization of bootClassPath and inlineResolver
2013-05-12 20:55:10 -07:00
Ben Gruver
60ab9b199c
Update version to 2.0b3
2013-05-12 12:40:16 -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
dd77ba20f4
Git rid of some warnings in smali's main.java
2013-05-12 12:31:31 -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
0e103007d1
Update revision to 2.0b2
2013-05-07 19:40:21 -07:00
Ben Gruver
ec1348b46d
Allow vtable lookups of Object methods for a class that can't be fully resolved
2013-05-07 19:38:38 -07:00
Ben Gruver
4ee6056b23
Remove unnecessary TODO
2013-05-07 18:50:57 -07:00
Ben Gruver
f60061e0e7
Update version to 2.0b1
2013-05-07 00:05:47 -07:00
Ben Gruver
2a91095e8c
Fix up proguard configuration
2013-05-07 00:05:34 -07:00
Ben Gruver
a2069cd866
Fix issue with deodexing invoke-virtual-quick/range
2013-05-06 23:57:35 -07:00
Ben Gruver
9743f4de0c
Deodex an invoke-object-init/range as a non-range invoke-virtual when possible
2013-05-06 23:57:09 -07:00
Ben Gruver
94565fa09e
Don't replace virtual methods with interface methods in the vtable
2013-05-06 23:56:20 -07:00
Ben Gruver
a7f2135b2f
Factor out repeated calls to getVtable() in getMethodByVtableIndex
2013-05-06 23:55:51 -07:00
Ben Gruver
86112a840f
Add some java docs for the getInterface methods
2013-05-06 22:07:55 -07:00
Ben Gruver
fad4d1a1a9
Sort the instance fields and use List<Field> rather than Field[]
2013-05-06 22:07:49 -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
Izzat Bahadirov
363af0a52b
Using newer API getInstanceFields() instead of getFields() + filtering.
2013-05-06 21:07:45 -04:00
Izzat Bahadirov
490a8b2cd0
Another @Nonnull.
2013-05-06 21:02:31 -04:00
Izzat Bahadirov
3aa6e2d4fa
Using Predicates.notNull() to filter for direct interfaces.
2013-05-06 20:59:43 -04:00
Izzat Bahadirov
0ac9242368
More @Nonnull's.
2013-05-06 15:21:49 -04:00
Izzat Bahadirov
b16caa690d
More elegant way of getting direct interfaces, now using FluentIterable.
2013-05-06 14:46:59 -04:00
Izzat Bahadirov
4147960f6e
Propagating interfacesFullyResolved from the parent.
2013-05-06 14:26:53 -04:00
Ben Gruver
a22cdb820a
Remove extraneous fields in Opcode
2013-05-05 18:25:47 -07:00
Ben Gruver
d54761778b
Fix issue when writing parameter annotations
2013-05-03 21:02:52 -07:00
Ben Gruver
05201785fe
Clean up some more TODOs
2013-05-03 21:02:39 -07:00
Ben Gruver
d38f3a7983
Fix up line number handling to be unsigned int safe
2013-05-03 19:35:47 -07:00
Izzat Bahadirov
9d8cf0d67c
Added self (if interface) and super class interfaces to the interface table.
2013-05-03 16:16:23 -04:00