Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What makes this Android app debuggable

Until now, when I make a debuggable version of my app I use:

android:debuggable="true"

in the manifest.

But I just downloaded some source code that doesn't use this and yet when I launch it with Debug, it is in debug mode. Where is the debug flag set for this app?

like image 872
Johann Avatar asked Feb 06 '13 12:02

Johann


People also ask

What does Android Debuggable do?

The debuggable flag in the app manifest tells the VM that the app is under development, and connections from debuggers should be allowed whether or not the app is running on a production device. All of the above relates to the app's runtime behavior, not the build. Debug builds are also different from release builds.

What is Debuggable app?

The android debug bridge (adb) is used to connect the developers system to an Android phone or the emulator. On the device itself the adbd daemon is started as soon as the phone is connected to the computer when USB debugging is enabled.

How do I know if APK is Debuggable?

Open your command prompt, write below line of code and execute. If you find this output, then its a debug build as it is written “CN=Android Debug”.


1 Answers

ADT does that for you when you run in debug mode. From the docs:

Ensure that your application is debuggable by setting the android:debuggable attribute of the element to true. As of ADT 8.0, this is done by default when you build in debug mode.

like image 180
nneonneo Avatar answered Oct 03 '22 00:10

nneonneo