android:debuggable
Stay organized with collections
Save and categorize content based on your preferences.
OWASP category: MASVS-PLATFORM: Platform Interaction
Overview
The android:debuggable
attribute sets whether the application is
debuggable. It is set for the application as a whole and can't be overridden by
individual components. The attribute is set to false
by default.
Allowing the application to be debuggable in itself is not a vulnerability, but
it does expose the application to greater risk through unintended and
unauthorized access to administrative functions. This can allow attackers more
access to the application and resources used by the application than intended.
Impact
Setting the android:debuggable flag to true enables an attacker to debug the
application, making it easier for them to gain access to parts of the
application that should be kept secure.
Mitigations
Always make sure to set the android:debuggable
flag to false
when shipping
your application.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2024-09-24 UTC.
[null,null,["Last updated 2024-09-24 UTC."],[],[],null,["# android:debuggable\n\n\u003cbr /\u003e\n\n**OWASP category:** [MASVS-PLATFORM: Platform Interaction](https://mas.owasp.org/MASVS/09-MASVS-PLATFORM)\n\nOverview\n--------\n\nThe `android:debuggable` [attribute](/guide/topics/manifest/application-element) sets whether the application is\ndebuggable. It is set for the application as a whole and can't be overridden by\nindividual components. The attribute is set to `false` by default.\n\nAllowing the application to be debuggable in itself is not a vulnerability, but\nit does expose the application to greater risk through unintended and\nunauthorized access to administrative functions. This can allow attackers more\naccess to the application and resources used by the application than intended.\n\nImpact\n------\n\nSetting the android:debuggable flag to true enables an attacker to debug the\napplication, making it easier for them to gain access to parts of the\napplication that should be kept secure.\n\nMitigations\n-----------\n\nAlways make sure to set the `android:debuggable` flag to `false` when shipping\nyour application."]]