[Soot-list] Question about instrument android using Soot

Arzt, Steven steven.arzt at sit.fraunhofer.de
Wed Apr 5 04:30:29 EDT 2017


Hi,

Please post a more complete code example. How do you call Soot? What are your Soot options? What is the exact error message or problem?

Best regards,
  Steven

From: Soot-list [mailto:soot-list-bounces at cs.mcgill.ca] On Behalf Of nudt_liujihao
Sent: Tuesday, April 4, 2017 10:23 PM
To: soot-list at cs.mcgill.ca
Subject: [Soot-list] Question about instrument android using Soot

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/2a2e6847/attachment.html>


More information about the Soot-list mailing list