[Soot-list] Error on getMethodByName() in soot
Steven Arzt
Steven.Arzt at cased.de
Tue Jun 23 04:48:50 EDT 2015
Please post you complete changed code, otherwise it’s hard to tell what’s still wrong.
Von: Marjan Radi [mailto:marjan.radi at yahoo.com]
Gesendet: Montag, 22. Juni 2015 19:22
An: Steven Arzt; soot-list at cs.mcgill.ca
Betreff: Re: AW: [Soot-list] Error on getMethodByName() in soot
Dear Steven,
I followed your instruction but still I got the same error. Is there any thing else that I can do to resolve this issue?
Regards,
Marjan
On Monday, June 22, 2015 3:56 AM, Steven Arzt <Steven.Arzt at cased.de> wrote:
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/20150623/8cd46e9f/attachment-0001.html
More information about the Soot-list
mailing list