diff --git a/brut.apktool/apktool-lib/src/main/java/brut/androlib/res/decoder/ResFileDecoder.java b/brut.apktool/apktool-lib/src/main/java/brut/androlib/res/decoder/ResFileDecoder.java index b44314af..27eb13d2 100644 --- a/brut.apktool/apktool-lib/src/main/java/brut/androlib/res/decoder/ResFileDecoder.java +++ b/brut.apktool/apktool-lib/src/main/java/brut/androlib/res/decoder/ResFileDecoder.java @@ -58,15 +58,15 @@ public class ResFileDecoder { } try { - if (typeName.startsWith("raw")) { + if (typeName.equals("raw")) { decode(inDir, inFileName, outDir, outFileName, "raw"); return; } - if (typeName.startsWith("font") && !".xml".equals(ext)) { + if (typeName.equals("font") && !".xml".equals(ext)) { decode(inDir, inFileName, outDir, outFileName, "raw"); return; } - if (typeName.startsWith("drawable") || typeName.startsWith("mipmap")) { + if (typeName.equals("drawable") || typeName.equals("mipmap")) { if (inFileName.toLowerCase().endsWith(".9" + ext)) { outFileName = outResName + ".9" + ext;