mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-12-03 11:51:53 +00:00
Auto start magiskhide
This commit is contained in:
@@ -1,14 +1,5 @@
|
||||
#!/system/bin/sh
|
||||
|
||||
HIDELIST=/magisk/.core/magiskhide/hidelist
|
||||
PROCESS=$1
|
||||
TOOLPATH=/dev/busybox
|
||||
PROCESS="$1"
|
||||
|
||||
if [ ! -z "$PROCESS" ]; then
|
||||
if [ `grep -c "^$PROCESS$" $HIDELIST` -eq "0" ]; then
|
||||
echo "$PROCESS" >> $HIDELIST
|
||||
set --
|
||||
set `$TOOLPATH/ps -o pid,args | grep "$PROCESS" | grep -v grep` >/dev/null
|
||||
[ ! -z "$1" ] && kill "$1"
|
||||
fi
|
||||
fi
|
||||
magiskhide --add "$PROCESS"
|
||||
|
||||
Reference in New Issue
Block a user