Apktool/brut.apktool/apktool-lib/src/main/java/brut/androlib
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
..
err [skip] update all copyrights to 2014 2014-10-23 18:14:48 -05:00
meta license additions and reverting non-needed changes 2016-01-22 07:17:07 -06:00
mod remove unused file 2016-02-27 20:56:14 -05:00
res Check for null parent references to prevent crash 2016-08-06 12:46:45 -04:00
src Pass minimum api level to smali library 2016-09-15 00:31:32 +02:00
Androlib.java Pass minimum api level to smali library 2016-09-15 00:31:32 +02:00
AndrolibException.java [skip] update all copyrights to 2014 2014-10-23 18:14:48 -05:00
ApkDecoder.java Issue 1234 - Use literal value of versionName when used 2016-04-28 16:25:42 +02:00
ApkOptions.java Reinstate minimalistic debug option to inject android:debuggable with aapt 2016-04-28 08:21:21 -04:00
ApktoolProperties.java Cleanup unclosed streams plus formatting 2016-02-14 20:34:06 -05:00