2016-10-15 05:38:12 +08:00
|
|
|
#!/system/bin/sh
|
|
|
|
|
2016-11-01 04:21:43 +08:00
|
|
|
HIDELIST=/magisk/.core/magiskhide/hidelist
|
2017-02-01 23:22:07 +08:00
|
|
|
PROCESS=$1
|
2017-02-05 01:45:53 +08:00
|
|
|
TOOLPATH=/dev/busybox
|
2016-10-15 05:38:12 +08:00
|
|
|
|
2017-02-01 23:22:07 +08:00
|
|
|
if [ ! -z "$PROCESS" ]; then
|
2016-11-07 23:57:21 +08:00
|
|
|
cp -af $HIDELIST $HIDELIST.tmp
|
2017-02-01 23:22:07 +08:00
|
|
|
cat $HIDELIST.tmp | grep -v "^$PROCESS$" > $HIDELIST
|
2016-10-15 05:38:12 +08:00
|
|
|
rm -f $HIDELIST.tmp
|
2017-02-01 23:22:07 +08:00
|
|
|
set --
|
2017-02-05 01:45:53 +08:00
|
|
|
set `$TOOLPATH/ps -o pid,args | grep "$PROCESS" | grep -v grep` >/dev/null
|
2017-02-01 23:22:07 +08:00
|
|
|
[ ! -z "$1" ] && kill "$1"
|
2016-10-15 05:38:12 +08:00
|
|
|
fi
|