From c7f4dfe1db3d8fbfe66315c7dc9e0c199c38b0df Mon Sep 17 00:00:00 2001 From: Connor Tumbleson Date: Thu, 8 Feb 2018 17:14:54 -0500 Subject: [PATCH] switch to "startsWith" to stop AndroResGuard tricks --- .../main/java/brut/androlib/res/decoder/ResFileDecoder.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 8b075a0b..b52d41cd 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.equals("raw")) { + if (typeName.startsWith("raw")) { decode(inDir, inFileName, outDir, outFileName, "raw"); return; } - if (typeName.equals("font") && !".xml".equals(ext)) { + if (typeName.startsWith("font") && !".xml".equals(ext)) { decode(inDir, inFileName, outDir, outFileName, "raw"); return; } - if (typeName.equals("drawable") || typeName.equals("mipmap")) { + if (typeName.startsWith("drawable") || typeName.startsWith("mipmap")) { if (inFileName.toLowerCase().endsWith(".9" + ext)) { outFileName = outResName + ".9" + ext;