15 lines
342 B
Plaintext
Raw Normal View History

#!/system/bin/sh
2016-11-01 04:21:43 +08:00
HIDELIST=/magisk/.core/magiskhide/hidelist
PROCESS=$1
2017-02-05 01:45:53 +08:00
TOOLPATH=/dev/busybox
if [ ! -z "$PROCESS" ]; then
if [ `grep -c "^$PROCESS$" $HIDELIST` -eq "0" ]; then
echo "$PROCESS" >> $HIDELIST
set --
2017-02-05 01:45:53 +08:00
set `$TOOLPATH/ps -o pid,args | grep "$PROCESS" | grep -v grep` >/dev/null
[ ! -z "$1" ] && kill "$1"
fi
fi