diff --git a/apktool-lib/pom.xml b/apktool-lib/pom.xml
index 6f3a58c4..b08d68ab 100644
--- a/apktool-lib/pom.xml
+++ b/apktool-lib/pom.xml
@@ -3,7 +3,7 @@
brut.apktool
apktool-lib
- 1.4.9-SNAPSHOT
+ 1.4.10-SNAPSHOT
jar
diff --git a/apktool-lib/src/main/java/brut/androlib/Androlib.java b/apktool-lib/src/main/java/brut/androlib/Androlib.java
index a512802c..112f84be 100644
--- a/apktool-lib/src/main/java/brut/androlib/Androlib.java
+++ b/apktool-lib/src/main/java/brut/androlib/Androlib.java
@@ -33,7 +33,6 @@ import java.util.Map;
import java.util.logging.Logger;
import org.yaml.snakeyaml.DumperOptions;
import org.yaml.snakeyaml.Yaml;
-import org.apache.commons.lang3.StringUtils;
/**
* @author Ryszard Wiśniewski
@@ -95,7 +94,13 @@ public class Androlib {
public void decodeManifestFull(ExtFile apkFile, File outDir,
ResTable resTable) throws AndrolibException {
- mAndRes.decodeManifest(resTable, apkFile, outDir);
+ try {
+ Directory apk = apkFile.getDirectory();
+ LOGGER.info("Copying raw manifest...");
+ apkFile.getDirectory().copyToDir(outDir, APK_MANIFEST_FILENAMES);
+ } catch (DirectoryException ex) {
+ throw new AndrolibException(ex);
+ }
}
public void decodeResourcesRaw(ExtFile apkFile, File outDir)
diff --git a/apktool-lib/src/main/java/brut/androlib/ApkDecoder.java b/apktool-lib/src/main/java/brut/androlib/ApkDecoder.java
index 6dee5c05..6be481fb 100644
--- a/apktool-lib/src/main/java/brut/androlib/ApkDecoder.java
+++ b/apktool-lib/src/main/java/brut/androlib/ApkDecoder.java
@@ -105,13 +105,14 @@ public class ApkDecoder {
// attribute references
if (hasManifest()) {
switch (mDecodeResources) {
+ case DECODE_RESOURCES_FULL:
case DECODE_RESOURCES_NONE:
mAndrolib.decodeManifestRaw(mApkFile, outDir);
break;
- case DECODE_RESOURCES_FULL:
- mAndrolib.decodeManifestFull(mApkFile, outDir,
- getResTable());
- break;
+ // case DECODE_RESOURCES_FULL:
+ // mAndrolib.decodeManifestFull(mApkFile, outDir,
+ // getResTable());
+ // break;
}
}
}
diff --git a/apktool-lib/src/main/java/brut/androlib/res/data/value/ResLayoutValue.java b/apktool-lib/src/main/java/brut/androlib/res/data/value/ResLayoutValue.java
deleted file mode 100644
index f86ba049..00000000
--- a/apktool-lib/src/main/java/brut/androlib/res/data/value/ResLayoutValue.java
+++ /dev/null
@@ -1,36 +0,0 @@
-/**
- * Copyright 2011 Ryszard Wiśniewski
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package brut.androlib.res.data.value;
-
-import brut.androlib.AndrolibException;
-import brut.androlib.res.data.ResResource;
-import java.io.IOException;
-import org.xmlpull.v1.XmlSerializer;
-
-/**
- *
- * @author peaches
- */
-public class ResLayoutValue {
-
- public void serializeToResValuesXml(XmlSerializer serializer, ResResource res) throws IOException, AndrolibException {
- serializer.startTag(null, "item");
- serializer.attribute(null, "type", res.getResSpec().getType().getName());
- serializer.attribute(null, "name", res.getResSpec().getName());
- serializer.endTag(null, "item");
- }
-}
\ No newline at end of file