From ddb4f9770d2cd62afdc90434b23763c2867c5f53 Mon Sep 17 00:00:00 2001 From: Furniel Date: Tue, 24 Feb 2015 12:36:43 +0200 Subject: [PATCH 1/2] SPI are not 9patches - skip these by copying raw --- .../main/java/brut/androlib/res/decoder/ResFileDecoder.java | 4 ++-- 1 file changed, 2 insertions(+), 2 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 c93a71f8..aa75b49b 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 @@ -71,8 +71,8 @@ public class ResFileDecoder { outFileName = outResName + ".r.9" + ext; } - // check for samsung qmg - if (inFileName.toLowerCase().endsWith(".qmg")) { + // check for samsung qmg & spi + if (inFileName.toLowerCase().endsWith(".qmg") || inFileName.toLowerCase().endsWith(".spi")) { copyRaw(inDir, outDir, outFileName); return; } From 18ed4ecc9e3057399a619081fc3a33e7bd00343a Mon Sep 17 00:00:00 2001 From: Connor Tumbleson Date: Tue, 24 Feb 2015 06:57:42 -0600 Subject: [PATCH 2/2] [skip] add changelog note about .spi copying raw --- CHANGES | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGES b/CHANGES index 9869547d..23ab3054 100644 --- a/CHANGES +++ b/CHANGES @@ -59,6 +59,7 @@ v2.0.0 (TBA) -Fixed (issue #744) - Fixed warnings of "Cleaning up unclosed ZipFile..." -Fixed (issue #757) - Download gradle binaries over https -Fixed (issue #402) - Fix issues when running user has no access to $HOME. +-Fixed issue with attempting to decode .spi files as 9 patches (Thanks Furniel) -Fixed issue with APKs with multiple dex files. -Fixed issue with using Apktool without smali/baksmali for ApktoolProperties (Thanks teprrr) -Fixed issue with non-URI standard characters in apk name (Thanks rover12421)