crmulliner / ddi

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

Unable to resolve the class of a test app #4

Closed boh717 closed 7 years ago

boh717 commented 10 years ago

Hi Collin, thanks for the great work! I'm trying to hook a method of a very simple test app, but dalvik_hook can't resolve its class. I checked many times that the name is correct (even in the smali code) but it just can't hook it. I added in the code some log debug strings. I tried this code with different android versions: 2.3.3, 4.1.2, 4.2.2, 4.3. Could you please help me? All the code (including the log) is here: https://github.com/boh717/ddi-testing

boh717 commented 10 years ago

I've already saw the other open issue and I think these are related. I've also tried to set: dalvik_dump_class(&d, NULL); and the app crashes as soon as starts.

aosti commented 10 years ago

Hello, I'm also using the framework and had the same problem. Try dalvik_dump_class(&d, "") instead of dalvik_dump_class(&d, NULL).

cebernalc commented 9 years ago

Is there a solution for this?