Apktool/brut.apktool/apktool-lib/src/main/java
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
..
android Prevent truncation of hex values in AndroidManifest 2016-08-02 22:48:02 -04:00
brut/androlib Pass minimum api level to smali library 2016-09-15 00:31:32 +02:00
org/xmlpull/mxp1_serializer added additional unit-test, cleaned up spacing 2015-03-03 15:38:36 -06:00