Skip to content

Instantly share code, notes, and snippets.

@shakalaca
Created September 26, 2013 16:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shakalaca/6716635 to your computer and use it in GitHub Desktop.
Save shakalaca/6716635 to your computer and use it in GitHub Desktop.
Run root shell in Genymotion VM
#!/bin/bash
adb wait-for-device > /dev/null 2>& 1
read IP PORT GARBAGE <<< $(adb devices | awk -F"[:\t]" ' NR > 1 && NF { print $1; print $2; print $3 } ')
adb -s $IP:$PORT root
adb connect $IP:$PORT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment