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"
@davehunt
davehunt / flash.sh
Last active December 29, 2015 08:49
Shallow flash B2G (Non-RIL) for CI
#!/bin/bash -e
# This script is maintained at:
# https://gist.github.com/davehunt/7646076
# adb root, then remount and stop b2g
function adb_root_remount() {
echo -e "\n\033[1mRoot and remount\033[0m"
adb root
adb wait-for-device
07-30 22:27:12.398: E/GeckoConsole(106): [JavaScript Error: "Exposing chrome JS objects to content without __exposedProps__ is insecure and deprecated. See https://developer.mozilla.org/en/XPConnect_wrappers for more information." {file: "app://system.thisdomaindoesnotexist.org/js/activities.js" line: 16}]
07-30 22:27:12.418: I/Gecko(106): ###################################### forms.js loaded
07-30 22:27:12.488: E/GeckoConsole(106): Content JS INFO at app://system.thisdomaindoesnotexist.org/js/window_manager.js:433 in appendFrame: %%%%% Launching E-Mail as local
07-30 22:27:12.648: D/memalloc(106): /dev/pmem: Allocated buffer base:0x48c8f000 size:20480 offset:630784 fd:109
07-30 22:27:12.668: E/GeckoConsole(106): [JavaScript Warning: "Error in parsing value for 'display'. Declaration dropped." {file: "app://email.thisdomaindoesnotexist.org/style/mail.css" line: 7}]
07-30 22:27:12.668: E/GeckoConsole(106): [JavaScript Warning: "Unknown property '-moz-border-radius'. Declaration dropped." {file: "app://email