Method coverage in an Android app without source code

Can someone give me an idea about covering methods in android apk without source code? I heard that there is a special version of the emma project for Android, which can transmit method coverage information using tools. But if I do not have the source code, how can I execute the code?

My goal is how to get a report on what methods were called at runtime at application startup.

+4
source share
1 answer

You do not need emma to get a report on which methods are being called. Just:

  • run DDMS
  • select device
  • select process
  • click the "Start profiling method" button (arrows with a red button)
  • Profiling Stop Code

and you will get a report like this:

enter image description here

See http://developer.android.com/tools/debugging/debugging-tracing.html for details

+6
source

Source: https://habr.com/ru/post/1436859/


All Articles