Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 632508 - dev-util/android-tools - Executing adb as non-root user fails without 80-android.rules from android-sdk-update-manager.
Summary: dev-util/android-tools - Executing adb as non-root user fails without 80-andr...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Zac Medico
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-09-30 12:52 UTC by anonymous
Modified: 2022-10-09 19:34 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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