[Soot-list] printSinks & printSources

Modhi Alsobiehy m99m20 at hotmail.com
Mon Nov 10 00:22:25 EST 2014


Thank you for clearing that!

-Best,
Modhi

> On Nov 9, 2014, at 12:35 PM, "Steven Arzt" <Steven.Arzt at cased.de> wrote:
> 
> Hi Modhi,
>  
> The „printSources()“ and „printSinks()“ methods just print the lists of sources and sinks read in from disk, i.e., the contents of the “SourcesAndSinks.txt” file if you are using the default implementation of the SourceSinkManager. It does not perform any mapping against the current APK file.
>  
> Best regards,
>   Steven
>  
> Von: Modhi Alsobiehy [mailto:m99m20 at hotmail.com] 
> Gesendet: Sonntag, 9. November 2014 07:28
> An: soot-list at sable.mcgill.ca; Steven Arzt
> Cc: soot-list at CS.McGill.CA
> Betreff:
>  
> Hi Steven; all;
> I am running the following code to get all sources and sinks in an apk, however, I am always getting the same results whatever apk I try (including simple hello app that does nothing)!
> which makes me wondering what is the results that should be returned from printSinks() and printSources()? 
> Attached two apks (hello world and  simple calculator) for testing!
> SetupApplication sApp = new SetupApplication("D:\\AndroidADT\\adt-bundle-windows-x86_64-20131030\\sdk\\platforms", "D:/apks/Hello.apk");
> 
> try {
> 
> sApp.calculateSourcesSinksEntrypoints("./SourcesAndSinks.txt");
> 
> System.out.println("All sources accessed by the app: ");
> 
> sApp.printSources();
> 
> System.out.println("All sinks accessed by the app: ");
> 
> sApp.printSinks();
> 
> } catch (IOException e) {
> 
> // TODO Auto-generated catch block
> 
> e.printStackTrace();
> 
> } catch (Exception e) {
> 
> // TODO Auto-generated catch block
> 
> e.printStackTrace();
> 
> }
> 
> }
> 
> Your quick response deeply appreciated!
> Thank you,
> Modhi..
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.CS.McGill.CA/pipermail/soot-list/attachments/20141109/ea8bd3cd/attachment-0002.html 


More information about the Soot-list mailing list