From 675a88f174acb8619abced5c6058717e7d326d3b Mon Sep 17 00:00:00 2001 From: ido77778 Date: Wed, 17 Feb 2021 15:59:15 +0200 Subject: [PATCH] Revert "Use JSON.stringify for dump args and return (#334)" (#414) This reverts commit ac40784b --- agent/src/android/hooking.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/agent/src/android/hooking.ts b/agent/src/android/hooking.ts index 20cb0c81..25cb0784 100644 --- a/agent/src/android/hooking.ts +++ b/agent/src/android/hooking.ts @@ -176,7 +176,7 @@ export namespace hooking { if (dargs && calleeArgTypes.length > 0) { const argValues: string[] = []; for (const h of arguments) { - argValues.push(JSON.stringify(h || "(none)")); + argValues.push((h || "(none)").toString()); } send( @@ -190,7 +190,7 @@ export namespace hooking { // dump the return value if (dret) { - const retValStr: string = JSON.stringify(retVal || "(none)"); + const retValStr: string = (retVal || "(none)").toString(); send(c.blackBright(`[${job.identifier}] `) + `Return Value: ${c.red(retValStr)}`); }