From 7ededfef34c3b006b3ac6c53e71d85e9ed2857b4 Mon Sep 17 00:00:00 2001 From: Kakathic Date: Sun, 3 Dec 2023 19:37:24 +0700 Subject: [PATCH] Update YT.sh --- .github/Modun/common/YT.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/Modun/common/YT.sh b/.github/Modun/common/YT.sh index d129da1..dcd3ad3 100644 --- a/.github/Modun/common/YT.sh +++ b/.github/Modun/common/YT.sh @@ -1,8 +1,9 @@ # kakathic +su="su --mount-master -c" checkYT(){ for Tkvi in $( find /data/app | grep com.google.android.youtube | grep 'base.apk' ); do -[ "$Tkvi" ] && umount -l "$Tkvi" +[ "$Tkvi" ] && $su umount -l "$Tkvi" done for Vhkdd in $(find /data/app -name *com.google.android.youtube*); do [ "$Vhkdd" ] && rm -fr "$Vhkdd" @@ -23,7 +24,7 @@ cpLIB(){ cp -af $1 ${2%/*}; } mountYT(){ chcon u:object_r:apk_data_file:s0 "$1" -mount -o bind "$1" "$2"; } +$su mount -o bind "$1" "$2"; } offCH(){ Sqlite3=$MODPATH/sqlite3