From 0e33e2d4771ec69659e88e32e8aa5f0ccb225de3 Mon Sep 17 00:00:00 2001 From: Connor Tumbleson Date: Sun, 15 Sep 2013 10:35:00 -0500 Subject: [PATCH] update to use FileDataStore --- .../src/main/java/brut/androlib/src/SmaliBuilder.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/brut.apktool/apktool-lib/src/main/java/brut/androlib/src/SmaliBuilder.java b/brut.apktool/apktool-lib/src/main/java/brut/androlib/src/SmaliBuilder.java index 4a93ee2e..31971046 100644 --- a/brut.apktool/apktool-lib/src/main/java/brut/androlib/src/SmaliBuilder.java +++ b/brut.apktool/apktool-lib/src/main/java/brut/androlib/src/SmaliBuilder.java @@ -29,6 +29,7 @@ import java.util.logging.Logger; import org.antlr.runtime.RecognitionException; import org.apache.commons.io.IOUtils; import org.jf.dexlib2.writer.builder.DexBuilder; +import org.jf.dexlib2.writer.io.FileDataStore; /** * @author Ryszard Wiśniewski @@ -54,7 +55,7 @@ public class SmaliBuilder { for (String fileName : mSmaliDir.getDirectory().getFiles(true)) { buildFile(fileName, dexBuilder); } - dexBuilder.writeTo(mDexFile.getAbsolutePath()); + dexBuilder.writeTo(new FileDataStore( new File(mDexFile.getAbsolutePath()))); } catch (IOException | DirectoryException ex) { throw new AndrolibException(ex); }