ADB error: insufficient permissions for device: verify udev rules When I run adb shell, I get the following error
$&gt; adb shell
* daemon not running; starting now at tcp:5037
* daemon started successfully
error: insufficient permissions for device: user in plugdev group; are your udev rules wrong?
See [http://developer.android.com/tools/device.html] for more information

The connection gets thus rejected without me getting any prompt on the phone's side. I have enabled the &quot;USB debugging&quot; option on the phone, which when connected correctly says &quot;USB debugging connected&quot;.
This can be resolved by enabling ADB transfer in your USB Preferences.

Plug the phone into the USB
Drag the phone's top menu (the drawer) down
Click the notification that says &quot;Android System: Charging this device via USB. Tap for more options.&quot;
Click &quot;File Transfer&quot; (newer devices) or &quot;MTP&quot; (older devices)

Note, if successful you may get a prompt asking you to accept the keys of the computer issuing the adb shell command.