appmon icon indicating copy to clipboard operation
appmon copied to clipboard

Android Tracer: static method not traced

Open Piasy opened this issue 7 years ago • 6 comments

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

Piasy avatar Jun 04 '17 09:06 Piasy

@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.

dpnishant avatar Jun 04 '17 19:06 dpnishant

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.

Piasy avatar Jun 05 '17 01:06 Piasy

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

dpnishant avatar Jun 13 '17 19:06 dpnishant

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

hook_playground.js.zip

Piasy avatar Jun 13 '17 23:06 Piasy

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

afjoseph avatar Mar 30 '18 12:03 afjoseph

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?

KTodts avatar Jul 15 '18 09:07 KTodts