I am trying to publish an Android application created using cordova, and when I published, I followed all the steps, such as android: debuggable = "false", or even deleting this line as the last sentence, but the problem is that I am installing a signed build version in my emulator i can debug it ... any help?
Update: -
As suggested, I tried ..
public class appname extends CordovaActivity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); super.init(); super.loadUrl(Config.getStartUrl()); if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT){ if(0 != (getApplicationInfo().flags = ApplicationInfo.FLAG_DEBUGGABLE)){
in public void onCreate (Bundle savedInstanceState) {}
Found this piece of code in CordovaWebView.java
if((appInfo.flags & ApplicationInfo.FLAG_DEBUGGABLE) != 0 && android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.KITKAT) { setWebContentsDebuggingEnabled(true); // I tried setting this false as well }
But its still not working ... I can still debug html js files
source share