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