From f07e7571aba1946db16fe770ff8531243c7f6201 Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Sun, 3 Sep 2017 02:45:43 +0800 Subject: [PATCH] Change block detection method --- app/src/main/java/com/topjohnwu/magisk/MagiskManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'"); } }