If debugable is set to false or true, it does not change anything

I have an Android debugger set to false, but the condition is true. What is wrong here?

Application:

//debugable false or true, nothing changes if ((applicationFlags & ApplicationInfo.FLAG_DEBUGGABLE) != 0) { Log.d(TAG, "debugable"); } 

manifest:

 <application android:debuggable="false" ... 
+4
source share
3 answers

The answer to this question has already been asked on SO.

See Android "debugged" default value .

+2
source

. Declaring your application as “debugged” in your Android manifest allows you to debug your Android applications on an Android device , as well as on an emulator. When using Eclipse, launching your application directly from the Eclipse IDE automatically enables debugging. If you manually enable debugging in the manifest file, be sure to disable it before building for release (your published application usually should not be debugged).

+1
source

The debug flag in the manifest is automatically changed, it can be completely removed, which is also recommended by Google.

If you are debugging your application, the flag is true. If you export the applicator, the flag will be false.

0
source

Source: https://habr.com/ru/post/1403424/


All Articles