diff --git a/objection/commands/android/hooking.py b/objection/commands/android/hooking.py index 0967e119..0a806286 100644 --- a/objection/commands/android/hooking.py +++ b/objection/commands/android/hooking.py @@ -132,11 +132,11 @@ def watch_class_method(args: list) -> None: return fully_qualified_class = args[0] - overload_filter = args[1] if '--' not in args[1] else None + overload_filter = args[1].replace(' ', '') if '--' not in args[1] else None api = state_connection.get_api() api.android_hooking_watch_method(fully_qualified_class, - overload_filter.replace(' ', ''), + overload_filter, _should_dump_args(args), _should_dump_backtrace(args), _should_dump_return_value(args))