Magisk/zip_static/common/magiskhide/rm

14 lines
334 B
Plaintext
Raw Normal View History

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