adb_devices
Community Action Reference: Inspected directly from Fastlane core ruby gem definitions.
Supported Platforms: android
Get an array of Connected android device serials
Details
Fetches device list via adb, e.g. run an adb command on all connected devices.
Parameters & Options
Total options available: 1
| Key | Type | Env Variable | Default | Required | Description |
|---|---|---|---|---|---|
adb_path |
String |
FL_ADB_PATH |
adb |
No | The path to your adb binary (can be left blank if the ANDROID_SDK_ROOT environment variable is set) |
Examples
adb_devices.each do |device| model = adb(command: "shell getprop ro.product.model", serial: device.serial).strip
puts "Model #{model} is connected"endSource & Upstream
- Gem Action:
adb_devices.rb - Upstream Source: Inspect Ruby Implementation on GitHub
- Authors:
hjanuschka