mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-27 13:17:38 +00:00
Enable proc_monitor test in debug mode only
This commit is contained in:
parent
8b7b05da68
commit
449c7fda2f
@ -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[]) {
|
|||||||
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]);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user