File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
app/src/main/java/brut/androlib/res Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -994,6 +994,17 @@ public File getFrameworkDir() throws AndrolibException {
994
994
} else {
995
995
path = parentPath .getAbsolutePath () + String .format ("%1$s.local%1$sshare%1$sapktool%1$sframework" , File .separatorChar );
996
996
}
997
+
998
+ File fullPath = new File (path );
999
+
1000
+ if (! fullPath .canWrite ()) {
1001
+ LOGGER .severe (String .format ("WARNING: Could not write to (%1$s), using %2$s instead..." ,
1002
+ fullPath .getAbsolutePath (), System .getProperty ("java.io.tmpdir" )));
1003
+ LOGGER .severe ("Please be aware this is a volatile directory and frameworks could go missing, " +
1004
+ "please utilize --frame-path if the default storage directory is unavailable" );
1005
+
1006
+ path = new File (System .getProperty ("java.io.tmpdir" )).getAbsolutePath ();
1007
+ }
997
1008
}
998
1009
999
1010
File dir = new File (path );
You can’t perform that action at this time.
0 commit comments