[Soot-list] Error on getMethodByName() in soot
Steven Arzt
Steven.Arzt at cased.de
Mon Jun 22 04:56:43 EDT 2015
Hi Marjan,
It’s not a good idea to try and load custom classes before the basic ones are loaded into the Soot Scene. Try to call Scene.v().addBasicClass(…) after parsing the options, then run loadNecessaryClasses(), and then access your desired method.
Best regards,
Steven
Von: soot-list-bounces at CS.McGill.CA [mailto:soot-list-bounces at CS.McGill.CA] Im Auftrag von Marjan Radi
Gesendet: Donnerstag, 18. Juni 2015 22:09
An: soot-list at cs.mcgill.ca
Betreff: [Soot-list] Error on getMethodByName() in soot
Hi Guys;
I am trying to set the entrypoint of my analysis in soot using :
"
Options.v().parse(args);
SootClass c = Scene.v().forceResolve("ImageDownloaderTask", SootClass.BODIES);
c.setApplicationClass();
Scene.v().loadNecessaryClasses();
SootMethod method = c.getMethodByName("downloadBitmap");
List entryPoints = new ArrayList();
entryPoints.add(method);
Scene.v().setEntryPoints(entryPoints);
PackManager.v().runPacks();"
But I got following error:
Exception in thread "main" java.lang.RuntimeException: couldn't find method downloadBitmap(*) in ImageDownloaderTask
at soot.SootClass.getMethodByName(SootClass.java:549)
While I have "static Bitmap downloadBitmap(String url)" method inside "ImageDownloaderTask" class. I would be appreciated if anybody can help me.
Regards,
Marjan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://mailman.CS.McGill.CA/pipermail/soot-list/attachments/20150622/06cbe03e/attachment.html
More information about the Soot-list
mailing list