Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to debug signed Android app from Eclipse?

Android 2.2. I need to debug my signed APK on my Nexus S. How can this be done using Eclipse?

I start the app on my phone and then...?

like image 756
l33t Avatar asked Apr 09 '12 13:04

l33t


People also ask

Can you debug an APK?

Android Studio 3.0 and higher allow you to profile and debug APKs without having to build them from an Android Studio project. However, you need to make sure you're using an APK with debugging enabled. To start debugging an APK, click Profile or debug APK from the Android Studio Welcome screen.

What is JDWP in Android?

Here, we will be using the Java Debug Wire Protocol (jdwp), according to the Oracle documents, jdwp is the protocol used for communication between a debugger and the Java Virtual Machine which it debugs, jdwp allows the debugger to either work in a different process in the same computer or on a remote computer.


1 Answers

Set the debuggable=true in the manifest, export, install and sign the the app. Connect the device via USB, enable USB debugging. Then open the DDMS perspective, select the device and attach to your app's process (you will see the package name listed). If you have a rooted device, you can connect to any process if adb is running as root.

like image 150
Nikolay Elenkov Avatar answered Oct 08 '22 10:10

Nikolay Elenkov