Skip to content

Instantly share code, notes, and snippets.

View bycosta's full-sized avatar

Caio Costa bycosta

  • Mérida, Yucatán, México
View GitHub Profile
#!/bin/bash
ADBShell () { adb ${2+-s} $2 shell "$1" | tr -d '\r'
}
GetAndroidVersion () {
GOOGLE_SOURCE="https://android.googlesource.com"
REPO="platform/frameworks/base"
ALL_TAGS=$(wget -qO - "$GOOGLE_SOURCE/$REPO/+refs/tags/?format=text" | \
tr -d '^{}' | cut -d/ -f3 | sort -u | grep -vE -- '-(cts|sdk)-' | grep -v "_r0")
### Keybase proof
I hereby claim:
* I am bycosta on github.
* I am costa (https://keybase.io/costa) on keybase.
* I have a public key whose fingerprint is 8546 9BA5 4776 0892 A615 EEB4 A5E7 5544 0DC4 B870
To claim this, I am signing this object: