Magisk/zip_static/common/magiskhide/rm
2016-11-06 02:43:57 +08:00

12 lines
266 B
Bash

#!/system/bin/sh
HIDELIST=/magisk/.core/magiskhide/hidelist
if [ ! -z "$1" ]; then
mv $HIDELIST $HIDELIST.tmp
cat $HIDELIST.tmp | grep -v "^$1$" > $HIDELIST
rm -f $HIDELIST.tmp
set `/data/busybox/ps -o pid,args | grep "$1" | grep -v "grep"`
kill "$1"
fi