Magisk/zip_static/common/magiskhide/add

14 lines
324 B
Plaintext
Raw Normal View History

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