This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Script to enable/disable OMTC | |
# Make disable-omtc a symlink to enable-omtc | |
#set -x | |
script_name=$(basename $0) | |
ENABLE_OMTC=/tmp/enable-omtc | |
DISABLE_OMTC=/tmp/disable-omtc | |
LOCAL_PREFS_JS=/tmp/prefs.js |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/system/bin/sh | |
# | |
# Constants from include/linux/input.h | |
EV_SYN=0 | |
EV_ABS=3 | |
SYN_REPORT=0 | |
ABS_MT_TOUCH_MAJOR=48 | |
ABS_MT_POSITION_X=53 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/system/bin/sh | |
# | |
# Constants from include/linux/input.h | |
EV_SYN=0 | |
EV_ABS=3 | |
SYN_REPORT=0 | |
SYN_MT_REPORT=2 | |
ABS_MT_TOUCH_MAJOR=48 # 0x30 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if [ ! -f busybox-armv6l ] | |
then | |
wget "http://busybox.net/downloads/binaries/1.19.0/busybox-armv6l" | |
fi | |
adb remount | |
adb push busybox-armv6l /system/bin/busybox | |
adb shell 'cd /system/bin; chmod 555 busybox; for x in `./busybox --list`; do ln -s ./busybox $x; done' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Disables the adb timeout | |
set -e | |
ADB=${ADB:-adb} | |
$ADB wait-for-device | |
B2G_PREF_DIR=/system/b2g/defaults/pref | |
TMP_DIR=/tmp/adb-timeout-prefs | |
rm -rf $TMP_DIR |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import json | |
import sys, string, os | |
import shutil | |
webapps_dir = sys.argv[1] | |
webapps_filename = os.path.join(webapps_dir, "webapps.json") | |
webapps = json.load(open(webapps_filename)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import include.device_utils as utils | |
try: | |
(master_pid, child_pids) = utils.get_remote_b2g_pids() | |
print "B2G is running" | |
except: | |
print "B2G is NOT running" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This file was automatically generated by make-pins.py | |
// | |
// --af boards/stm32f4xx-af.csv | |
// --board boards/PYBOARD4/pins.csv | |
// --prefix boards/stm32f4xx-prefix.c | |
// stm32fxx-prefix.c becomes the initial portion of the generated pins file. | |
#include <stdio.h> | |
#include <stdint.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import json | |
import subprocess | |
locales = json.load(open("/home/work/B2G-unagi/gaia/locales/languages_all.json")); | |
for key, val in locales.items(): | |
cmd = ["hg", "clone", "http://hg.mozilla.org/gaia-l10n/" + key, key] | |
print " ".join(cmd) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
B2G_DIR=${B2G_DIR:-$(cd $(dirname $0); pwd)} | |
echo "B2G_DIR = ${B2G_DIR}" | |
#GECKO_PATH=${B2G_DIR}/b2g-inbound | |
#GECKO_PATH=${B2G_DIR}/mozilla-inbound | |
GECKO_PATH=${B2G_DIR}/gecko | |
echo "GECKO_PATH = ${GECKO_PATH}" | |
#export MOZ_DMD=1 | |
#echo "MOZ_DMD = ${MOZ_DMD}" |
OlderNewer