B2G-flash-tool
B2G-flash-tool copied to clipboard
Don't disable ADB w/ lock screen on and don't prompt for connection
diff --git a/enable_certified_apps_for_devtools.sh b/enable_certified_apps_for_devtools.sh
index 6a71ff4..99c8c95 100755
--- a/enable_certified_apps_for_devtools.sh
+++ b/enable_certified_apps_for_devtools.sh
@@ -99,6 +99,11 @@ adb pull ${PREFS_PATH} ${TMP_DIR}
echo "### Enable Devtools and Certified Apps..."
echo "### change ${PREFS_FILE} ..."
echo -e "user_pref(\"devtools.debugger.forbid-certified-apps\", false);" >> ${TMP_DIR}/${PREFS_FILE}
+# Don't disable adb when screen is off with lock screen enabled
+echo -e "user_pref(\"marionette.defaultPrefs.enabled\", true);" >> ${TMP_DIR}/${PREFS_FILE}
+# Don't prompt for debugging connection
+echo -e "user_pref(\"devtools.debugger.prompt-connection\", false);" >> ${TMP_DIR}/${PREFS_FILE}
+
## it doesn't work, seems like will be changed by B2G base on DB of Settings
#echo -e "user_pref(\"devtools.debugger.remote-enabled\", true);" >> ${TMP_DIR}/${PREFS_FILE}
Not sure this is the right file to put the pref but here is my fix.