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: CONFIRMED
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 crocket
Modified: 2020-05-19 10:47 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 crocket 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 crocket 2017-09-30 12:55:04 UTC
Can this issue be solved by modifying gentoo wiki rather than gentoo packages?
Comment 2 crocket 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.