From 65fb5c25c2093bc30f38430829e14525624fb37e Mon Sep 17 00:00:00 2001 From: Connor Tumbleson Date: Tue, 13 Feb 2018 08:47:43 -0500 Subject: [PATCH] Revert "switch to "startsWith" to stop AndroResGuard tricks" This reverts commit c7f4dfe1db3d8fbfe66315c7dc9e0c199c38b0df. --- .../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 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;