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
#!/usr/bin/python | |
from __future__ import print_function | |
import os | |
import sys | |
import errno | |
import socket | |
import struct | |
import time | |
class ADBC(object): |
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
#!/usr/bin/python | |
import subprocess | |
import os | |
def adbshell(command, serial=None, adbpath='adb'): | |
args = [adbpath] | |
if serial is not None: | |
args.append('-s') | |
args.append(serial) |
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 | |
[ -f /etc/os-release ] && . /etc/os-release | |
[ "$ID" == "debian" ] || [ "$ID" == "ubuntu" ] || exit 1 | |
[ "$HOSTTYPE" == "x86_64" ] && dpkg --add-architecture i386 2>/dev/null | |
apt-get -qqy update | |
apt-get -qqy install wget xml2 unzip | |
[ "$HOSTTYPE" == "x86_64" ] && apt-get -qqy install libncurses5:i386 libstdc++6:i386 zlib1g:i386 | |
DESTDIR=${ANDROID_SDK_HOME:-$HOME/android} |
NewerOlder