[Soot-list] Call an explicit phase pack
Steven Arzt
Steven.Arzt at cased.de
Thu Jul 3 05:02:59 EDT 2014
Hi Emmanuelo,
Try
PackManager.v().getPack("wjtp").apply();
If you dont need the full pack, but just a single transformer from it, call
the transform() method on it directly.
Best regards,
Steven
Von: soot-list-bounces at CS.McGill.CA [mailto:soot-list-bounces at CS.McGill.CA]
Im Auftrag von Emma
Gesendet: Donnerstag, 3. Juli 2014 10:59
An: soot-list at CS.McGill.CA
Cc: emma4ever86 at hotmail.com
Betreff: Re: [Soot-list] Call an explicit phase pack
Thanks Steven!
Although, the code that I proposed doesn't really work. That's why I said
"something" like that :P
PackManager.v().getPack("wjtp.myColorer").runPack();
There is no runPack() method in Soot, but just runPacks();
We can just do:
PackManager.v().runPacks();
That is my main question how to do it. I'd really appreciate any help
Thank you very much in advance
Emmanuelo
On 03/07/2014 00:00, Steven Arzt wrote:
Hi Emmanuelo,
This is theoretically possible. You need to set your Soot options using the
setters in Options.v(), then call Scene.v().loadNecessaryClasses() and then
call the packs you need with the code you have already proposed. However,
note that Soot depends on some early packs such as jb to get its Jimple
bodies otherwise, there is not much you can work on.
Best regards,
Steven
M.Sc. M.Sc. Steven Arzt
Secure Software Engineering Group (SSE)
European Center for Security and Privacy by Design (EC SPRIDE)
Mornewegstraße 32
D-64293 Darmstadt
Phone: +49 61 51 16-75426
Fax: +49 61 51 16-72118
eMail: <mailto:steven.arzt at ec-spride.de> steven.arzt at ec-spride.de
Web: http://sse.ec-spride.de <http://sse.ec-spride.de/>
Von: soot-list-bounces at CS.McGill.CA [mailto:soot-list-bounces at CS.McGill.CA]
Im Auftrag von emma
Gesendet: Montag, 12. Mai 2014 18:25
An: Soot list
Betreff: [Soot-list] Call an explicit phase pack
Hi list,
I'd like to ask if it is possible (and how) to call an explicit soot phase
pack.
I need to call the phases AFTER wjtp. So, is it possible to run the phases
after these one
and exclude the previous ones?
I know that we can apply a new pack, but how can we run soot from that pack
only?
like perhaps:
PackManager.v().getPack("wjtp.myColorer").runPack();
Thanks a lot,
--Emmanuelo
_______________________________________________
Soot-list mailing list
Soot-list at CS.McGill.CA
https://mailman.CS.McGill.CA/mailman/listinfo/soot-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.CS.McGill.CA/pipermail/soot-list/attachments/20140703/049ce1eb/attachment-0001.html
More information about the Soot-list
mailing list