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(); } }