From 6b9cb2af4df0fbbd4db89e04d1068eafd343e492 Mon Sep 17 00:00:00 2001 From: Pierre-Hugues Husson Date: Mon, 23 Jul 2018 22:16:46 +0200 Subject: [PATCH] [twrp] Support Samsung partitions --- twrp/twrp.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/twrp/twrp.sh b/twrp/twrp.sh index 0baf544..0729650 100644 --- a/twrp/twrp.sh +++ b/twrp/twrp.sh @@ -116,7 +116,8 @@ death() { dev="$(sed -n 1p /cache/phh/block.map)" devbase="$(echo $dev | sed -nE 's;(/dev/block/.*/)userdata;\1;p')" [ -z "$devbase" ] && devbase="$(echo $dev | sed -nE 's;(/dev/block/.*/)data;\1;p')" -for i in system system_a;do +[ -z "$devbase" ] && devbase="$(echo $dev | sed -nE 's;(/dev/block/.*/)USERDATA;\1;p')" +for i in system system_a SYSTEM;do v="$devbase/$i" [ -b "$v" ] && system="$v" done