1676 Commits

Author SHA1 Message Date
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
546fdfe3d1 Fix an unprotected read in SmaliClassReferenceSearcher 2015-05-09 11:15:33 -07:00
Ben Gruver
1895a4df82 Fix NPE in SmaliClass.setName() 2015-05-05 20:46:17 -07:00
Ben Gruver
46b359cf21 Fix an NPE related to an array descriptor just before an EOF 2015-05-05 20:40:02 -07:00
Ben Gruver
7061b7871d Fix ClassMoveTest's basicToNoPackage test 2015-05-04 21:07:16 -07:00
Ben Gruver
d9192ae850 Add missing gson dependency 2015-05-04 21:06:33 -07:00
Ben Gruver
632924c9c6 Improve whitespace normalization in baksmali's AnalysisTest 2015-05-01 22:01:06 -07:00
Ben Gruver
3f4e6a388a Fix NPE in SmaliCodeFragmentFactory.isContextAccepted 2015-05-01 21:42:26 -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
7f54770868 Fix an unprotected read access in SmaliPositionManager.createPrepareRequest 2015-04-03 21:29:38 -07:00
Ben Gruver
660d4b5fd9 Workaround for issue with fake Object field type during indexing 2015-04-03 21:29:07 -07:00
Ben Gruver
4bc2334c39 Bump the version to v0.02 2015-04-03 00:23:46 -07:00
Ben Gruver
5deac6ede2 Add an error reporter that can create issues on github 2015-04-03 00:07:10 -07:00
Ben Gruver
93ae7badcd Ensure that SmaliCodeFragmentFactory is only used for smali files 2015-04-02 20:59:18 -07:00
Ben Gruver
4f16feb476 Ensure that SmaliModifierList's direct parent is a PsiModifierListOwner 2015-04-02 19:48:22 -07:00
Ben Gruver
912a474644 Merge branch 'master' into smalidea 2015-03-31 20:02:14 -07:00
Ben Gruver
312921148d Add smali classes to the main shortname index
This ensures the classes are available for autocompletion, e.g. in
a java file or while adding a watch when debugging
2015-03-31 19:59:21 -07:00
Ben Gruver
48aacd2c01 Add support for renaming methods 2015-03-31 18:51:48 -07:00
Ben Gruver
923cc91ea2 Add support for renaming fields 2015-03-30 21:26:03 -07:00
Ben Gruver
07e6ade7fe Add support for renaming/moving classes 2015-03-28 12:50:36 -07:00
Ben Gruver
50810d1f5b Add usage type support for method usages 2015-03-25 19:45:31 -07:00
Ben Gruver
9bedfc8e3e Add usage type support for field usages 2015-03-25 19:45:20 -07:00
Ben Gruver
9b86fcabff Add usage type support for class usages 2015-03-24 22:09:37 -07:00
Ben Gruver
99d0803eda Use createTypeFromText instead of createTypebyFQClassName
createTypeByFQClassName doesn't correctly handle primitive types
2015-03-21 13:39:58 -07:00
Ben Gruver
29a71371ad Implement SmaliClass.isInheritor/isInheritorDeep 2015-03-21 11:09:58 -07: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
aa4b0a0506 Remove completed TODO regarding PsiAnnotationMethods 2015-03-18 21:11:58 -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
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
ddc7c35e1c Add support for annotation element references
This adds support for both find usages and "go to definition"
functionality on an annotation element.
2015-03-15 14:55:57 -07:00
Ben Gruver
44a0c9091f Implement PsiAnnotationMethod in SmaliMethod 2015-03-14 12:34:04 -07:00
Ben Gruver
87f3e0dc7b Add support for finding field usages 2015-03-12 20:59:29 -07:00
Ben Gruver
6c99c3e111 Exclude nameless fields from SmaliClass.getFields()
Fields with a null or blank name tend to cause problems, so we'll just
exclude them until they have a name.
2015-03-12 20:59:02 -07:00