Commit 449c7fda authored by topjohnwu's avatar topjohnwu

Enable proc_monitor test in debug mode only

parent 8b7b05da
...@@ -28,7 +28,9 @@ bool hide_enabled = false; ...@@ -28,7 +28,9 @@ bool hide_enabled = false;
" --add PKG [PROC] Add a new target to the hide list\n" " --add PKG [PROC] Add a new target to the hide list\n"
" --rm PKG [PROC] Remove from the hide list\n" " --rm PKG [PROC] Remove from the hide list\n"
" --ls List the current hide list\n" " --ls List the current hide list\n"
#ifdef MAGISK_DEBUG
" --test Run process monitor test\n" " --test Run process monitor test\n"
#endif
, arg0); , arg0);
exit(1); exit(1);
} }
...@@ -92,8 +94,10 @@ int magiskhide_main(int argc, char *argv[]) { ...@@ -92,8 +94,10 @@ int magiskhide_main(int argc, char *argv[]) {
req = LS_HIDELIST; req = LS_HIDELIST;
else if (argv[1] == "--status"sv) else if (argv[1] == "--status"sv)
req = HIDE_STATUS; req = HIDE_STATUS;
#ifdef MAGISK_DEBUG
else if (argv[1] == "--test"sv) else if (argv[1] == "--test"sv)
test_proc_monitor(); test_proc_monitor();
#endif
else else
usage(argv[0]); usage(argv[0]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment