Disable chrome debugging. Cordova 5.0.0
You give a android:debuggable=["true" | "false"]
shot to the manifesto. This is an attribute for the app tag and can be manually added to the platform / android / AndroidManifest.xml file.
Or, you could do it through the cordons hook. Check out this hook from an ionic generator: https://github.com/djett41/generator-ionic/blob/master/templates/hooks/after_prepare/update_platform_config.js
Hooks can be automatically started from the hooks folder and that particular hook will be in hooks / after_prepare or config as <hook type="after_prepare" src="path/to/file/update_platform_config.js" />
More information on hooks can be found in the hooks readme file: https://github.com/apache/cordova-app-hello-world/blob/master/hooks/README.md
By running this option with the above, you will add something along these lines to your config.xml:
<platform name="android">
<preference name="android-debuggable" value="false" />`
</platform>
source to share