mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-30 21:45:27 +00:00
12 lines
270 B
Bash
12 lines
270 B
Bash
#!/system/bin/sh
|
|
|
|
HIDELIST=/magisk/.core/magiskhide/hidelist
|
|
|
|
if [ ! -z "$1" ]; then
|
|
cp -af $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
|