Package Details: android-udev-git 20240829.r0.g5868217-1

Git Clone URL: https://aur.archlinux.org/android-udev-git.git (read-only, click to copy)
Package Base: android-udev-git
Description: Udev rules to connect Android devices to your linux box
Upstream URL: https://github.com/M0Rf30/android-udev-rules
Licenses: GPL3
Conflicts: android-udev
Provides: android-udev
Submitter: robertfoster
Maintainer: robertfoster
Last Packager: robertfoster
Votes: 606
Popularity: 0.000010
First Submitted: 2014-04-26 15:11 (UTC)
Last Updated: 2024-08-29 13:56 (UTC)

Required by (21)

Sources (1)

Latest Comments

« First ‹ Previous 1 .. 7 8 9 10 11 12

vnoel commented on 2010-12-08 11:38 (UTC)

But what do you mean? Asking people doing it by themselves or creating the group for them in the install file? I would be in favor of the second case, so it is not important if it is complicated or not since it is automatically done and check for cases where the group has already been added. If it is for the first case, yes, I agree with you, groupadd is simple enough by itself. By the way, virtualbox seems to do the same as rtkit: http://repos.archlinux.org/wsvn/community/virtualbox-ose/trunk/virtualbox.install But they do not use -r for groupadd in order for it to not be a system group. So, I propose the following install file: post_install() { getent group adbusers >> /dev/null || /usr/sbin/groupadd adbusers || return 1 /bin/cat << EOF ===> In order to use adb, you have to be in the 'adbusers' group ===> For that, use: gpasswd -a USERNAME adbusers EOF } post_upgrade() { post_install } post_remove() { getent group adbusers &>/dev/null && /usr/sbin/groupdel adbusers }

<deleted-account> commented on 2010-12-08 11:11 (UTC)

it seems more complicated... i prefer groupadd -f adbusers because it's the method used for virtualbox and i'm sure it works. by the way if this method doesn't work we can change it in future i'll update package soon

vnoel commented on 2010-12-08 10:31 (UTC)

Yes, seems nice to me :) We can copy what they do in official packages, for example rtkit add a new group in its install file: http://repos.archlinux.org/wsvn/packages/rtkit/trunk/rtkit.install Then tell people to add their user to the group.

<deleted-account> commented on 2010-12-08 09:35 (UTC)

i like adbusers :) maybe we can add these lines in the .install file: # Add adbusers group groupadd -f adbusers # Add your user to the adbusers group: # gpasswd -a USERNAME adbusers

vnoel commented on 2010-12-07 12:34 (UTC)

Hi, As discussed on android-sdk, we could continue here to see what could be used as a group for enabling access to the devices. For example at work, our machines can be accessed by anyone using ssh and with the current rules in this package anyone could access my phone connected to my machine! The same way we have group for accessing disks, cdrom, camera or printer, we could have one for accessing adb devices :) I propose adbusers but maybe this is not the best.