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: crocket <crockabiscuit>
Component: Current packagesAssignee: Zac Medico <zmedico>
Status: CONFIRMED ---    
Severity: normal CC: flo, kripton, marcec, powerman-asdf, rich0
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

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.