This commit is contained in:
peaches 2012-03-22 17:26:16 -05:00
parent 321dcfa91b
commit 1b0e066e92
11 changed files with 31 additions and 29 deletions

View File

@ -4,7 +4,7 @@
<groupId>brut.apktool</groupId> <groupId>brut.apktool</groupId>
<artifactId>apktool-cli</artifactId> <artifactId>apktool-cli</artifactId>
<version>1.4.4-SNAPSHOT</version> <version>1.4.5-SNAPSHOT</version>
<packaging>jar</packaging> <packaging>jar</packaging>
<parent> <parent>

View File

@ -30,6 +30,7 @@
<unpack>true</unpack> <unpack>true</unpack>
<scope>runtime</scope> <scope>runtime</scope>
<includes> <includes>
<include>org.jf.*</include>
<include>brut.*</include> <include>brut.*</include>
<include>xpp3:xpp3</include> <include>xpp3:xpp3</include>
<include>org.yaml:snakeyaml</include> <include>org.yaml:snakeyaml</include>

View File

@ -16,9 +16,7 @@
package brut.apktool; package brut.apktool;
import brut.androlib.Androlib; import brut.androlib.*;
import brut.androlib.AndrolibException;
import brut.androlib.ApkDecoder;
import brut.androlib.err.CantFindFrameworkResException; import brut.androlib.err.CantFindFrameworkResException;
import brut.androlib.err.InFileNotFoundException; import brut.androlib.err.InFileNotFoundException;
import brut.androlib.err.OutDirExistsException; import brut.androlib.err.OutDirExistsException;

View File

@ -16,7 +16,7 @@
<name>apktool library</name> <name>apktool library</name>
<properties> <properties>
<smaliVersion>1.3.0-brut6</smaliVersion> <smaliVersion>1.3.3-ibot7</smaliVersion>
<root.basedir>${project.parent.basedir}</root.basedir> <root.basedir>${project.parent.basedir}</root.basedir>
</properties> </properties>
@ -88,12 +88,14 @@
<dependency> <dependency>
<groupId>brut.apktool.smali</groupId> <groupId>brut.apktool.smali</groupId>
<artifactId>baksmali</artifactId> <artifactId>baksmali</artifactId>
<version>${smaliVersion}</version> <version>1.3.3-ibot7</version>
<type>jar</type>
</dependency> </dependency>
<dependency> <dependency>
<groupId>brut.apktool.smali</groupId> <groupId>brut.apktool.smali</groupId>
<artifactId>util</artifactId> <artifactId>util</artifactId>
<version>${smaliVersion}</version> <version>1.3.3-ibot7-SNAPSHOT</version>
<type>jar</type>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.yaml</groupId> <groupId>org.yaml</groupId>
@ -115,6 +117,12 @@
<artifactId>xmlunit</artifactId> <artifactId>xmlunit</artifactId>
<version>1.3</version> <version>1.3</version>
</dependency> </dependency>
<dependency>
<groupId>org.jf</groupId>
<artifactId>util</artifactId>
<version>1.3.3-dev</version>
<type>jar</type>
</dependency>
</dependencies> </dependencies>
<pluginRepositories> <pluginRepositories>

View File

@ -16,9 +16,7 @@
package brut.androlib.mod; package brut.androlib.mod;
import java.io.IOException; import java.io.*;
import java.io.InputStream;
import java.io.InputStreamReader;
import org.antlr.runtime.*; import org.antlr.runtime.*;
import org.antlr.runtime.tree.CommonTree; import org.antlr.runtime.tree.CommonTree;
import org.antlr.runtime.tree.CommonTreeNodeStream; import org.antlr.runtime.tree.CommonTreeNodeStream;

View File

