1343 Commits

Author SHA1 Message Date
Ben Gruver
0f8017e16a Remove stale license noticeds from NOTICE file 2015-01-22 16:50:49 -08:00
Ben Gruver
bc5ad6ab70 Bump version number to 2.0.5 2015-01-20 19:07:07 -08:00
Ben Gruver
a4dd1fd25b Make ClassFileNameHandler thread-safe 2015-01-20 19:01:39 -08:00
Ben Gruver
f5d3fc4a6d Switch the default for implicit references 2015-01-20 19:01:18 -08:00
Ben Gruver
39c77fa5bd Bump version number to 2.0.4 2015-01-20 08:55:16 -08:00
Ben Gruver
103e04a4a9 Add stringtemplate dependency to smali, because proguard. 2015-01-20 08:55:16 -08:00
Caleb Fenton
9546ddf95a Add registers directive so example will compile 2015-01-20 08:18:32 -08:00
Ben Gruver
e032f1d8c7 Refactor ClassFileNameHandler
This makes the logic quite a bit easier to follow, and fixes an issue
with the previous implementatation, where it didn't correctly handle
the case when were multiple long names that collided after being
shortened
2015-01-07 17:14:44 -08:00
Ben Gruver
e778f7b865 Make the checkPackagePrivateAccess functionality an option
This is only needed for 4.2.0, but not 4.2.1. Both are api 17, so we can't
tie this functionality to an api level.
2014-12-28 15:03:02 -08:00
Ben Gruver
83ec5cf9a3 Merge pull request #25 from yyjdelete/patch-1
checkPackagePrivateAccess only for API 17(4.2)
2014-12-28 14:49:44 -08:00
Ben Gruver
d83c439ce2 Fix some generics issues when compiling with java 8 2014-12-28 14:15:08 -08:00
Ben Gruver
0b42b4f41e Disable doclint for java 8 2014-12-28 14:14:39 -08:00
Ben Gruver
aae58716e7 Fix some javadoc issues 2014-12-28 14:14:19 -08:00
Ben Gruver
d15e31526f Expose the various fixed-size item counts in DexBackedDexFile 2014-12-28 12:25:03 -08:00
Ben Gruver
7296c9e957 Refactor VariableSizeLookaheadIterator
Previously, when referencing instance fields from readNextItem,
the fields wouldn't have been initialized yet on the first call to
readNextItem
2014-12-28 12:15:17 -08:00
yyjdelete
d1dbf6b14b Use options.checkPackagePrivateAccess 2014-11-14 21:59:08 +08:00
yyjdelete
62c103d92a checkPackagePrivateAccess only for API 17(4.2)
Google revert this for compatibility.
see 7284c78e14 for details.

BTW, it seems that is also disabled for late 4.2
2014-11-14 20:50:13 +08:00
Ben Gruver
686cf35c8e Add some additional checks related to instruction size 2014-11-06 23:03:46 -08:00
Ben Gruver
20d4a3c2b4 Use dlerror() to clear any error before retrying with the mangled name
Thanks to Catalin Ontanu for reporting this, and then doing more
investigation to find and test the solution.
2014-11-06 23:03:46 -08:00
Ben Gruver
e6423bd1e1 Merge pull request #23 from iBotPeaches/master
Implement dex entry for non classes.dex files
2014-11-06 21:33:56 -08:00
Connor Tumbleson
6811d13935 Implement dex entry for non classes.dex files 2014-11-06 23:09:44 -06:00
Ben Gruver
f3d063dd17 Merge pull request #24 from CalebFenton/master
Use 2.x 'param' directive
2014-11-06 17:47:14 -08:00
Caleb Fenton
45e4284c1d Use 2.x 'param' directive 2014-10-10 14:17:57 -07:00
edwardxwu
d354893f71 Fixed the bug of not setting the location field of the instruction in addInstruction(i,instruction) method 2014-08-29 20:45:22 -07:00
Ben Gruver
f1fe3a0062 Merge pull request #21 from whydoubt/floating-point-values
Floating point values
2014-08-16 11:55:01 -07:00
Jeff Smith
9cc35b2d05 No need to reevaluate 'resource != null' 2014-08-15 14:25:38 -05:00
Ben Gruver
0d8418ff1f Allow but ignore multiple exception handlers for the same exception 2014-07-21 18:54:30 -07:00
Ben Gruver
5316638892 Improve the readability of the newline normalization stuff for tests 2014-07-19 20:33:37 -07:00
Ben Gruver
4143313b05 Fix potential NPE in MethodAnalyzer 2014-07-19 20:27:00 -07:00
Ben Gruver
d33fd6773c Implement implicit method/field references in baksmali 2014-07-19 20:26:50 -07:00
Ben Gruver
ce7f93cd79 Implement implicit method/field references in smali 2014-07-19 18:53:53 -07:00
Ben Gruver
a37e508ffa Add missing "break" from switch statement in BuilderClassPool 2014-07-15 22:57:25 -07:00
Ben Gruver
5280047b42 Ensure the annotation elements are sorted when written 2014-07-15 22:54:41 -07:00
Ben Gruver
37ade89bda Improve how method parameter lists are lexed 2014-02-17 14:23:39 -08:00
Jeff Smith
0b836342e2 Give comment-generating functions more precise naming 2014-02-17 00:08:50 -06:00
Jeff Smith
bfecccf113 Merge remote-tracking branch 'upstream/master' into floating-point-values 2014-02-16 22:29:04 -06:00
Ben Gruver
b90e2a4c62 Clean up some unused/unneeded tokens in smaliParser.g 2014-02-03 19:32:41 -08:00
Ben Gruver
2d8cbfe6bc Add support for non-standard invoke-object-init/range instructions 2014-02-02 19:29:26 -08:00
Ben Gruver
a837380521 Upgrade to gradle 1.10 2014-02-02 12:49:44 -08:00
Ben Gruver
3b5d84c3ae Truncate filenames based on their utf-8 length 2014-02-01 14:43:54 -08:00
Ben Gruver
dd2079cd53 Fix NPE when using a custom inline method table 2014-01-29 19:39:34 -08:00
Ben Gruver
15e44d5b8b support c++ dalvik in deodexerant 2014-01-29 19:21:32 -08:00
Ben Gruver
4357de47e3 Add new experimental dex rewriter functionality 2014-01-18 20:34:30 -08:00
Ben Gruver
78328a6035 Minor comment fix in MutableMethodImplementation 2014-01-18 15:47:57 -08:00
Ben Gruver
1d28b32ff5 Refactor the maven upload build stuff
This also adds the required javadoc jars
2014-01-18 11:33:39 -08:00
Ben Gruver
0845df7dd0 Don't throw an exception in the build if the sonatype user/password isn't set 2014-01-17 02:40:12 -08:00
Ben Gruver
7cf2b33cbd Bump the version to 2.0.3 2014-01-17 02:05:32 -08:00
Ben Gruver
5b411f3447 Add gradle configuration for uploading smali artifacts to maven 2014-01-17 02:04:07 -08:00
Ben Gruver
90db3a16b7 Lazily create the lists in MethodLocation
Millions of MethodLocations can be created and kept in memory when
using the Builder interface to build a large dex file. The arrays
backing these lists were taking up a large amount of memory.
2014-01-16 21:29:26 -08:00
Ben Gruver
532c04b27d Use known-good locale when doing jflex codegen
jflex appears to be using the default locale for a String.toUpperCase
somewhere, which causes incorrect java code to be generated in the
turkish locale.
2013-12-29 14:51:09 -08:00