mirror of
https://github.com/revanced/Apktool.git
synced 2025-06-12 21:27:36 +02:00
prevents renaming manifest if package is "android" and fixes deletion of tmp files
This commit is contained in:
@ -19,6 +19,8 @@ package brut.util;
|
||||
import brut.common.BrutException;
|
||||
import java.io.*;
|
||||
import java.util.Arrays;
|
||||
import java.util.Set;
|
||||
|
||||
import org.apache.commons.io.IOUtils;
|
||||
|
||||
/**
|
||||
@ -40,6 +42,11 @@ public class OS {
|
||||
}
|
||||
dir.delete();
|
||||
}
|
||||
|
||||
public static void rmfile(String file) throws BrutException {
|
||||
File del = new File(file);
|
||||
del.delete();
|
||||
}
|
||||
|
||||
public static void rmdir(String dir) throws BrutException {
|
||||
rmdir(new File(dir));
|
||||
|
Reference in New Issue
Block a user