1408 Commits

Author SHA1 Message Date
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
Ben Gruver
eae0b0edbf Make sure we always shut down the executor
Previously, an ExecutionException from the task could cause the process
to hang, because the ExecutorService was never shut down
2013-12-12 01:37:14 -08:00
Ben Gruver
029ad25c66 Skip the call to String.format when annotating, if there are no values 2013-12-12 01:35:29 -08:00
Jeff Smith
86c677ba84 Merge remote-tracking branch 'upstream/master' into floating-point-values 2013-12-10 19:45:58 -06:00
Ben Gruver
fce4cc0c42 Replace use of System.lineSeparator(), to keep compatibility with java 6 2013-12-08 17:44:15 -08:00
Ben Gruver
338db9fdf7 Fix up option parsing code for resource id stuff to use 'i' 2013-12-08 17:44:15 -08:00
Ben Gruver
68564258a3 occured -> occurred 2013-12-08 17:44:15 -08:00
Ben Gruver
d0c0c84d66 Don't System.exit from baksmali.disassembleClass 2013-12-08 17:44:15 -08:00
Ben Gruver
65cb1628a0 Remove --check-package-private-access option
This ties the functionality to api >= 17
2013-12-08 17:44:15 -08:00
Ben Gruver
304aadf6e6 Allow primitive types for 21c instruction format (e.g. check-cast) 2013-12-08 17:44:15 -08:00
Ben Gruver
4f2620415d Add better handling for various types of invalid instructions 2013-12-08 17:44:11 -08:00
Ben Gruver
9057764c22 Add ReferenceInstruction.getReferenceType() 2013-12-07 15:11:37 -08:00
Ben Gruver
d3ba85b2ee Fix typo in method index OOB error message 2013-12-07 15:11:37 -08:00
Ben Gruver
dc802b0660 Make CodeItem annotations more robust 2013-12-07 15:11:37 -08:00
Ben Gruver
d7cd52308e Fix an issue with nop opcodes with a non-null second byte 2013-12-07 15:11:37 -08:00
Ben Gruver
ee3fb21461 Merge pull request #19 from whydoubt/master
Match and comment on resource IDs while performing baksmali
2013-12-07 14:53:21 -08:00
Ben Gruver
490c8d0d0f Merge pull request #20 from eyecatchup/master
Make AnalysisTest.java cross-platform safe
2013-12-07 14:49:38 -08:00
Jeff Smith
58d2efb8e5 baksmali: Write comments about possible floating-point values 2013-12-05 09:13:12 -06:00
Jeff Smith
20b7bbf63e baksmali: Only perform resource ID lookup once 2013-11-19 17:10:38 -06:00
Jeff Smith
9cf653f093 baksmali: resource-id-files should not be a debug option 2013-11-19 17:10:32 -06:00
Jeff Smith
d607960cff baksmali: Reverse pair ordering in resource-id-files option 2013-11-19 08:31:52 -06:00
Stephan Schmitz
4d9d58829b Make AnalysisTest.java cross-platform compatible
Use System.lineSeparator() for cross-platform compatible line endings for runTest() method in AnalysisTest.java. The patch fixes build failures of type `org.jf.baksmali.AnalysisTest > DuplicateTest FAILED [junit.framework.ComparisonFailure at AnalysisTest.java:107]` on Windows systems.
2013-11-18 10:01:55 +01:00
Jeff Smith
eb0b009971 baksmali: resource IDs are 32-bit 2013-11-14 15:14:57 -06:00
Jeff Smith
7e9231a211 baksmali: Write comments about matched resource IDs 2013-11-11 19:44:31 -06:00
Jeff Smith
29d4ccc8a9 baksmali: add command-line option to specify resource ID files 2013-11-11 19:44:24 -06:00
Ben Gruver
318954d56b Don't attempt to create the smali.jar/baksmali.jar symlinks on windows.
Unsurprisingly, ant.symlink is unsupported on windows.
2013-11-10 22:19:48 -08:00
Ben Gruver
b0295be60c Bump the version to 2.0.2 2013-11-10 22:07:33 -08:00
Ben Gruver
b49126325f Fix the start offset when calculating the signature header value 2013-11-10 22:07:02 -08:00
Ben Gruver
20f675b86b When writing a debug item, always include all parameters 2013-11-10 22:07:02 -08:00
Ben Gruver
08d90ec360 Don't write out 0-length type lists 2013-11-10 22:07:02 -08:00
Ben Gruver
f6958ae4bc Don't trim empty parameter annotations 2013-11-10 22:07:02 -08:00
Ben Gruver
263083faed Use StringReference for MethodImplementationBuilder.addSetSourceFile 2013-10-23 14:23:35 -07:00
Ben Gruver
a2bf7f64bc Fix issue with BuilderPackedSwitchPayload instructions
The transformation is performed lazily, and the keys were incorrect
when iterating over the elements more than once
2013-10-17 16:46:06 -07:00
Ben Gruver
ec6246a09c Update version to 2.0.1 2013-10-14 17:46:21 -07:00
Ben Gruver
899b1e6611 Improve MutableMethodImplementation for external use
Add various utility methods and use more specific overrides, to better
allow external users to access labels
2013-10-14 17:45:46 -07:00
Ben Gruver
902ba7d72d Fix annotation/initial value issues when iterating over fields/methods in a DexBackedDexFile
Make sure to make a new annotation/initial value iterator when making a new
field/method iterator
2013-10-12 02:14:02 -07:00