[Soot-list] FlowDroid: adding support for more components

Steven Arzt Steven.Arzt at cased.de
Mon Jun 6 05:21:19 EDT 2016


Hi Denis,

 

We might add support for fragments to FlowDroid in an internal project in the not-so-far future, but I cannot give you a definite schedule for that. If it happens and when it’s done, it will also be merged into the open-source tool.

 

The AndroidCallbacks.txt file doesn’t help here. That file only lists the interfaces that contain callback methods. If such an interface is implemented in the app, all of its methods are considered as callbacks. There is no ordering of callbacks, because they can happen at any time in Android. You can’t tell, for instance, whether there is first an incoming SMS message and then a low battery state or vice versa. Fragments, on the other hand, have a well-defined lifecycle just like an Activity. Even more, the Fragment lifecycle integrates with the one of its parent Activity. To faithfully model this lifecycle, you would have to extend the AndroidEntryPointCreator class. If you want to add this support, look at what we already have in that class. You essentially need to create a bigger and more involved dummy main method.

 

Best regards,

  Steven

 

Von: soot-list-bounces at CS.McGill.CA [mailto:soot-list-bounces at CS.McGill.CA] Im Auftrag von Denis Bogdanas
Gesendet: Montag, 6. Juni 2016 00:41
An: soot-list at CS.McGill.CA
Betreff: [Soot-list] FlowDroid: adding support for more components

 

Hi Steven,

I'm thinking to add support for more Android components to FlowDroid. At least supporting Fragment is a must for my project.

I have a few questions:

- How was  the file AndroidCallbacks.txt produced? Manually, or through some tool/methodology?


 

- To support Fragment: if I just read the top-level fragments from Manifest the way Activity classes are read, and add the Fragment to AndroidCallbacks.txt, will that work? If not, could you suggest what shoud I do?

 

thanks,

-- 

Denis

-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://mailman.CS.McGill.CA/pipermail/soot-list/attachments/20160606/6d14b0ac/attachment.html 


More information about the Soot-list mailing list