Androxyde / Flashtool

Xperia device flashing
GNU General Public License v3.0
478 stars 245 forks source link

Does not discover the device when running in container #213

Open roman-rybalko opened 7 months ago

roman-rybalko commented 7 months ago

I'm running Flashtool 0.9.36.0 in a LXC privileged container. I've noticed that the device is not discovered when re-connected. When running Flashtool on a bare metal host the device is re-discovered as expected.

Debugging the issue I've found that libusb_get_device_list() does not return the recently connected devices. There is an issue on that. The suggested solution is rebuild libusb without udev support. I've rebuilt libusb without udev and that helped - Flashtool now discovers reconnecting device inside lxc container.

Is udev support is mandatory for libusb built for Flashtool? I don't see any difference without udev, everything works as expected.

NB: ./configure --enable-udev=no