add log to stalker
This commit is contained in:
parent
fbe4908f23
commit
25bdd40c69
@ -1,6 +1,12 @@
|
||||
var sendText = ObjC.classes.PhoneService['- sendText:to:withSeq:'];
|
||||
Interceptor.attach(ObjC.classes.MyClass['- myMethod:param1'].implementation, {
|
||||
onEnter: function (args) {
|
||||
console.warn(JSON.stringify({
|
||||
fname: args[1].readCString(),
|
||||
text: new ObjC.Object(args[2]).toString(),
|
||||
backtrace: Thread.backtrace(this.context, Backtracer.ACCURATE).map(DebugSymbol.fromAddress).map(m => m.moduleName+'!'+m.name),
|
||||
ctx: this.context
|
||||
}, null, 2));
|
||||
var tid = Process.getCurrentThreadId();
|
||||
this.tid = tid;
|
||||
Stalker.follow(tid, {
|
||||
|
Loading…
Reference in New Issue
Block a user