From ed7b094b02e59795d8e73d8960146f06dfccdedc Mon Sep 17 00:00:00 2001 From: Connor Tumbleson Date: Tue, 21 Jun 2016 08:02:23 -0400 Subject: [PATCH] move default framework location on windows/unix - unix - $HOME/.local/share/apktool - windows - $HOME/AppData/Local/apktool - #1277 --- .../src/main/java/brut/androlib/res/AndrolibResources.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/brut.apktool/apktool-lib/src/main/java/brut/androlib/res/AndrolibResources.java b/brut.apktool/apktool-lib/src/main/java/brut/androlib/res/AndrolibResources.java index 0175f342..16eb4028 100644 --- a/brut.apktool/apktool-lib/src/main/java/brut/androlib/res/AndrolibResources.java +++ b/brut.apktool/apktool-lib/src/main/java/brut/androlib/res/AndrolibResources.java @@ -703,8 +703,10 @@ final public class AndrolibResources { if (OSDetection.isMacOSX()) { path = parentPath.getAbsolutePath() + String.format("%1$sLibrary%1$sapktool%1$sframework", File.separatorChar); + } else if (OSDetection.isWindows()) { + path = parentPath.getAbsolutePath() + String.format("%1$sAppData%1$sLocal%1$sapktool%1$sframework", File.separatorChar); } else { - path = parentPath.getAbsolutePath() + String.format("%1$sapktool%1$sframework", File.separatorChar); + path = parentPath.getAbsolutePath() + String.format("%1$s.local%1$sshare%1$sapktool%1$sframework", File.separatorChar); } }