[Soot-list] Question about instrument android using Soot
nudt_liujihao
nudt_liujihao at 163.com
Tue Apr 4 16:22:38 EDT 2017
Hi, everyone
Recently, I want to instrument android apps. I need to insert some statements from "Java.net.HttpURLConnection, Java.net.URL, org.apache.http.client.methods.HttpGet, org.apache.http.client.methods.HttpPost".
My code is as follows:
SootMethod sm1 = Scene.v().getMethod("<java.net.HttpURLConnection: java.net.URL getURL()>");
SootMethod sm2 = Scene.v().getMethod("<java.net.URL: java.lang.String toString()>");
SootMethod sm3 = Scene.v().getMethod("<org.apache.http.client.methods.HttpGet: java.net.URI getURI()>");
SootMethod sm4 = Scene.v().getMethod("<org.apache.http.client.methods.HttpPost: java.net.URI getURI()>");
However, I cannot get the SootMethod, sm1, sm2, sm3, sm4.
Could someone can tell me how to get these SootMethods?
Thanks a lot.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.CS.McGill.CA/pipermail/soot-list/attachments/20170405/7dc38bec/attachment.html>
More information about the Soot-list
mailing list