IgorEisberg
1472b50541
fix: pass opcodes=null for baksmali to auto-determine by dex version
...
When DexBackedDexFile gets opcodes==null, it calls getDefaultOpcodes(dexVersion) which returns the appropriate opcodes for the given dex version. No hints are required for baksmali, but only needed for smali.
https://github.com/JesusFreke/smali/blob/master/dexlib2/src/main/java/org/jf/dexlib2/dexbacked/DexBackedDexFile.java#L83
2021-07-03 23:05:04 +03:00
IgorEisberg
bb42159880
style: rename vars for consistency
2021-07-03 21:26:16 +03:00
Connor Tumbleson
447ba50332
refactor: drop author tags and support javadocs
2021-03-07 15:06:45 -05:00
Connor Tumbleson
3f831c8221
refactor: copyright year should be year started, not current year
2020-04-11 06:33:05 -04:00
Frieder Bluemle
81ca785e02
Fix file header comment format
2020-02-29 17:37:46 -08:00
Connor Tumbleson
25a1cb02ef
fix: License 2019 update
2019-07-13 12:19:41 -04:00
IgorEisberg
0efccc2d93
feat: allow configurable api-level for smali
2019-02-16 18:43:25 -05:00
Connor Tumbleson
9fc1ede991
License 2018 update
2018-02-16 08:26:53 -05:00
Connor Tumbleson
1597c12472
changed all license files
2017-07-05 12:05:52 -04:00
Connor Tumbleson
74f76ae71d
Upgrade to smali 2.2
2017-03-27 09:16:11 -04:00
Connor Tumbleson
891d0d39e0
Refactor ExtFile to brut.j.dir
...
- move to using Paths when possible
- adapt calls to FileDirectory to leverage Paths
2016-12-25 07:57:41 -05:00
Benjamin Adolphi
db35f54af6
Pass minimum api level to smali library
...
When apktool creates a DexBuilder class, it creates it without specifying a minimum api level. This causes the DexBuilder class to assume api level 20 by default. This is not ideal since in some cases, the concrete minimum api level is required.
One such case is in smali's DexWriter class which implements a workaround for a bug in Dalvik that was fixed in Android 4.2 (https://code.google.com/p/android/issues/detail?id=35304 ) that causes apps that call the Method.getParameterAnnotations api to crash in some cases (see bug report for more details). The workaround that smali implements is only triggered if the minimum api level is below 17 (Android 4.2). But since apktool effectively sets the minimum api level to 20, this code is never triggered causing apktool to create apk files that crash on devices below Android 4.2.
This change passes the minimum api level to the smali library.
2016-09-15 00:31:32 +02:00
Connor Tumbleson
ee8e9cea3d
cleanup from removal of smali-debugging
2016-03-10 09:29:05 -05:00
Connor Tumbleson
cd852cd658
Removes SmaliDebugging
...
- fixes #1061
2016-02-27 20:20:53 -05:00
Connor Tumbleson
b29df52b87
Cleanup unclosed streams plus formatting
...
- run FindBugs to find problems
2016-02-14 20:34:06 -05:00
Connor Tumbleson
81404c8904
close streams that needed closing ( fixes #1143 )
2016-01-22 06:27:23 -06:00
Connor Tumbleson
40fdfc50a1
Options Cleanup
...
- remove ugly Hashmap passing
- create ApkOptions
- refactor based on ApkOptions
2014-11-01 21:07:02 -05:00
Connor Tumbleson
9031c22365
[skip] update all copyrights to 2014
2014-10-23 18:14:48 -05:00
Connor Tumbleson
c476ce16be
Multiple Dex Support - part 2
...
- CS fixes
- adds support for building multiple dex
- prevents extra dex from being unknown and extra dex
- adds unit-test
2014-08-16 08:29:57 -05:00
Connor Tumbleson
086139a037
code cleanup of 2014
2014-02-09 19:01:57 -06:00
Connor Tumbleson
0e33e2d477
update to use FileDataStore
2013-09-15 10:35:00 -05:00
Connor Tumbleson
dd5723cafa
remove useless check and fix SmaliBuilder to actually build debug files
2013-08-13 15:45:51 -05:00
Connor Tumbleson
ca67c00f83
wip
2013-08-12 09:16:51 -05:00
Ryszard Wiśniewski
6e7e0c0984
Fixed "-d" option of build command - it was always enabled.
2013-05-02 17:49:30 +02:00
Ryszard Wiśniewski
59da5db05f
Readded smali debugging feature.
2013-05-02 17:49:30 +02:00
Connor Tumbleson
e82c0754de
Code cleanup of 2013
...
Signed-off-by: Connor Tumbleson <connor.tumbleson@gmail.com>
2013-02-12 21:12:17 -06:00
Connor Tumbleson
4db49ab347
Adding brut.apktool :/
2012-09-19 20:27:35 -05:00