From 449c7fda2f8d85f1503be0426fe70061b8fc6188 Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Sun, 26 May 2019 02:53:28 -0700 Subject: [PATCH] Enable proc_monitor test in debug mode only --- native/jni/magiskhide/magiskhide.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/native/jni/magiskhide/magiskhide.cpp b/native/jni/magiskhide/magiskhide.cpp index 11f601f5d..6165e5b06 100644 --- a/native/jni/magiskhide/magiskhide.cpp +++ b/native/jni/magiskhide/magiskhide.cpp @@ -28,7 +28,9 @@ bool hide_enabled = false; " --add PKG [PROC] Add a new target to the hide list\n" " --rm PKG [PROC] Remove from the hide list\n" " --ls List the current hide list\n" +#ifdef MAGISK_DEBUG " --test Run process monitor test\n" +#endif , arg0); exit(1); } @@ -92,8 +94,10 @@ int magiskhide_main(int argc, char *argv[]) { req = LS_HIDELIST; else if (argv[1] == "--status"sv) req = HIDE_STATUS; +#ifdef MAGISK_DEBUG else if (argv[1] == "--test"sv) test_proc_monitor(); +#endif else usage(argv[0]);