Magisk/zip_static/common/magiskhide/rm

12 lines
266 B
Plaintext
Raw Normal View History

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