Commit c11a3dc9 authored by topjohnwu's avatar topjohnwu

Fix Magisk Manager freezing issue

parent 56f57c20
......@@ -61,12 +61,12 @@ public class Utils {
}
public static List<String> getModList(Shell shell, String path) {
String command = "find " + path + " -type d -maxdepth 1 ! -name \"*.core\" ! -name \"*lost+found\" ! -name \"*magisk\"";
String command = "ls -d " + path + "/* | grep -v lost+found";
return shell.su(command);
}
public static List<String> readFile(Shell shell, String path) {
String command = "cat " + path;
String command = "cat " + path + " | sed '$a\\ ' | sed '$d'";
return shell.su(command);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment