Method: ADB#wait_for_device

Defined in:
lib/ADB.rb

#wait_for_device(target = {}, timeout = 30) ⇒ Object

wait for a device to complete startup

:emulator, and :serial. seconds.

Parameters:

  • which (Hash)

    device to wait for. Valid keys are :device,

  • timeout (defaults to: 30)

    value for the command to complete. Defaults to 30



83
84
85
# File 'lib/ADB.rb', line 83

def wait_for_device(target={}, timeout=30)
  execute_adb_with(timeout, "#{which_one(target)} wait-for-device")
end