From 397c1a1c2bc62925eceb972c81dce498ae261b9f Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Mon, 14 Nov 2016 05:02:57 +0800 Subject: [PATCH] Magisk Hide won't play well with dummy lib --- scripts/magic_mask.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/magic_mask.sh b/scripts/magic_mask.sh index d7322667b..7ed9a1085 100644 --- a/scripts/magic_mask.sh +++ b/scripts/magic_mask.sh @@ -370,10 +370,14 @@ case $1 in if [ -f "$MOUNTINFO/dummy/system/lib" ]; then cd /system/lib cp -afc $LIBS $DUMMDIR/system/lib + # Crash prevention!! + rm -f $COREDIR/magiskhide/enable 2>/dev/null fi if [ -f "$MOUNTINFO/dummy/system/lib64" ]; then cd /system/lib64 cp -afc $LIBS $DUMMDIR/system/lib64 + # Crash prevention!! + rm -f $COREDIR/magiskhide/enable 2>/dev/null fi # vendor libraries are device dependent, had no choice but copy them all if needed....