{"action":"closed","issue":{"url":"https://api.github.com/repos/frida/frida/issues/491","repository_url":"https://api.github.com/repos/frida/frida","labels_url":"https://api.github.com/repos/frida/frida/issues/491/labels{/name}","comments_url":"https://api.github.com/repos/frida/frida/issues/491/comments","events_url":"https://api.github.com/repos/frida/frida/issues/491/events","html_url":"https://github.com/frida/frida/issues/491","id":320151840,"number":491,"title":"How to use frida to hook a native function's arguments in Android?","user":{"login":"bxl0608","id":25519786,"avatar_url":"https://avatars2.githubusercontent.com/u/25519786?v=4","gravatar_id":"","url":"https://api.github.com/users/bxl0608","html_url":"https://github.com/bxl0608","followers_url":"https://api.github.com/users/bxl0608/followers","following_url":"https://api.github.com/users/bxl0608/following{/other_user}","gists_url":"https://api.github.com/users/bxl0608/gists{/gist_id}","starred_url":"https://api.github.com/users/bxl0608/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bxl0608/subscriptions","organizations_url":"https://api.github.com/users/bxl0608/orgs","repos_url":"https://api.github.com/users/bxl0608/repos","events_url":"https://api.github.com/users/bxl0608/events{/privacy}","received_events_url":"https://api.github.com/users/bxl0608/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-05-04T04:36:38Z","updated_at":"2018-05-08T23:16:07Z","closed_at":"2018-05-08T23:16:07Z","author_association":"NONE","body":"Hello,Recent,I learn to use the frida framework，but i met a problem. \r\nI have a native function, i know it has three argumens,fisrt is a Int, the second is String,i can print the first argument,but the second argument .i don't konw how to print it. code like this:\r\n\r\nInterceptor.attach(Module.findExportByName(\"libuserinfo.so\", \"getString\"),{\r\n        onEnter: function (args) {\r\n            send(args[2].toInt32());  // this is first argument.\r\n            // this.buf = args[3];    how can i print the second argument?\r\n        },\r\n        onLeave: function (retval) {\r\n         \r\n        }\r\n});"}}
{"actor":{"display_login":"oleavr"}}