arguslab / Argus-SAF

Argus static analysis framework
Apache License 2.0
181 stars 49 forks source link

ControlFlow graph misses some packages entirely #75

Open sujon335 opened 4 years ago

sujon335 commented 4 years ago

I am analyzing some apks from [https://play.google.com/store/apps/developer?id=Paytronix+Systems] paytronix family of apps. The cfg produced by the following code misses some flow containing com.crashlytics.android.core packages entirely. Is there any possible reason behind it?

` val apk = yard.loadApk(fileUri, settings, collectInfo = false, resolveCallBack = false)

val allMethods = apk.getApplicationClasses.map(c => c.getDeclaredMethods).reduce(_ ++ _)
allMethods.foreach { m =>
  println(m.getSignature)
  println(m.retrieveCode)

try {
  val cfg = JawaAlirInfoProvider.getCfg(m)
  cfg.toGraphML(new PrintWriter(System.out))
}`