This file contains 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 | |
# CONSTANTS | |
# The network device to slow down - should be the wireless adapter. | |
NETWORK_DEVICE="wlan0" | |
# Network Delays. These values were pulled from http://developer.android.com/tools/devices/emulator.html#netdelay | |
# GPRS MIN = 150, MAX = 550 | |
# EDGE MIN = 80, MAX = 400 | |
# 3G MIN = 35, MAX = 200 |
This file contains 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 | |
# This is a wrapper for adb. If there are multiple devices / emulators, this script will prompt for which device to use | |
# Then it'll pass whatever commands to that specific device or emulator. | |
# Run adb devices once, in event adb hasn't been started yet | |
BLAH=$(adb devices) | |
# Grab the IDs of all the connected devices / emulators | |
IDS=($(adb devices | sed '1,1d' | sed '$d' | cut -f 1 | sort)) |
This file contains 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 | |
# logcat.sh - Script to display logcat for a single app | |
# Enter the app's package name in the following variable | |
APP_ID="com.brightcove.app1" | |
APP_ID2="com.brightcove.app2" | |
# The regular expression to be used when filtering out lines | |
FILTER_SUPPRESS_REGEX="onMeasure|setMeasuredDimension" |
This file contains 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 | |
# Variables used throughout script | |
APP_NAME[0]="com.brightcove.app1" | |
APP_NAME[1]="com.brightcove.app2" | |
NUMAPPS=${#APP_NAME[@]} | |
# Run adb devices once, in event adb hasn't been started yet | |
BLAH=$(adb devices) |