MagiskHide small fix

This commit is contained in:
topjohnwu 2017-01-01 20:31:08 +08:00
parent 198b14e5fc
commit ff5c0d6361
2 changed files with 3 additions and 1 deletions

View File

@ -19,7 +19,7 @@ static void terminate(int sig) {
int main(int argc, char *argv[]) {
if (argc > 0) {
if (argc > 1) {
if (strcmp(argv[1], "--daemon") == 0)
run_as_daemon();
else {

View File

@ -7,6 +7,8 @@ void monitor_proc() {
// Get the mount namespace of init
read_namespace(1, init_ns, 32);
printf("%s\n", init_ns);
// Get the mount namespace of zygote
FILE *p = popen("/data/busybox/ps | grep zygote | grep -v grep", "r");
while(fgets(buffer, sizeof(buffer), p)) {