added logic to test if phone is connected via adb