(args)
| 304 | try { |
| 305 | const h = Interceptor.attach(addr, { |
| 306 | onEnter(args) { |
| 307 | if (CONFIG.maxCalls && callsSeen >= CONFIG.maxCalls) return; |
| 308 | callsSeen++; |
| 309 | const tid = Process.getCurrentThreadId(); |
| 310 | let argStr = ""; |
| 311 | if (CONFIG.logArgs > 0) { |
| 312 | const parts = []; |
| 313 | for (let i = 0; i < CONFIG.logArgs; i++) { |
| 314 | try { parts.push(`a${i}=${args[i]}`); } catch (e) {} |
| 315 | } |
| 316 | argStr = " " + parts.join(" "); |
| 317 | } |
| 318 | console.log(`${C.green}[call+]${C.reset} ${label} ${C.dim}#${tid} @+${tms()}ms${C.reset}${C.dim}${argStr}${C.reset}`); |
| 319 | beginFollow(tid, scope); |
| 320 | }, |
| 321 | onLeave(retval) { |
| 322 | const tid = Process.getCurrentThreadId(); |
| 323 | const st = endFollow(tid); |
nothing calls this directly
no test coverage detected