frida-ls-devices cannot detect multiple devices more than 4
halo2me opened this issue · comments
I use Ubuntu Desktop 16.04, frida-tools == 1.2.2, frida == 12.2.9
When I plugin 2 Nexus 5P, 1 Nexus5, 3 Nexus 6, total 6 devices, the frida-ls-devices only show 4 devices: 1 nexus 5P, 3 Nexus 6
Does frida support limited number of devices?
No, this is because Frida's Droidy backend – which communicates with adb – considers itself started if it takes >= 500 ms to enumerate its devices. The trade-off is that we don't want to have an unbounded delay at startup preventing Frida's APIs from being used, vs. having the initial enumerate_devices()
be as complete as possible. If you were to use the Frida API yourself though and listen for the added
/ removed
/ changed
signals on DeviceManager
, you will see all devices appear... perhaps we can make frida-ls-devices
wait a bit before it exits. PRs welcome!