@ -16,8 +16,8 @@
package brut.androlib.res.data; package brut.androlib.res.data;
import brut.androlib.AndrolibException;
import brut.androlib.err.UndefinedResObject; import brut.androlib.err.UndefinedResObject;
import brut.androlib.AndrolibException;
import brut.androlib.res.data.value.ResFileValue; import brut.androlib.res.data.value.ResFileValue;
import brut.androlib.res.data.value.ResValueFactory; import brut.androlib.res.data.value.ResValueFactory;
import brut.androlib.res.xml.ResValuesXmlSerializable; import brut.androlib.res.xml.ResValuesXmlSerializable;

View File

@ -23,9 +23,7 @@ import brut.androlib.res.data.value.ResBoolValue;
import brut.androlib.res.data.value.ResFileValue; import brut.androlib.res.data.value.ResFileValue;
import brut.directory.Directory; import brut.directory.Directory;
import brut.directory.DirectoryException; import brut.directory.DirectoryException;
import java.io.IOException; import java.io.*;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.logging.Level; import java.util.logging.Level;
import java.util.logging.Logger; import java.util.logging.Logger;

View File

@ -19,7 +19,8 @@ package brut.androlib.src;
import brut.androlib.AndrolibException; import brut.androlib.AndrolibException;
import java.io.File; import java.io.File;
import java.io.IOException; import java.io.IOException;
import org.jf.baksmali.*; import org.jf.baksmali.baksmali;
import org.jf.baksmali.main;
import org.jf.dexlib.DexFile; import org.jf.dexlib.DexFile;
/** /**
@ -43,7 +44,7 @@ public class SmaliDecoder {
baksmali.disassembleDexFile(mApkFile.getAbsolutePath(), baksmali.disassembleDexFile(mApkFile.getAbsolutePath(),
new DexFile(mApkFile), false, mOutDir.getAbsolutePath(), null, new DexFile(mApkFile), false, mOutDir.getAbsolutePath(), null,
null, null, false, true, true, true, false, false, null, null, false, true, true, true, false, false,
mDebug ? main.DIFFPRE : 0, false, false, null); mDebug ? main.FULLMERGE : 0, false, false, null);
} catch (IOException ex) { } catch (IOException ex) {
throw new AndrolibException(ex); throw new AndrolibException(ex);
} }

View File

@ -19,19 +19,11 @@ package brut.androlib;
import brut.androlib.res.util.ExtFile; import brut.androlib.res.util.ExtFile;
import brut.common.BrutException; import brut.common.BrutException;
import brut.util.OS; import brut.util.OS;
import java.io.File; import java.io.*;
import java.io.FileReader;
import java.io.IOException;
import java.io.Reader;
import java.util.logging.Logger; import java.util.logging.Logger;
import org.custommonkey.xmlunit.DetailedDiff; import org.custommonkey.xmlunit.*;
import org.custommonkey.xmlunit.Diff; import org.junit.*;
import org.custommonkey.xmlunit.ElementNameAndAttributeQualifier; import static org.junit.Assert.*;
import org.custommonkey.xmlunit.ElementQualifier;
import org.junit.AfterClass;
import static org.junit.Assert.assertTrue;
import org.junit.BeforeClass;
import org.junit.Test;
import org.xml.sax.SAXException; import org.xml.sax.SAXException;
@ -124,7 +116,9 @@ public class BuildAndDecodeTest {
@Test @Test
public void qualifiersTest() throws BrutException { public void qualifiersTest() throws BrutException {
compareValuesFiles("values-mcc004/strings.xml"); compareValuesFiles("values-mcc004-mnc4-en-rUS-sw100dp-w200dp-h300dp" +
"-xlarge-long-land-television-night-xhdpi-finger-keyssoft-12key" +
"-navhidden-dpad/strings.xml");
} }
private void compareValuesFiles(String path) throws BrutException { private void compareValuesFiles(String path) throws BrutException {

View File

@ -16,6 +16,10 @@
</properties> </properties>
<modules> <modules>
<module>../brut.apktool.smali</module>
<module>../brut.j.dir</module>
<module>../brut.j.common</module>
<module>../brut.j.util</module>
<module>apktool-lib</module> <module>apktool-lib</module>
<module>apktool-cli</module> <module>apktool-cli</module>
</modules> </modules>