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

FlagDescription
-O FILE, --options-file FILEText file containing additional command line options
--versionPrint 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):

ColumnDescription
IdDevice identifier — use this with -D in other tools
TypeDevice type: local, usb, or remote
NameHuman-readable device name
OSOperating 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

TypeDescription
localThe machine running Frida tools — always ID local
usbDevice connected over USB with frida-server running
remoteDevice accessible over TCP; default ID is tcp for localhost

Notes