12 lines
270 B
Plaintext
Raw Normal View History

#!/system/bin/sh
2016-11-01 04:21:43 +08:00
HIDELIST=/magisk/.core/magiskhide/hidelist
if [ ! -z "$1" ]; then
2016-11-07 23:57:21 +08:00
cp -af $HIDELIST $HIDELIST.tmp
cat $HIDELIST.tmp | grep -v "^$1$" > $HIDELIST
rm -f $HIDELIST.tmp
2016-11-06 02:43:57 +08:00
set `/data/busybox/ps -o pid,args | grep "$1" | grep -v "grep"`
kill "$1"
fi