[Soot-list] Support for FragmentPageAdapter

7 views
Skip to first unread message

Faridah Akinotcho

unread,
Oct 26, 2020, 4:43:22 AM10/26/20
to soot...@cs.mcgill.ca
Hi,

My name is Faridah Akinotcho and I am working on using Soot to extract information necessary to build a model of an Android application.
For each screen of the application, I need to identify sub-elements such as fragments or drawers. I noticed that some of the fragment classes are missing from my model and this corresponds to activities where Fragments are added using FragmentPagerAdapter in this fashion:
Image en ligne

Please correct me if I am wrong, but it seems like fragments added with this type of adapter are not handled. Is there any chance you could provide me with some pointers on how to proceed to add support for this, when identifying the fragment classes ?

I am using soot-infoflow-android v2.7.1 and running on an application from the RecDroid dataset: https://github.com/AndroidTestBugReport/ReCDroid/blob/master/Evaluation%20Result/apks/8.AnyMemo-v10.10.1_debug.apk

Best regards,
Faridah Akinotcho

Faridah Akinotcho

unread,
Oct 27, 2020, 2:16:53 AM10/27/20
to Soot-list
Hi,

My name is Faridah Akinotcho and I am working on using Soot to extract information necessary to build a model of an Android application.
For each screen of the application, I need to identify sub-elements such as fragments or drawers. I noticed that some of the fragment classes are missing from my model and this corresponds to activities where Fragments are added using FragmentPagerAdapter.

Arzt, Steven

unread,
Oct 27, 2020, 4:57:27 AM10/27/20
to Faridah Akinotcho, Soot-list
Hi Faridah,

FlowDroid does support Fragments, but there might be a bug. You can have a
look at the "analyzeMethodForViewPagers" method in the
"AbstractCallbackAnalyzer" class and debug it. If you have identified the
issue, please open up a merge request on Github to contribute your fix to the
community.

Best regards,
Steven

Faridah Akinotcho

unread,
Oct 27, 2020, 5:03:13 AM10/27/20
to Soot-list, Arzt, Steven
Hi Mr Arzt,

Thank you for very much you reply. I will take a look at it !

Best regards,
Faridah Akinotcho



Reply all
Reply to author
Forward
0 new messages