Skip to content

Commit

Permalink
stop adb server before checking the connection
Browse files Browse the repository at this point in the history
  • Loading branch information
mrrfv committed May 10, 2023
1 parent 8b59895 commit 8a51772
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions functions/helper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ function cecho() {
}

function check_adb_connection() {
adb kill-server &> /dev/null || true
cecho "Please enable developer options on your device, connect it to your computer and set it to file transfer mode. Then, press Enter to continue."
wait_for_enter
adb devices > /dev/null
Expand Down

0 comments on commit 8a51772

Please sign in to comment.