adb_devices

Get an array of Connected android device serials

Fetches device list via adb, e.g. run an adb command on all connected devices.

adb_devices
Supported platforms android
Author @hjanuschka
Returns Returns an array of all currently connected android devices

1 Example

adb_devices.each do |device|
  model = adb(command: "shell getprop ro.product.model",
    serial: device.serial).strip

  puts "Model #{model} is connected"
end

Parameters

Key Description
adb_path The path to your adb binary


To show the documentation in your terminal, run

fastlane action adb_devices

View source code


Back to actions