diff --git a/app/src/main/java/com/topjohnwu/magisk/MagiskManager.java b/app/src/main/java/com/topjohnwu/magisk/MagiskManager.java index 69e9c8a9b..25d8dea4b 100644 --- a/app/src/main/java/com/topjohnwu/magisk/MagiskManager.java +++ b/app/src/main/java/com/topjohnwu/magisk/MagiskManager.java @@ -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'"); } }