Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 632508

Summary: dev-util/android-tools - Executing adb as non-root user fails without 80-android.rules from android-sdk-update-manager.
Product: Gentoo Linux Reporter: anonymous <fakih18716>
Component: Current packagesAssignee: Zac Medico <zmedico>
Status: RESOLVED FIXED    
Severity: normal CC: flow, kripton, marcec, powerman-asdf, rich0
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/27588
Whiteboard:
Package list:
Runtime testing required: ---

Description anonymous 2017-09-30 12:52:39 UTC
If I execute `adb devices` from android-tools as root, it detects devices.
If I execute it as a non-root user, it fails because only root can access android devices.

80-android.rules from android-sdk-update-manager solves that problem by assigning android group to android device files.

A non-root user simply has to add itself to android group to access android devices.

Should android-tools add 80-android.rules, too?
Should android-tools be allowed to co-exist with android-sdk-update-manager?
Comment 1 anonymous 2017-09-30 12:55:04 UTC
Can this issue be solved by modifying gentoo wiki rather than gentoo packages?
Comment 2 anonymous 2017-09-30 21:16:47 UTC
What about putting 80-android.rules in a separate package and making android-tools and android-sdk-update-manager depend on it?

I got the idea from https://github.com/M0Rf30/android-udev-rules
Comment 3 Zac Medico gentoo-dev 2017-10-28 20:48:18 UTC
Having a common android-udev-rules package sounds good to me.
Comment 4 anonymous 2022-07-28 00:53:18 UTC
I don't use adb anymore, but I may leave this open for other people.
Comment 5 Zac Medico gentoo-dev 2022-10-09 19:34:48 UTC
The android-tools package now depends on android-udev-rules:

https://github.com/gentoo/gentoo/pull/27588