[Soot-list] Counting android API calls made in Jimple

Steven Arzt Steven.Arzt at cased.de
Thu Sep 10 09:09:08 EDT 2015


Hi Ben,

 

That’s indeed the most efficient way to do it. There is no special function that would collect the API calls for you.

 

Best regards,

  Steven

 

Von: soot-list-bounces at CS.McGill.CA [mailto:soot-list-bounces at CS.McGill.CA] Im Auftrag von Ben Westfield
Gesendet: Montag, 22. Juni 2015 18:03
An: soot-list at CS.McGill.CA
Betreff: [Soot-list] Counting android API calls made in Jimple

 

Hi All,

I am looking to use Soot for  analysis of android applications: counting the number of calls each method makes to the android APIs (android.*). My plan is to turn the apk files to .jimple then run soot on these to find any such calls.

I have worked my way through both the GotoProfiler and the Android examples. My question is: are there explicit Stmt classes to find android API calls (similar to the GotoStmt in the profiler example)? The only method I have come up with so far is to use 
SootMethod.getSignature().contains("android.") to identify if an InvokeExpr references an android API call.



Thanks for your help,

Ben 

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


More information about the Soot-list mailing list