


In order to debug an app Android Studio communicates with the App using JDWP over ADB communication as the very high level chart shows:Īpparently there is already a support for my debugging needs and all I need to do is to set the ro.debuggable system property to 1. Sadly, in order to do so you must recompile apps, and that has a high probability of failure.Īs my device is rooted and highly customized I decided to find a way to make all apps debuggable. I’m a big fan of the Android Studio Debugger (JDWP under the hood), as you can easily setup breakpoints, modify the code and even add logic to it, all at runtime, from your favorite IDE. Better Solutions for Debugging 3rd Party Android Apps The above methods have several flaws, Frida is only able to hook a specific function either before or after the function, and poaching apps is relatively complex and almost always causes bugs in the app.Īlso many packers / malwares detect modified APKs and crash to intentionally make analysis harder. Patch the app to log the sensitive information.

Use Frida hooks to print function arguments.There are many ways to get this information from 3rd party apps While reverse engineer Android apps it’s relatively common to perform dynamic analysis in conjunction to static analysis in order to gain runtime information of the app.
