From baaaf7d5de23386aebfa0b5521fa1dcd3deaed37 Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Tue, 17 Sep 2019 01:50:38 -0400 Subject: [PATCH] Fully match zygote/usap process names --- native/jni/magiskhide/proc_monitor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/native/jni/magiskhide/proc_monitor.cpp b/native/jni/magiskhide/proc_monitor.cpp index eaca2a836..a55c29090 100644 --- a/native/jni/magiskhide/proc_monitor.cpp +++ b/native/jni/magiskhide/proc_monitor.cpp @@ -214,8 +214,8 @@ static bool check_pid(int pid) { return true; } - // Still zygote/usap - if (strncmp(cmdline, "zygote", 6) == 0 || strncmp(cmdline, "usap", 4) == 0) + if (cmdline == "zygote"sv || cmdline == "zygote32"sv || cmdline == "zygote64"sv || + cmdline == "usap32"sv || cmdline == "usap64"sv) return false; int uid = st.st_uid % 100000;