Android Debugging
Debugging is a method used to inject/modify application function during runtime process
Android application must be flagged as debuggable in order to be able to test the debugging.
Debugging android apps
In order to do that, first we need to check if the application is debuggable or not by exploring the AndrdoiMainfest.xml file and look for the debug flag
Debug InsecureBankv2.apk
Look for the mainfest file for
android:debugging=true
flagrun the following command using adb
Note the IDs and then lunch the application
run adb again and take a note of the new ID (this the id for the InsecureBankv2 application)
Enter the following command to create a new connection listening on 12345 to which we later connect using jdb.
Connect to 12345 using jdb.
The list of all the available classes can be viewed using the command “classes”.
Methods for a specific class can be found using the below command:
Set Breakpoint
Click on create user button to hit the breakpoint
The command “local” can be used to view the current local variables and the “step” command can be used to move to the next instruction.
Check the local variables
Modify variable
Last updated