From 5d05136ab785861800b04c172e85ecb3b2e11104 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ryszard=20Wi=C5=9Bniewski?= Date: Thu, 10 Nov 2011 00:11:47 +0100 Subject: [PATCH] ApkDecoder.writeMetaFile(): don't write framework info if not decoding resources. --- apktool-lib/src/main/java/brut/androlib/ApkDecoder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apktool-lib/src/main/java/brut/androlib/ApkDecoder.java b/apktool-lib/src/main/java/brut/androlib/ApkDecoder.java index 8d74e5cb..3186a798 100644 --- a/apktool-lib/src/main/java/brut/androlib/ApkDecoder.java +++ b/apktool-lib/src/main/java/brut/androlib/ApkDecoder.java @@ -187,7 +187,7 @@ public class ApkDecoder { meta.put("version", Androlib.getVersion()); meta.put("apkFileName", mApkFile.getName()); - if (hasResources()) { + if (mDecodeResources != DECODE_RESOURCES_NONE && hasResources()) { meta.put("isFrameworkApk", Boolean.valueOf(mAndrolib.isFrameworkApk(getResTable()))); putUsesFramework(meta);