This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "This script works with ONLY one Android device connected to system !!!" | |
IP_PORT=$(adb devices | grep -E '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' | awk '{print $1}') | |
if [ -z "$IP_PORT" ]; then | |
echo "NO Device connected via wifi." | |
else | |
adb -s $IP_PORT usb | |
echo "ENJOY usb debug :)" | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "This script works with ONLY one Android device connected to system !!!" | |
echo "Killing adb" | |
adb kill-server | |
sleep 2 | |
PORT_NO=6969 | |
CONNETED_DEVICES=$(adb devices | wc -l) | |
if [ "$CONNETED_DEVICES" -le 2 ]; then | |
echo "NO Android device connected to your machine via USB." | |
else |