Improve magiskhide stability

This commit is contained in:
topjohnwu
2017-05-04 02:58:37 +08:00
parent 05ed29133b
commit 396afaa181
5 changed files with 28 additions and 18 deletions

View File

@@ -151,8 +151,7 @@ static void proc_name_filter(int pid) {
return;
fdgets(buf, sizeof(buf), fd);
}
if (strstr(buf, ps_filter_pattern)) {
// printf("%d: %s\n", pid, buf);
if (strcmp(buf, ps_filter_pattern) == 0) {
ps_filter_cb(pid);
}
close(fd);