The "string" mentioned in the document is not your build of applications, but the Android system.
The value of Config.DEBUG ONLY depends on the system (ROM) of your device, nothing to do with your application. On a device with a production assembly, ROM Config.DEBUG is always mistaken, regardless of how you install USB debugging on the device and the debugged flag in the manifest.
If the document is written like this: "If the Android system is a debug assembly, this field will be true." Then it will be less confusing.
source share