6762350ca0
Add ability to converting MethodImplementation to MutableMethodImplementation
2013-09-14 00:32:32 -07:00
9a2de93a99
Implement just-in-time instruction fixup due to string jumboification
2013-09-08 21:41:23 -07:00
99b46173c5
Generify the IO requirements for writing a dex file
...
The DexWriter implementations now write to a generic "DexDataStore", instead
of writing directly to a file.
Also, writing of the DebugItems and CodeItems are linked, with the code
items being written to a temporary location, and then the entire code item
section is written as a batch after the debug item section.
2013-09-08 15:30:58 -07:00
160449b83a
Implement instruction fixing in MutableMethodImplementation
2013-09-07 14:54:16 -07:00
e80efa670f
Implement instructions for the method builder
2013-09-02 12:20:13 -07:00
688611814d
Implement debug items for the method impl builder
2013-09-01 16:44:20 -07:00
bb7937fd30
Get rid of the MethodItem concept
2013-09-01 09:37:49 -07:00
897832aa15
Implement try blocks for the method builder
2013-08-31 15:37:10 -07:00
160fc1cdba
Split off a separate MutableMethodImplementation and implement labels
2013-08-31 14:12:58 -07:00
e94ee6fe80
Delete InstructionWriteUtil
2013-08-25 11:07:43 -07:00
dff046e1b5
Delete BuilderMethodImplementation, and simplify the DexWriter stuff accordingly
...
DexBuilder.internMethod now accepts a generic MethodImplementation instead. It is assumed that
the various String/Type/etc. references will have been interned by and returned from the
appropriate DexBuilder methodDelete BuilderMethodImplementation
DexBuilder.internMethod now accepts a generic MethodImplementation instead. It
is assumed that the various String/Type/etc. references will have been
interned by and returned from the appropriate DexBuilder method
2013-08-24 21:53:05 -07:00
0cd8417155
Remove the Instruction template parameter from DexWriter
2013-08-24 21:49:26 -07:00
e9aa2c230f
Remove the Instruction template parameter from InstructionFactory
2013-08-24 21:47:57 -07:00
ca5de1d803
Remove the Instruction template parameter from ClassSection
2013-08-24 21:36:21 -07:00
6f135aeb74
Remove the ExceptionHandler template parameter from ClassSection
...
In DexBuilder, instead of statically specifying a specific ExceptionHandler
type, we dynamically check that the exception type reference returned from
the ExceptionHandler is of the proper type
2013-08-24 21:29:20 -07:00
9bbcaae91f
Remove the DebugItem template parameter from ClassSection
...
In DexBuilder, instead of statically specifying a specific DebugItem type,
we dynamically check that the various String/Type References returned by
the items are of the proper type
2013-08-24 21:29:10 -07:00
a4e0efe9a5
Add ExceptionHandler.getExceptionTypeReference method
2013-08-24 20:23:12 -07:00
f320ed5293
Remove some incorrectly applied @Nonnull attributes
2013-08-24 18:53:32 -07:00
f97289cf3e
Remove unneeded format precondition checks
...
The format precondition check should always occur in the base instruction
class
2013-08-24 18:53:32 -07:00
766f285a70
Initial stub MethodImplementationBuilder and integration into smali
2013-08-24 18:53:26 -07:00
a81c962f00
Remove support for using arbitrary offsets instead of labels
2013-08-24 15:52:38 -07:00
e636af4931
Fix bound check for short offset in Precoditions class
2013-06-22 13:07:39 -07:00
198e0816cf
Fix argument name for offsets in Preconditions class
2013-06-22 13:02:33 -07:00
b70b2e0e40
Update version to 2.0b5
2013-06-15 21:40:16 -07:00
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
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
4a92c48839
Use the correct register when creating an UnresolvedOdexInstruction
2013-06-15 18:12:46 -07:00
02560f3f7f
Make sure the referenced class is accessible when deodexing a field/method access
2013-06-15 18:12:09 -07:00
8553393690
Fix some warnings in MethodAnalyzer
2013-06-15 18:12:05 -07:00
5a372d5fcf
Make SyntheticAccessorResolver thread safe
2013-06-15 11:32:31 -07:00
e59a185fa6
Merge pull request #14 from izzytwosheds/payload_alignment
...
Payload alignment
2013-06-06 16:56:59 -07:00
46619d11bf
More proper unit test conditions.
2013-06-04 21:40:42 -04:00
180529840c
Always aligning payload instructions.
2013-06-04 15:44:12 -04:00
6d48e5db17
Breaking out of loop after test condition verification.
2013-06-04 15:35:54 -04:00
01cfa02bfe
Fix issue with opcodes that have a max api
2013-06-01 14:27:57 -07:00
d1c0848d13
Don't reuse map entries for the class iterator in ClassPool
2013-06-01 13:53:14 -07:00
49fa5f5f44
Don't crash if the smali/baksmali.properties file can't be found
2013-06-01 13:44:23 -07:00
f1f00f9f6e
Initialize ClassDef index to -1 instead of 0 in DexPool
2013-06-01 13:41:53 -07:00
2973f7a4af
Fix issue in DexPool with blank parameter annotations
2013-06-01 13:06:04 -07:00
9ed12bac38
Add a common superclass for Annotation and AnnotationEncodedValue
2013-05-28 11:06:57 -07:00
13705697c2
Clean up how the classes are sorted before being disassembled
2013-05-18 17:36:25 -07:00
8987784d7d
Update version to 2.0b4
2013-05-12 21:00:17 -07:00
0a7f00ccb1
Use Iterable<DexFile> instead of DexFile[] in ClassPath constructor
2013-05-12 20:59:50 -07:00
74436bdd2f
Fix issues with initialization of bootClassPath and inlineResolver
2013-05-12 20:55:10 -07:00
60ab9b199c
Update version to 2.0b3
2013-05-12 12:40:16 -07:00
dea5f8d544
Exit with non-zero status if any error occurred while running baksmali
2013-05-12 12:32:08 -07:00
dd77ba20f4
Git rid of some warnings in smali's main.java
2013-05-12 12:31:31 -07:00
7e25c35df7
Make baksmali thread safe, and add -j option
2013-05-12 12:31:24 -07:00
4b171afedb
Misc baksmali cleanup
2013-05-11 13:37:19 -07:00
0e103007d1
Update revision to 2.0b2
2013-05-07 19:40:21 -07:00