Skip to content

Instantly share code, notes, and snippets.

@nhirata
nhirata / gist:fb70d9fb747b25c0b6ec
Last active August 29, 2015 14:22
flashimg.sh
#!/bin/sh
adb reboot bootloader
fastboot devices
fastboot flash system system.img
fastboot flash boot boot.img
fastboot flash userdata userdata.img
fastboot flash cache cache.img
fastboot flash recovery recovery.img
fastboot reboot
#!/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"
Settings( 2181): at translateElement (app://settings.gaiamobile.org/gaia_build_index.js:577:130)
W/Settings( 2181): Content JS WARN: L10n Deprecation Warning: using innerHTML in translations is unsafe and will not be supported in future versions of l10n.js. See https://bugzil.la/1027117
W/Settings( 2181): at translateElement (app://settings.gaiamobile.org/gaia_build_index.js:577:130)
V/WLAN_PSA( 212): NL MSG, len[048], NL type[0x11] WNI type[0x5050] len[028]
I/Gecko ( 208): UpdatePrompt: Forcing update check
I/Gecko ( 208): *** AUS:SVC Checker: checkForUpdates, force: true
I/GeckoConsole( 208): AUS:SVC Checker: checkForUpdates, force: true
I/Gecko ( 208): *** AUS:SVC Checker:getUpdateURL - update URL: https://aus4.mozilla.org/update/3/B2G/40.0a1/20150504160201/flame-userdebug/en-US/nightly/Boot2Gecko%203.0.0.0-prerelease%20(SDK%2019)/default/default/update.xml?force=1
I/GeckoConsole( 208): AUS:SVC Checker:getUpdateURL - update URL: https://aus4.mozilla.org/update/3/B2G/40.0a1/201505041602
# configuration written to .config
#
make -C kernel O=../out/target/product/aries/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=arm-eabi- headers_install
CHK include/linux/version.h
make -C kernel O=../out/target/product/aries/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=arm-eabi-
GEN /Volumes/Projects/B2G_Test_Repo/out/target/product/aries/obj/KERNEL_OBJ/Makefile
scripts/kconfig/conf --silentoldconfig Kconfig
Using /Volumes/Projects/B2G_Test_Repo/kernel as source for kernel
GEN /Volumes/Projects/B2G_Test_Repo/out/target/product/aries/obj/KERNEL_OBJ/Makefile
CHK include/linux/version.h
function popup(title, text) {
try {
Components.classes['@mozilla.org/alerts-service;1']
.getService(Components.interfaces.nsIAlertsService)
.showAlertNotification(null, title, text, false, '', null);
} catch(e) {
// prevents runtime error on platforms that don't implement nsIAlertsService
}
}
for (i = 0; i < 20; i++) {
function popupNotify(title,body){}
try{
var alertsService = Components.classes["@mozilla.org/alerts-service;1"]
.getService(Components.interfaces.nsIAlertsService);
alertsService.showAlertNotification( true,
"Test" + i,"this is a test" + i , false, "", null);
}
catch(e){ /*this does nothing right now*/ }
}
{
"errorCode": 1,
"response":
{
"apps":
[
{
"errorCode": 1,
"processingTime": 177.95,
"response":
{
"spellingCorrection": [ ],
"ads": null,
{
"errorCode": 1,
"response":
{
"apps":
[
[2015-03-24 13:45:52,054 ERROR] in base_handler.get:171: Failed serving
Traceback (most recent call last):
File "/Volumes/Projects/everything.me/handlers/base_handler.py", line 164, in get
response = yield self.getResponse()
File "/Volumes/Projects/everything.me/PR2_ENV/lib/python2.7/site-packages/tornado/gen.py", line 628, in run
value = future.result()
File "/Volumes/Projects/everything.me/PR2_ENV/lib/python2.7/site-packages/tornado/concurrent.py", line 109, in result
raise_exc_info(self._exc_info)
File "/Volumes/Projects/everything.me/PR2_ENV/lib/python2.7/site-packages/tornado/gen.py", line 631, in run
yielded = self.gen.throw(*sys.exc_info())