frida-ls-devices
frida-ls-devices
Command-line tool for enumerating all devices that Frida can connect to. Use the Id column values with the -D flag in other Frida tools (frida, frida-ps, frida-kill, frida-trace, frida-discover).
Prerequisites: frida-tools Python package (pip install frida-tools). USB devices require frida-server running on the target, or frida-gadget embedded in the app.
Synopsis
frida-ls-devices [options]
Options
| Flag | Description |
|---|---|
-O FILE, --options-file FILE | Text file containing additional command line options |
--version | Print Frida version and exit |
No filter or format flags — the tool always lists all accessible devices.
Usage Example
1$ frida-ls-devices
Output Format
Tabular output with four columns, sorted by device type priority (local first, then USB, then remote):
| Column | Description |
|---|---|
Id | Device identifier — use this with -D in other tools |
Type | Device type: local, usb, or remote |
Name | Human-readable device name |
OS | Operating system name and version (fetched asynchronously) |
Column widths are padded and separated by spaces; header/data rows separated by dashes.
Example Output
Id Type Name OS
---------------------------------------- ------ ---------------- ----------------------
local local Local System macOS 14.5
0216027d1d6d3a03 usb Samsung SM-G920F Android 12
1d07b5f6a7a72552aca8ab0e6b706f3f3958f63e usb iPhone 13 iOS 16.4
tcp remote Local TCP
Device Types
| Type | Description |
|---|---|
local | The machine running Frida tools — always ID local |
usb | Device connected over USB with frida-server running |
remote | Device accessible over TCP; default ID is tcp for localhost |
Notes
- The
Idfor the local device is always the stringlocal. - The default remote TCP device has ID
tcp; custom remote hosts added viafrida-servershow their configured IDs. - OS version is fetched asynchronously — it may appear blank if the device is slow to respond.
- Sorting order:
local(priority 3) >usb(priority 2) >remote(priority 1), then alphabetically by name within each type. - On Android, the USB ID matches the
adb devicesserial number.