Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
timdream opened this issue Mar 5, 2015 · 0 comments
Open

Comments

@timdream
Copy link

timdream commented Mar 5, 2015

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant