From e9fbed1178895c5a55941434b633d5fd5a4f5ebd Mon Sep 17 00:00:00 2001 From: Ningxin Hu Date: Thu, 13 Mar 2014 08:23:31 +0800 Subject: [PATCH] Enable remote debugging for debug build. BUG=https://crosswalk-project.org/jira/browse/XWALK-1039 --- framework/src/org/apache/cordova/CordovaWebView.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/framework/src/org/apache/cordova/CordovaWebView.java b/framework/src/org/apache/cordova/CordovaWebView.java index 6e8cbf34..9ec3b396 100755 --- a/framework/src/org/apache/cordova/CordovaWebView.java +++ b/framework/src/org/apache/cordova/CordovaWebView.java @@ -215,8 +215,7 @@ private void initWebViewSettings() { //Determine whether we're in debug or release mode, and turn on Debugging! ApplicationInfo appInfo = getContext().getApplicationContext().getApplicationInfo(); - if ((appInfo.flags & ApplicationInfo.FLAG_DEBUGGABLE) != 0 && - android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.KITKAT) { + if ((appInfo.flags & ApplicationInfo.FLAG_DEBUGGABLE) != 0) { enableRemoteDebugging(); }