Magisk/zip_static/common/magiskhide/add

12 lines
253 B
Plaintext
Raw Normal View History

#!/system/bin/sh
2016-10-31 20:21:43 +00:00
HIDELIST=/magisk/.core/magiskhide/hidelist
if [ ! -z "$1" ]; then
if [ $(grep -c "^$1$" $HIDELIST) -eq "0" ]; then
echo "$1" >> $HIDELIST
2016-11-07 15:57:21 +00:00
set `/data/busybox/ps -o pid,args | grep "$1" | grep -v "grep"`
kill "$1"
fi
fi