[core] public loadModule (#1059)
This commit is contained in:
parent
6cb3eacea8
commit
6e036f49da
|
|
@ -40,7 +40,7 @@ import java.util.List;
|
|||
import java.util.Map;
|
||||
import java.util.zip.ZipFile;
|
||||
|
||||
class ConfigFileManager {
|
||||
public class ConfigFileManager {
|
||||
static final Path basePath = Paths.get("/data/adb/lspd");
|
||||
static final File managerApkPath = basePath.resolve("manager.apk").toFile();
|
||||
private static final Path lockPath = basePath.resolve("lock");
|
||||
|
|
@ -64,6 +64,9 @@ class ConfigFileManager {
|
|||
}
|
||||
}
|
||||
|
||||
private ConfigFileManager() {
|
||||
}
|
||||
|
||||
static void deleteFolderIfExists(Path target) throws IOException {
|
||||
if (Files.notExists(target)) return;
|
||||
Files.walkFileTree(target, new SimpleFileVisitor<>() {
|
||||
|
|
@ -169,7 +172,7 @@ class ConfigFileManager {
|
|||
}
|
||||
|
||||
@Nullable
|
||||
static PreLoadedApk loadModule(String path) {
|
||||
public static PreLoadedApk loadModule(String path) {
|
||||
if (path == null) return null;
|
||||
var file = new PreLoadedApk();
|
||||
var preLoadedDexes = new ArrayList<SharedMemory>();
|
||||
|
|
|
|||
Loading…
Reference in New Issue