Last active
September 9, 2016 11:26
-
-
Save yousong/77304f2ac461ae874b275157ff4c49c7 to your computer and use it in GitHub Desktop.
Tools for android devs
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 | |
BASEURL="https://github.com/corbindavenport/nexus-tools/raw/master/bin" | |
PREFIX="$HOME/.usr" | |
BINDIR="$PREFIX/bin" | |
install_bin() { | |
local f | |
mkdir -p "$PREFIX/bin" | |
for f in adb fastboot; do | |
wget -O "$f" -c "$BASEURL/mac-$f" | |
install -m 0755 "$f" "$BINDIR/$f" | |
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
PREFIX="$HOME/.usr" | |
BINDIR="$PREFIX/bin" | |
# 1. Install jdk7 | |
# 2. Install ia32-libs | |
# 3. Install apktool | |
wget -c https://raw.githubusercontent.com/iBotPeaches/Apktool/master/scripts/linux/apktool | |
wget -c -O apktool.jar https://github.com/iBotPeaches/Apktool/releases/download/2.1.0/apktool_2.1.0.jar | |
for f in apktool apktool.jar; do | |
install -m 0755 "$f" "$BINDIR/$f" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment