Refactor shell (again)

This commit is contained in:
topjohnwu
2017-10-15 23:02:44 +08:00
parent 13bf1b27b4
commit 6f457c0c59
20 changed files with 198 additions and 254 deletions

View File

@@ -19,8 +19,8 @@ public class LoadModules extends ParallelTask<Void, Void, Void> {
if (mm == null) return null;
mm.moduleMap = new ValueSortedMap<>();
for (String path : Utils.getModList(getShell(), MagiskManager.MAGISK_PATH)) {
Module module = new Module(getShell(), path);
for (String path : Utils.getModList(MagiskManager.MAGISK_PATH)) {
Module module = new Module(path);
mm.moduleMap.put(module.getId(), module);
}