#!/bin/bash

#adb kill-server
export ADB_VENDOR_KEYS="./adbkey"
echo ADB=$ADB_VENDOR_KEYS

ip=$1
adb connect $ip:5555 && adb root && adb connect $ip:5555 
adb remount 
mac=`adb shell getprop ro.boot.mac`
echo "DEVICEID: $(echo "$mac" | tr -d ':' | tr '[:lower:]' '[:upper:]')"
adb disconnect
