[Soot-list] Why FlowDroid invokes one activity multiple times in dummyMainMethod()

Xinxin Jin xinxinjin89 at gmail.com
Fri Feb 13 12:46:11 EST 2015


Hi Steven,

Please check out the apk from
https://www.dropbox.com/s/nv635izcm95vnrw/iosched.apk?dl=0
It is compiled from google I/O android app (
https://github.com/google/iosched).

Thank you very much !!

On Fri, Feb 13, 2015 at 5:04 AM, Steven Arzt <Steven.Arzt at cased.de> wrote:

> Hi Xinxin,
>
>
>
> Can you please send me the APK file?
>
>
>
> Best regards,
>
>   Steven
>
>
>
> *Von:* soot-list-bounces at CS.McGill.CA [mailto:
> soot-list-bounces at CS.McGill.CA] *Im Auftrag von *Xinxin Jin
> *Gesendet:* Freitag, 13. Februar 2015 00:13
> *An:* Wei Yang; Dacong Yan
> *Cc:* Soot list
> *Betreff:* Re: [Soot-list] Why FlowDroid invokes one activity multiple
> times in dummyMainMethod()
>
>
>
> ​In addition, I also observed other entry point methods ​are invoked
> multiple times. For example, "BaseActivity: onStart()" is invoked in
> multiple statements of dummyMain:
>
>
>
> virtualinvoke $r4.<BaseActivity: void onStart()>();
>
> virtualinvoke $r14.<BaseActivity: void onStart()>();
>
> virtualinvoke $r17.<BaseActivity: void onStart()>();
>
> ...
>
> ...
>
>
>
> Thanks.
>
>
>
> On Thu, Feb 12, 2015 at 2:59 PM, Xinxin Jin <xinxinjin89 at gmail.com> wrote:
>
> Hi Wei,
>
>
>
> Sorry for the confusion. What I mean is the init method "SessionLivestreamActivity:
> void <clinit>()>" is invoked multiple times. In the generated dummyMain,
> I can see a lot of statements like:
>
>
>
> $r63 = new com.google.samples.apps.iosched.ui.SessionLivestreamActivity
>
> $r115 = new com.google.samples.apps.iosched.ui.SessionLivestreamActivity
>
> $r121 = new com.google.samples.apps.iosched.ui.SessionLivestreamActivity
>
> $r205 = new com.google.samples.apps.iosched.ui.SessionLivestreamActivity
>
> ...
>
> ...
>
>
>
> Is it normal ?
>
> Thanks very much.
>
>
>
> On Thu, Feb 12, 2015 at 2:51 PM, Wei Yang <davidyoung8906 at gmail.com>
> wrote:
>
> Hi! Xinxin,
>
>      Your question is not very clear. Are you referring to call graph when
> you say " dummyMainMethod() invokes an Activity called
> SessionLivestreamActivity "? Activity normally has multiple entry point
> methods (e.g. onCreate(), onStop() ), so it is likely that in an call
> graph, the same activity could appear on several CG nodes.
>
>
>
> Thanks!
>
>
> Best wishes,
>
> David
>
>
>
> 2015-02-12 14:35 GMT-06:00 Xinxin Jin <xinxinjin89 at gmail.com>:
>
> Hello,
>
>
>
> I am running FlowDroid on one Android app, and found dummyMainMethod()
> invokes an Activity called SessionLivestreamActivity *14* times.
>
> ​In my mind, each activity is an entry point of an app. So should not
> dummyMainMethod() only invokes each entry point once ?
>
> From my experiments, most of the time the activity class is indeed invoked
> just once. So I am confused in which particular situation the activity
> class will be invoked multiple times ?​
>
>
>
> ​Thank you very much !​
>
>
>
>
> --
>
> Xinxin
>
>
>
> _______________________________________________
> Soot-list mailing list
> Soot-list at CS.McGill.CA
> https://mailman.CS.McGill.CA/mailman/listinfo/soot-list
>
>
>
>
>
>
>
> --
>
> Xinxin
>
>
>
>
>
> --
>
> Xinxin
>



-- 
Xinxin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://mailman.CS.McGill.CA/pipermail/soot-list/attachments/20150213/ab4f4d52/attachment.html 


More information about the Soot-list mailing list