0

Need to get list of HID Devices (External devices like USB pen drive / Hard disks) with info in Flutter window desktop app.

Already tried below plugins but still not getting list of connected external devices.

https://pub.dev/packages/hid

https://pub.dev/packages/quick_usb

https://pub.dev/packages/libusb

https://pub.dev/packages/device_manager

Harsh Bhavsar
  • 1,561
  • 4
  • 21
  • 39

1 Answers1

0

You can use the manual way. Just run a terminal command to get all of it.

import 'dart:io';

somefunction() async {
  await Process.run("ioreg -p IOUSB"}).then((result) {
    print(result);
  });
}
CidQu
  • 412
  • 6
  • 13
  • Can we filter list of connected devices with - Only devices which has volume space? Getting list of attached devices from below command. ioreg -p IOUSB -w0 | sed 's/[^o]*o //; s/@.*$//' | grep -v '^Root.*' – Harsh Bhavsar Jul 28 '22 at 06:15