Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
adb shell "stop b2g"
adb root
adb remount
adb devices
adb shell "cd /data/b2g/mozilla/*.default/;echo 'user_pref(\"dom.apps.developer_mode\", true);' >> prefs.js;"
adb shell "cd /data/b2g/mozilla/*.default/;echo 'user_pref(\"network.disable.ipc.security\", true);' >> prefs.js;"
adb shell "start b2g"
@nhirata
nhirata / flash.sh
Last active December 29, 2015 08:49 — forked from davehunt/flash.sh
#!/bin/bash -xe
wait_for_device() {
SERIAL=MSM7627A
DEVICE=05c6
# to break out if failed after so many tries.
# RETRYTIME*MAXWAITTIME is how long the max wait time will be
RETRYTIME=1
MAXWAITTIME=60