mirror of
https://github.com/revanced/Apktool.git
synced 2024-12-12 05:47:46 +01:00
prevent execution if file is named same as apktool framework folder
This commit is contained in:
parent
7b0ba28a43
commit
6138d26335
@ -714,6 +714,12 @@ final public class AndrolibResources {
|
|||||||
}
|
}
|
||||||
|
|
||||||
File dir = new File(path);
|
File dir = new File(path);
|
||||||
|
|
||||||
|
if (dir.getParentFile().isFile()) {
|
||||||
|
System.err.println("Please remove file at " + dir.getParentFile());
|
||||||
|
System.exit(1);
|
||||||
|
}
|
||||||
|
|
||||||
if (! dir.exists()) {
|
if (! dir.exists()) {
|
||||||
if (! dir.mkdirs()) {
|
if (! dir.mkdirs()) {
|
||||||
if (sFrameworkFolder != null) {
|
if (sFrameworkFolder != null) {
|
||||||
@ -722,6 +728,7 @@ final public class AndrolibResources {
|
|||||||
throw new AndrolibException("Can't create directory: " + dir);
|
throw new AndrolibException("Can't create directory: " + dir);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return dir;
|
return dir;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user