mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-24 03:37:58 +00:00
Busybox path changed; stock one is enough for detection
This commit is contained in:
parent
45dbd4464b
commit
14204c9bfc
@ -10,7 +10,7 @@ void monitor_proc() {
|
||||
printf("%s\n", init_ns);
|
||||
|
||||
// Get the mount namespace of zygote
|
||||
FILE *p = popen("/data/busybox/ps | grep zygote | grep -v grep", "r");
|
||||
FILE *p = popen("ps | grep zygote | grep -v grep", "r");
|
||||
while(fgets(buffer, sizeof(buffer), p)) {
|
||||
if (zygote_num == 2) break;
|
||||
sscanf(buffer, "%d", &pid);
|
||||
|
Loading…
x
Reference in New Issue
Block a user