Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What would happen if Android app is released with debuggable on?

The golden rule is to set debuggable option to off prior to releasing your Android application to the public.

What would happen if I leave (forget to turn off) this option on? I mean, how would it manifest to a user?

I tested and saw no difference.

like image 590
sandalone Avatar asked Jan 02 '11 21:01

sandalone


People also ask

What does android Debuggable do?

debuggable ). 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.

How do I know if apk is Debuggable?

If you want to know the state of the debuggable flag in the manifest you can do as @Alexander suggests. However, if you want to know if an apk is actually debuggable, you also need to see if the grep is empty. If your manifest has no debuggable flag, it will default to false.

How can you debug your app when it's already released?

Open the app on your phone. In the Devices view, expand the entry for your phone if it isn't already expanded, and look for your app's package name. Click on the package name, and in the top right of the Devices view you should see a green bug along with a number of other small buttons. Click the green bug.

What is Debuggable app?

Android Studio provides a debugger that allows you to do the following and more: Select a device to debug your app on. Set breakpoints in your Java, Kotlin, and C/C++ code. Examine variables and evaluate expressions at runtime.


1 Answers

how would it manifest to a user?

A normal user won't notice the difference.

By the way:

Support for a true debug build. Developers no longer need to add the android:debuggable attribute to the tag in the manifest — the build tools add the attribute automatically. In Eclipse/ADT, all incremental builds are assumed to be debug builds, so the tools insert android:debuggable="true". When exporting a signed release build, the tools do not add the attribute. In Ant, a ant debug command automatically inserts the android:debuggable="true" attribute, while ant release does not. If android:debuggable="true" is manually set, then ant release will actually do a debug build, rather than a release build.

like image 95
Cristian Avatar answered Sep 22 '22 11:09

Cristian