Skip to content

Instantly share code, notes, and snippets.

View HassanMirza01's full-sized avatar
💭
Lost Mind...!!

Hassan Mirza HassanMirza01

💭
Lost Mind...!!
View GitHub Profile
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