Skip to content

Don't disable ADB w/ lock screen on and don't prompt for connection #325

Description

@timdream
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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions