Skip to content

Instantly share code, notes, and snippets.

@yousong
Last active September 9, 2016 11:26
Show Gist options
  • Save yousong/77304f2ac461ae874b275157ff4c49c7 to your computer and use it in GitHub Desktop.
Save yousong/77304f2ac461ae874b275157ff4c49c7 to your computer and use it in GitHub Desktop.
Tools for android devs
#!/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
}
"$@"
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