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.
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.
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With