[Android] Switching debug mode with android:debuggable is deprecated

Tadashi Shigeoka ·  Sat, April 13, 2013

In Android, it seems that switching debug mode by adding android:debuggable=“true” to AndroidManifest.xml is deprecated.

When running from Eclipse, android:debuggable=“true” is automatically set, so if you don’t need to turn off debug mode, you don’t need to worry about anything in particular.

For release APK builds, if you don’t specify anything in AndroidManifest.xml, it will be in the android:debuggable=“false” state.

[References]

android:debuggableでデバッグログ切り替えはやめた方がいい - ReDo

ネタ帳 A.B.C: デバッグビルドとリリースビルドで処理を変える方法

That’s all from the Gemba.