mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-12-02 20:41:51 +00:00
MagiskHide small tweak
This commit is contained in:
@@ -5,5 +5,7 @@ HIDELIST=/magisk/.core/magiskhide/hidelist
|
||||
if [ ! -z "$1" ]; then
|
||||
if [ $(grep -c "^$1$" $HIDELIST) -eq "0" ]; then
|
||||
echo "$1" >> $HIDELIST
|
||||
set `/data/busybox/ps -o pid,args | grep "$1" | grep -v "grep"`
|
||||
kill "$1"
|
||||
fi
|
||||
fi
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
HIDELIST=/magisk/.core/magiskhide/hidelist
|
||||
|
||||
if [ ! -z "$1" ]; then
|
||||
mv $HIDELIST $HIDELIST.tmp
|
||||
cp -af $HIDELIST $HIDELIST.tmp
|
||||
cat $HIDELIST.tmp | grep -v "^$1$" > $HIDELIST
|
||||
rm -f $HIDELIST.tmp
|
||||
set `/data/busybox/ps -o pid,args | grep "$1" | grep -v "grep"`
|
||||
|
||||
Reference in New Issue
Block a user