Created
June 16, 2018 12:58
-
-
Save HassanMirza01/219409295d5a673a40a1c64e5a2f6ae7 to your computer and use it in GitHub Desktop.
tool
This file contains 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
if [ "`adb get-state 2>&1 | grep device`" == "" ]; then #get-state either give "unknown" or "device" in its output | |
echo -e " ${bblue}No Device Connected in adb Mode!" #and in 18.04, inplace of "unknown" it gives "Error: No Devices found" | |
echo -e " Connect it again or Enable USB Debugging...${nc}" | |
echo | |
echo -e " ${bblue}Press Enter to Continue${nc}" | |
read | |
start | |
fi |
This file contains 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
if [ "`adb get-state 2>&1 | grep device`" == "" ]; then #get-state either give "unknown" or "device" in its output | |
echo -e " ${bblue}No Device Connected in adb Mode!" #and in 18.04, inplace of "unknown" it gives "Error: No Devices found" | |
echo -e " Connect it again or Enable USB Debugging...${nc}" | |
echo | |
echo -e " ${bblue}Press Enter to Continue${nc}" | |
read | |
start | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment