crmulliner / ddi

ddi - Dynamic Dalvik Instrumentation Toolkit
http://www.mulliner.org/android/
394 stars 159 forks source link

strmon example not working for other processes #15

Open akshaykochar opened 8 years ago

akshaykochar commented 8 years ago

Hi, I am trying to create a logging functionality for a app I am writing. To test ddi, I ran strmon example with my app but it does not seem to work?? My app has some compareTo string operations. Can someone tell me what I am doing wrong? basically I am able to call hijack on my app but strmon.log is always empty. My app does not get killed and is working fine? could u please let me know how to use ddi strmon on my own app?

Even if I run a simple piece of code in my app; strmon.log does not seem to record it. Example code

String str = "Hello World"; String anotherString = "hello world"; Object objStr = str; System.out.println( str.compareTo(anotherString) );

Also for com.android.contacts it just prints libstrmon: started and does not print anything else? I am really confused and would like some help to get started.