Skip to content

Instantly share code, notes, and snippets.

@1242035
Last active April 30, 2024 11:21
Show Gist options
  • Star 16 You must be signed in to star a gist
  • Fork 5 You must be signed in to fork a gist
  • Save 1242035/4f73c093fd786a41d249397c2eb9e47c to your computer and use it in GitHub Desktop.
Save 1242035/4f73c093fd786a41d249397c2eb9e47c to your computer and use it in GitHub Desktop.
Error:
$ adb devices
List of devices attached
52003c2b58b445db no permissions (user in plugdev group; are your udev rules wrong?); see [http://developer.android.com/tools/device.html]
Fix:
1> sudo usermod -aG plugdev $LOGNAME (https://developer.android.com/studio/run/device)
2> lsusb
3> sudo vi /etc/udev/rules.d/51-android.rules
4> SUBSYSTEM=="usb", ATTR{idVendor}=="22b8", ATTR{idProduct}=="2e81", MODE="0666", GROUP="plugdev" (idVendor, idProduct found at lsusb command)
5> sudo udevadm control --reload-rules
6> sudo adb kill-server
7> sudo adb start-server
( link: https://stackoverflow.com/questions/53887322/adb-devices-no-permissions-user-in-plugdev-group-are-your-udev-rules-wrong)
@dedosmedia
Copy link

Thanks so much for sharing it

@Skaldebane
Copy link

@firefoxlover That's weird. Depending on your OS you might need some extra drivers? You may find some solution online for your device model.

@sztan
Copy link

sztan commented Apr 19, 2023

I always have this problem when my Pixel is in "Charging Only"/"No data transfer" mode. Setting it to "File transfer" (others may work as well) is the fix in this case. (Just leaving this info here for the next time I end up here from Google wink )

@dreua That really helped too, thank you!

@userariii
Copy link

Thanks bro it works!!

@Baturax
Copy link

Baturax commented Sep 17, 2023

      1. steps worked for me thanks.

@akuznetss
Copy link

First step helped 🤝

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment