Commit f07e7571 authored by topjohnwu's avatar topjohnwu

Change block detection method

parent 834c1648
......@@ -291,7 +291,7 @@ public class MagiskManager extends Application {
if (Utils.isValidShellResponse(res)) {
bootBlock = res.get(0);
} else {
blockList = shell.su("ls -d /dev/block/mmc* /dev/block/sd* 2>/dev/null");
blockList = shell.su("find /dev/block -type b | grep -vE 'dm-0|ram|loop'");
}
}
......
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