nodoraiz / android-hooker

MIT License
2 stars 4 forks source link

Error #1

Open Murthysagi opened 8 years ago

Murthysagi commented 8 years ago

When i trying to extract apk i got error message like " there was a problem : null " can u help me out where exactly the problem was happening 👎

screen shot 2016-05-26 at 4 58 05 pm
nodoraiz commented 8 years ago

Hi @Murthysagi,

Do you have the dexdump binary accessible through the $PATH?, if not please try to set it, restart android-hooker and check again if the extraction works.

Murthysagi commented 8 years ago

@nodoraiz thanks for your solution but when i try to run dexdump it is working fine, here i am using genymotion device to perform hooking process but android-hooker settings i set android studio path is it an issue ?

If yes Help me out how to resolve this issue ?

nodoraiz commented 8 years ago

@Murthysagi, it should be OK if you point the settings path to a valid SDK path in which android-hooker can find the build-tools --and this is validated when you accept this form, so it's OK if you reach the main android-hooker form--.

Based on the snapshot you provide I still think the problem is related with the dexdump path (or very close to it in the code :P). I think this because:

  1. You can connect to the device and list the apps, so ADB is working fine.
  2. Next step is to click on the "Extract classes...", and what android-hooker does here is to download the APK via ADB to a tmp directory located under the android-hooker project dir (please check this in order to discard possible causes), and it finally uses dexdump to find all used classes in the APK.

One more thing, a stack-trace is written into android-hooker/log/error.log when an error occurred, so if you want you can share it with me and I'll try to help you tracing the problem ;).