frida-python icon indicating copy to clipboard operation
frida-python copied to clipboard

hotplugging usb device not recognized with enumerate_devices()

Open Nriver opened this issue 4 years ago • 0 comments

If a usb device is plugged in after import frida, the device won't show up in frida.enumerate_devices(). It's reproducible with the interactive shell.

A workaround is to reload frida every time before getting the devices which seem to be a dirty hack.

import importlib
importlib.reload(frida)
devices = frida.enumerate_devices()

Nriver avatar Nov 09 '21 02:11 Nriver