Skip to content

Instantly share code, notes, and snippets.

Avatar

Caio Costa bycosta

View GitHub Profile
View get_android_service_call_numbers.sh
#!/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")
View gist:d70e9336a0fb9ed36349
### 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: