This question already has an answer here:
For some reason whenever I connect any android device using any USB cable to any of my ports on Kali Linux, the screen goes black for a second before going to the login screen. Then if I log in and the device is still connected it will just crash again. All running programs are stopped.
I have no idea whats causing this behavior, before I had no problems connecting my devices and this just started happening one day. Does anyone know what might cause this and what I can do about it?