From 639ac84edb61ca92ef94a3f2571769ebad1eec45 Mon Sep 17 00:00:00 2001 From: Connor Tumbleson Date: Mon, 11 Apr 2016 07:05:00 -0400 Subject: [PATCH] Dont fallback to HighestResSpec Package if only 1 main package - fixes #1220 --- .../src/main/java/brut/androlib/res/data/ResTable.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/brut.apktool/apktool-lib/src/main/java/brut/androlib/res/data/ResTable.java b/brut.apktool/apktool-lib/src/main/java/brut/androlib/res/data/ResTable.java index b376973e..bf18ec31 100644 --- a/brut.apktool/apktool-lib/src/main/java/brut/androlib/res/data/ResTable.java +++ b/brut.apktool/apktool-lib/src/main/java/brut/androlib/res/data/ResTable.java @@ -104,6 +104,9 @@ public class ResTable { if (pkg != null) { return pkg; } else { + if (mMainPackages.size() == 1) { + return mMainPackages.iterator().next(); + } return getHighestSpecPackage(); } }