correctly handles apk's with one package named "android"

This commit is contained in:
Connor Tumbleson 2014-01-13 17:43:09 -06:00
parent 501a6df677
commit 2af523d5d4
2 changed files with 3 additions and 1 deletions

View File

@ -29,6 +29,7 @@ v2.0.0 (TBA)
-Fixed (issue #550) - Correctly labels incorrect type handling of <array>
-Fixed (issue #571) - Fixed truncated strings (Thanks jtmuhone)
-Fixed (issue #578) - Fixed apk's with multiple empty types via ignoring them
-Fixed (issue #589) - Fixed apk's with one package named "android" from improper decoding.
-Added output to list Apktool version to help debugging.
-Updated known bytes for configurations to 38 (from addition of layout direction)
-Fixed NPE when handling odex apks even with --no-src specified. (Thanks Rodrigo Chiossi)

View File

@ -87,7 +87,8 @@ public class ResTable {
id = resPackage.getId();
}
}
return getPackage(id);
// if id is still 0, we only have one pkgId which is "android" -> 1
return (id == 0) ? getPackage(1) : getPackage(id);
}
public ResPackage getPackage(String name) throws AndrolibException {