Busybox path changed; stock one is enough for detection

This commit is contained in:
topjohnwu 2017-02-06 00:14:03 +08:00
parent 45dbd4464b
commit 14204c9bfc

View File

@ -10,7 +10,7 @@ void monitor_proc() {
printf("%s\n", init_ns); printf("%s\n", init_ns);
// Get the mount namespace of zygote // 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)) { while(fgets(buffer, sizeof(buffer), p)) {
if (zygote_num == 2) break; if (zygote_num == 2) break;
sscanf(buffer, "%d", &pid); sscanf(buffer, "%d", &pid);