The commands flutter devices
and adb devices
are giving me the same error:
adb devices List of devices attached FA69H0308097 no permissions (user in plugdev group; are your udev rules wrong?); see [http://developer.android.com/tools/device.html]
flutter doctor
detects my old Nexus 5, but, with my Pixel phone, I get the permission error. Pixel phone is in debug mode. The output from flutter doctor
on Ubuntu 7.10 is
flutter doctor Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel beta, v0.1.5, on Linux, locale en_AU.UTF-8) [✓] Android toolchain - develop for Android devices (Android SDK 27.0.3) [✓] Android Studio (version 3.0) [✓] VS Code (version 1.21.0) Error retrieving device properties for ro.product.cpu.abi: 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 [✓] Connected devices (1 available)
How can I enable my computer to access my Pixel phone?
A udev rule must contain one attribute from one single parent device. Parent attributes are things that describe a device from the most basic level, such as it's something that has been plugged into a physical port or it is something with a size or this is a removable device.
With my Pixel phone plug into the computer, in the notification shade, I changed it from USB "Charge this phone" to "PTP" (Picture Transfer Protocol).
I then ran flutter doctor
and my Pixel asked me to "Allow USB debugging" for my computer, I ticked the box to "Always allow from this computer".
I found the solution via https://github.com/flutter/flutter/issues/10330, which pointed to another Stack Overflow post.
change the usb connection options to PTP. That worked for me.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With