After upgrading to kali 2018(kernel 4.14), Something went wrong. Whenever I connect my android device to any of the USB port, it logs out and system returns to logging on screen, shutting down all the processes. After logging in, it behaves like the computer has been shut down.All the work/processes are lost.
I tried setting MTP to "charge only", but the behaviour seems same. I tried replacing my android device with another. also tried different USB cable.