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