How to debug the third-party Android Java code
This article describes how to debug the third-party Android Java code on Windows, taking into account the specifics of OS X. There is a very detailed article from @ CR0SP that will help you understand the material.
A step-by-step instruction is given in this article. First and foremost, you need a Mac and an Android device with the “USB debugging” options turned on.
You will need to debug the APK:
1. Get the original APK.
2. Baksmali DEX classes from the original APK.
3. Create an Android Studio project.
4. Create a remote configuration.
5. It’s time for Android Device Monitor.
6. Run debugging.
You can write a letter to Dima Kovalenko if you have comments on this topic.