Change block detection method

This commit is contained in:
topjohnwu 2017-09-03 02:45:43 +08:00
parent 834c16485c
commit f07e7571ab

View File

@ -291,7 +291,7 @@ public class MagiskManager extends Application {
if (Utils.isValidShellResponse(res)) { if (Utils.isValidShellResponse(res)) {
bootBlock = res.get(0); bootBlock = res.get(0);
} else { } 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'");
} }
} }