dpnishant / appmon

Documentation:
http://dpnishant.github.io/appmon
Apache License 2.0
1.56k stars 276 forks source link

Android Tracer: static method not traced #33

Open Piasy opened 7 years ago

Piasy commented 7 years ago

I want to trace all methods in AudioRecord, getMinBufferSize was found, but not traced.

dpnishant commented 7 years ago

@Piasy I need an app that calls the above mentioned method to be able to debug the issue. Let me know if can share more info.

Piasy commented 7 years ago

I have a demo app, RxAndroidAudio.apk.zip, the source code is here, https://github.com/Piasy/RxAndroidAudio.

Step to reproduce:

  1. Run app;
  2. Run python android_tracer.py -a com.github.piasy.rxandroidaudio -c AudioRecord -m "*";
  3. Click STREAM MODE, then START;

Then you can see there is no getMinBufferSize traces, but I definitely called this method.

dpnishant commented 7 years ago

@Piasy Are you able to generate the trace script with your tool and are you able to trace those methods? Just curious.

Piasy commented 7 years ago

Yes I can, and the generated scripts is attached below.

hook_playground.js.zip

afjoseph commented 6 years ago

Having the same issue here: can't trace static methods. I was able to trace them with Frida though

KTodts commented 6 years ago

Having the same issue here: can't trace static methods. I was able to trace them with Frida though

@Obaied . I'm having the same issue. How were you able to trace a static function with frida?