shakalaca
9/26/2013 - 4:29 PM

Run root shell in Genymotion VM

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