Skip to content

Instantly share code, notes, and snippets.

View dynamis's full-sized avatar
れっさーぱんだもふもふ

dynamis dynamis

れっさーぱんだもふもふ
View GitHub Profile
@dynamis
dynamis / make-reset-gaia.sh
Created April 17, 2014 13:15
Firefox OS で日本語+英語の gaia をビルドして端末に焼き込むスクリプト
#!/bin/bash
# see follwoing pages:
# https://developer.mozilla.org/en-US/Firefox_OS/Platform/Gaia/Build_System_Primer
# https://developer.mozilla.org/en-US/Firefox_OS/Customization_with_the_.userconfig_file
# get locale files before use this script:
# cd locales
# hg clone http://hg.mozilla.org/gaia-l10n/en-US
# hg clone http://hg.mozilla.org/gaia-l10n/ja
@dynamis
dynamis / r2d2b2g.diff
Created April 22, 2014 10:49
Firefox OS Simulator のビルドしたときの修正メモ
diff --git a/Makefile b/Makefile
index 0ac9c92..d0ca28b 100644
--- a/Makefile
+++ b/Makefile
@@ -35,9 +35,9 @@ ifndef B2G_PLATFORM
endif
endif
-B2G_VERSION=1.3
-GECKO_VERSION=28
@dynamis
dynamis / README.txt
Created July 29, 2014 04:00
一部の国内 SIM で APN 設定ができない問題を修正するパッチを適用するスクリプト
Firefox OS 1.3 などでは APN 設定ファイル (を読み込む処理) に問題があり、一部の国内 SIM で Setting アプリで APN の設定をしてデータ通信を有効にすることができません。このスクリプトとパッチファイルはその問題を解決するために端末中の Settings アプリを取り出し該当ファイルにパッチを当てて再度端末中に書き込むものです。
@dynamis
dynamis / fx0config.log
Created March 25, 2015 01:38
log to check Fx0 config
dynabook:dev dynamis$ adb devices -l
List of devices attached
LGOTMS19d9a863 device usb:1D110000 product:LGL25_jp_kdi model:LGL25 device:madai
dynabook:dev dynamis$ adb shell cat /system/b2g/defaults/pref/user.js
pref('browser.manifestURL', "app://system.gaiamobile.org/manifest.webapp");
pref('b2g.system_manifest_url', "app://system.gaiamobile.org/manifest.webapp");
pref('b2g.neterror.url', "app://system.gaiamobile.org/net_error.html");
pref('browser.homescreenURL', "app://system.gaiamobile.org/index.html");
pref('b2g.system_startup_url', "app://system.gaiamobile.org/index.html");
@dynamis
dynamis / logcat.txt
Created April 17, 2015 10:01
update error logcat
I/ThermalEngine( 236): Sensor:pa_therm0:39000 mC
I/WakeLock( 222): Request WakeLock : b2g
I/WakeLock( 222): Request WakeLock : b2g
I/Gecko ( 222): *** AUS:SVC Creating Downloader
E/GeckoConsole( 222): AUS:SVC Creating Downloader
I/Gecko ( 222): *** AUS:SVC UpdateService:_downloadUpdate
E/GeckoConsole( 222): AUS:SVC UpdateService:_downloadUpdate
I/Gecko ( 222): *** AUS:SVC readStatusFile - status: null, path: /data/local/updates/0/update.status
E/GeckoConsole( 222): AUS:SVC readStatusFile - status: null, path: /data/local/updates/0/update.status
I/Gecko ( 222): *** AUS:SVC Downloader:_selectPatch - found existing patch with state: null
@dynamis
dynamis / languages.json
Created September 18, 2015 23:51
Gaia の日本語ビルドを作る際に使用するファイル
{
"en-US" : "English (US)",
"ja" : "日本語"
}
@dynamis
dynamis / testcase643307
Created November 14, 2011 09:32
testcase for bug 643307
<!DOCTYPE html>
<html>
<head>
<title>testcase for bug 643307</title>
<style>
@font-face {
font-family: invalid;
src: url(invalidurl);
}
.invalidfont {
@dynamis
dynamis / custom-settings.json
Created October 1, 2015 02:10
Gaia のビルド時に読み込むカスタム設定ファイル
{
"app.reportCrashes": "always",
"app.update.interval": 86400,
"bluetooth.enabled": true,
"camera.sound.enabled": false,
"debug.console.enabled": true,
"debug.gaia.enabled": false,
"debugger.remote-mode": "adb-devtools",
"developer.menu.enabled": true,
"devtools.debugger.remote-enabled": true,
#!/bin/bash
if [ ! -f locales/languages.json ]; then
wget -O locales/languages.json http://r.dynamis.jp/languages.json
fi
if [ ! -d locales/en-US ]; then
hg clone http://hg.mozilla.org/gaia-l10n/en-US locales/en-US
fi
if [ ! -d locales/ja ]; then
hg clone http://hg.mozilla.org/gaia-l10n/ja locales/ja