From cd845cb212a91e60424c90cbbd6d3d9db1bd0ecc Mon Sep 17 00:00:00 2001 From: Connor Tumbleson Date: Sun, 26 Aug 2012 10:50:02 -0500 Subject: [PATCH] finally making progress. I've found that were at 42 bytes of configflags from the previous 36. Increasing the value fixes the WARNINGs, but then it errors later on because it doesn't know how to handle that new data. That new data I was planning on using AAPT to read, but APPT won't read these weird HTC Sense APKs. So gonna have to step 1 by 1 via java debugger :( --- .../src/main/java/brut/androlib/res/AndrolibResources.java | 2 +- .../src/main/java/brut/androlib/res/decoder/ARSCDecoder.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apktool-lib/src/main/java/brut/androlib/res/AndrolibResources.java b/apktool-lib/src/main/java/brut/androlib/res/AndrolibResources.java index addec0c6..4534950e 100644 --- a/apktool-lib/src/main/java/brut/androlib/res/AndrolibResources.java +++ b/apktool-lib/src/main/java/brut/androlib/res/AndrolibResources.java @@ -170,7 +170,7 @@ final public class AndrolibResources { fileDecoder.decode(res, in, out); } - LOGGER.info("Decoding values*/* XMLs..."); + LOGGER.info("Decoding values */* XMLs..."); for (ResValuesFile valuesFile : pkg.listValuesFiles()) { generateValuesFile(valuesFile, out, xmlSerializer); } diff --git a/apktool-lib/src/main/java/brut/androlib/res/decoder/ARSCDecoder.java b/apktool-lib/src/main/java/brut/androlib/res/decoder/ARSCDecoder.java index 1f7a0ad1..738e404d 100644 --- a/apktool-lib/src/main/java/brut/androlib/res/decoder/ARSCDecoder.java +++ b/apktool-lib/src/main/java/brut/androlib/res/decoder/ARSCDecoder.java @@ -395,7 +395,7 @@ public class ARSCDecoder { private static final Logger LOGGER = Logger.getLogger(ARSCDecoder.class.getName()); - private static final int KNOWN_CONFIG_BYTES = 36; + private static final int KNOWN_CONFIG_BYTES = 36; // 42 now. Just need to map them out. public static class ARSCData {