mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-03 15:05:32 +00:00
12 lines
253 B
Bash
12 lines
253 B
Bash
#!/system/bin/sh
|
|
|
|
HIDELIST=/magisk/.core/magiskhide/hidelist
|
|
|
|
if [ ! -z "$1" ]; then
|
|
if [ $(grep -c "^$1$" $HIDELIST) -eq "0" ]; then
|
|
echo "$1" >> $HIDELIST
|
|
set `/data/busybox/ps -o pid,args | grep "$1" | grep -v "grep"`
|
|
kill "$1"
|
|
fi
|
|
fi
|