Magisk/zip_static/common/magiskhide/add
2016-11-07 23:57:21 +08:00

12 lines
253 B
Bash

#!/system/bin/sh
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