adds "miui", "android" and "com.htc" to list of ignored renamed packages.

This commit is contained in:
Connor Tumbleson 2014-03-09 17:47:43 -05:00
parent d1eb0b01e1
commit 1e3b66f9be
2 changed files with 5 additions and 2 deletions

View File

@ -36,6 +36,7 @@ v2.0.0 (TBA)
-Fixed (issue #196) - Fixed style crash due to malformed styles.
-Fixed (issue #603) - Fixed unknown files prefixed with common name from being ignored.
-Fixed (issue #606) - Fixed unknown files being ignored when -r is used.
-Fixed (issue #609) - Fixed handling renamed manifests with ("android", "com.htc" and "miui").
-Fixed issue with non-URI standard characters in apk name (Thanks rover12421)
-Added output to list Apktool version to help debugging.
-Updated known bytes for configurations to 38 (from addition of layout direction)

View File

@ -184,8 +184,8 @@ final public class AndrolibResources {
resTable.setPackageId(resPackage.getId());
resTable.setPackageOriginal(mPackageOriginal);
if (mPackageOriginal.equalsIgnoreCase(mPackageRenamed) || "android".equalsIgnoreCase(mPackageRenamed)
|| "com.htc".equalsIgnoreCase(mPackageRenamed)) {
if (mPackageOriginal.equalsIgnoreCase(mPackageRenamed) ||
Arrays.asList(IGNORED_PACKAGES).contains(mPackageOriginal)) {
LOGGER.info("Regular manifest package...");
} else {
try {
@ -851,4 +851,6 @@ final public class AndrolibResources {
private File mAaptBinary = null;
private final static String[] IGNORED_PACKAGES = new String[] {
"android", "com.htc", "miui" };
}