mirror of
https://github.com/revanced/Apktool.git
synced 2025-06-12 05:07:41 +02:00
prevent execution if file is named same as apktool framework folder
This commit is contained in:
@ -714,14 +714,21 @@ final public class AndrolibResources {
|
||||
}
|
||||
|
||||
File dir = new File(path);
|
||||
if (!dir.exists()) {
|
||||
if (!dir.mkdirs()) {
|
||||
|
||||
if (dir.getParentFile().isFile()) {
|
||||
System.err.println("Please remove file at " + dir.getParentFile());
|
||||
System.exit(1);
|
||||
}
|
||||
|
||||
if (! dir.exists()) {
|
||||
if (! dir.mkdirs()) {
|
||||
if (sFrameworkFolder != null) {
|
||||
System.err.println("Can't create Framework directory: " + dir);
|
||||
}
|
||||
throw new AndrolibException("Can't create directory: " + dir);
|
||||
}
|
||||
}
|
||||
|
||||
return dir;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user