From cfac52a744c0b69b78cca4c4f768eb815252de62 Mon Sep 17 00:00:00 2001 From: Connor Tumbleson Date: Fri, 24 May 2013 07:55:33 -0500 Subject: [PATCH] fix for Windows Env using FileSystem, thanks @BurgerZ --- .../apktool-lib/src/main/java/brut/androlib/Androlib.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/brut.apktool/apktool-lib/src/main/java/brut/androlib/Androlib.java b/brut.apktool/apktool-lib/src/main/java/brut/androlib/Androlib.java index 7a637035..8b909b09 100644 --- a/brut.apktool/apktool-lib/src/main/java/brut/androlib/Androlib.java +++ b/brut.apktool/apktool-lib/src/main/java/brut/androlib/Androlib.java @@ -551,7 +551,8 @@ public class Androlib { zip_properties.put("encoding", "UTF-8"); // create filesystem - URI apkFileSystem = URI.create("jar:file:" + outFile.getAbsolutePath()); + Path path = Paths.get(outFile.getAbsolutePath()); + URI apkFileSystem = URI.create("jar:file:" + path.toUri().getPath()); try(FileSystem zipFS = FileSystems.newFileSystem(apkFileSystem, zip_properties)) { // loop through files inside