Skip to content

Instantly share code, notes, and snippets.

@1242035
Last active December 18, 2023 07:29
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)
@dreua
Copy link

dreua commented Apr 6, 2021

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 😉 )

@AlejandroAkbal
Copy link

Wonderful, solved my issue, thanks @dreua

@Nicolab
Copy link

Nicolab commented Apr 6, 2022

Tips: In Oculus I had this error, the solution is just to unplug/plug the device (Oculus). Confirm the autorisation on my device and it worked.

@martinericksonn
Copy link

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 )

Thanks this worked on my PixelExperience rom

@ImDedInside-git
Copy link

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 )

ah this worked for me thank you very much

@dreua
Copy link

dreua commented Apr 9, 2022

Heh I wouldn't have thought that my comment would turn out that helpful after going unnoticed for about a year. Anyway, I'm always happy to help, thanks for your kind responses ❤️

@Skaldebane
Copy link

@martinericksonn Same here! Works well on PixelExperience ROM! Thanks @dreua!

@ArnyminerZ
Copy link

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.

That really helped, thank you!

@firefoxlover
Copy link

actually the issue persists. ADB has no errors anymore, fastboot still doesnt see a device...

@Skaldebane
Copy link

@firefoxlover fastboot won't work when your device is booted normally to the system. You need to boot to the recovery of your phone (google it up for your model), connect it to your computer, and only then fastboot would work.

You most likely won't need this workaround in that case.

NOTE: AFAIK fastboot isn't available in all devices, e.g. some Samsung devices only support Samsung's own "Odin" tool.

@firefoxlover
Copy link

@Skaldebane Yes I know, thats what I did. Its not Samsung, and it worked in the past, so I think it has to do something with udev rules.

I can do adb reboot bootloader thats the weird thing. But while in there no USB device is detected.

@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.

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