Skip to content

Commit

Permalink
Add better waiting message
Browse files Browse the repository at this point in the history
Signed-off-by: Tyler Nijmeh <tylernij@gmail.com>
  • Loading branch information
tytydraco committed Oct 16, 2022
1 parent d3bf223 commit 7025455
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/src/main/java/com/draco/ladb/utils/ADB.kt
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ class ADB(private val context: Context) {
adb(false, listOf("start-server")).waitFor()
debug("Waiting for device to connect...")
debug("This may take up to 2 minutes")
debug("If broken, try toggling Wi-Fi or reboot")
val waitProcess = adb(false, listOf("wait-for-device")).waitFor(2, TimeUnit.MINUTES)
if (!waitProcess) {
debug("Could not detect any devices")
Expand Down

0 comments on commit 7025455

Please sign in to comment.