Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
02-28-2014, 05:26 PM
|
#1
|
Member
Registered: Jun 2013
Posts: 104
Rep:
|
Android SDK set up Slackware 14.1
I write and created:
root@darkstar:~# cat /etc/udev/rules.d/51-android.rules
SUBSYSTEMS=="usb",ATTRS{idVendor}=="18d1",ATTRS{idProduct}=="4ee1",GROUP="android",MODE=0660
root@darkstar:~#
Because:
root@darkstar:~# lsusb | grep Google
Bus 002 Device 003: ID 18d1:4ee1 Google Inc. Nexus 4 / 10
root@darkstar:~#
The problem:
root@darkstar:/opt/android-sdk-linux/platform-tools# ./adb devices
List of devices attached
root@darkstar:/opt/android-sdk-linux/platform-tools#
Any idea for attach Android device ?
Thanks
|
|
|
03-01-2014, 08:44 AM
|
#2
|
Member
Registered: Feb 2008
Posts: 78
Rep:
|
did you enable usb debug on the phone?
|
|
|
03-01-2014, 10:08 AM
|
#3
|
Member
Registered: Jun 2002
Location: Coal Township PA
Distribution: Slackware64-15.0
Posts: 793
|
Although slightly off topic.
This worked in 14.0 to pass files/data to and from my wife's Arnova, several years old.
Code:
# Arnova 10G2
SUBSYSTEM=="usb", SYSFS{idVendor}=="xxxx", SYSFS{idProduct}=="xxxx", MODE="0666", OWNER="john"
of course replace the 'xxxx' with your device codes and I am user john
And I haven't been allowed to use her tablet lately
HTL
John
Last edited by AlleyTrotter; 03-03-2014 at 08:40 AM.
|
|
|
03-01-2014, 02:26 PM
|
#4
|
Member
Registered: Jan 2011
Location: Germany
Distribution: Slackware64 -current + Multilib
Posts: 411
Rep:
|
I run adb as root, otherwise it doesn't find my device. Never really bothered why.
|
|
|
03-01-2014, 02:57 PM
|
#5
|
Member
Registered: Jul 2003
Location: Montana
Posts: 303
Rep:
|
I've always used the following with my user a member of plugdev.
Code:
bash-4.2$ cat /etc/udev/rules.d/51-android.rules
SUBSYSTEM=="usb", ATTR{idVendor}=="22b8", MODE="0666", GROUP="plugdev"
bash-4.2$ lsusb | grep Moto
Bus 001 Device 014: ID 22b8:2e63 Motorola PCS
Have you tried restarting the adb daemon?
|
|
2 members found this post helpful.
|
03-02-2014, 07:22 AM
|
#6
|
Member
Registered: Oct 2010
Location: Brazil, SP - Cosmópolis
Distribution: Slackware
Posts: 171
Rep:
|
Here is my /etc/udev/rules.d/51-android.rules :
Code:
# adb protocol on passion (Nexus One)
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4e12", MODE="0600", OWNER="francis"
# fastboot protocol on passion (Nexus One)
SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0fff", MODE="0600", OWNER="francis"
# adb protocol on crespo/crespo4g (Nexus S)
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4e22", MODE="0600", OWNER="francis"
# fastboot protocol on crespo/crespo4g (Nexus S)
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4e20", MODE="0600", OWNER="francis"
# adb protocol on stingray/wingray (Xoom)
SUBSYSTEM=="usb", ATTR{idVendor}=="22b8", ATTR{idProduct}=="70a9", MODE="0600", OWNER="francis"
# fastboot protocol on stingray/wingray (Xoom)
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="708c", MODE="0600", OWNER="francis"
# adb protocol on maguro/toro (Galaxy Nexus)
SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", ATTR{idProduct}=="6860", MODE="0600", OWNER="francis"
# fastboot protocol on maguro/toro (Galaxy Nexus)
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4e30", MODE="0600", OWNER="francis"
# adb protocol on panda (PandaBoard)
SUBSYSTEM=="usb", ATTR{idVendor}=="0451", ATTR{idProduct}=="d101", MODE="0600", OWNER="francis"
# adb protocol on panda (PandaBoard ES)
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="d002", MODE="0600", OWNER="francis"
# fastboot protocol on panda (PandaBoard)
SUBSYSTEM=="usb", ATTR{idVendor}=="0451", ATTR{idProduct}=="d022", MODE="0600", OWNER="francis"
# usbboot protocol on panda (PandaBoard)
SUBSYSTEM=="usb", ATTR{idVendor}=="0451", ATTR{idProduct}=="d00f", MODE="0600", OWNER="francis"
# usbboot protocol on panda (PandaBoard ES)
SUBSYSTEM=="usb", ATTR{idVendor}=="0451", ATTR{idProduct}=="d010", MODE="0600", OWNER="francis"
# adb protocol on grouper/tilapia (Nexus 7)
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4e42", MODE="0600", OWNER="francis"
# fastboot protocol on grouper/tilapia (Nexus 7)
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4e40", MODE="0600", OWNER="francis"
# adb protocol on manta (Nexus 10)
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4ee2", MODE="0600", OWNER="francis"
# fastboot protocol on manta (Nexus 10)
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4ee0", MODE="0600", OWNER="francis"
With this i can use adb devices without root, "francis" is my ordinary user.
My nexus 4 is identified as:
Code:
root@R500VD-BS71:~# lsusb | grep Google
Bus 001 Device 006: ID 18d1:4ee2 Google Inc. Nexus 4 (debug)
I know it is the ID for Nexus 10, but adb works fine...
Last edited by frushiyama; 03-02-2014 at 07:27 AM.
|
|
1 members found this post helpful.
|
03-03-2014, 07:38 AM
|
#7
|
Member
Registered: Dec 2011
Location: Gaborone Botswana
Distribution: Linux-Mint 18.3 amd64 Cinnamon
Posts: 108
Rep:
|
Hi Xavi,
Am not on Slackware right now, if I remember properly the file for udev rules is not necessary (also the path should be different but don't remember the right one and in case needing it has to be executable), this is the process to connect Android device to your Slackware:
1 - Download and unzip the sdk file putting it in your "home" (you can rename the folder as ".Android" if you want)
2 - Create a file ".bashrc" and put it inside "home", the file has to be something like this one:
PATH=$PATH:/home/username/.Android/platform-tools (if the sdk folder has different name and is located on different path you change it).
At this point you should get your device listed on the left side opening Dolphin, can split the window in two panels and copy/paste files from device to computer and viceversa.
Of course the Debug mode in the device has to be enabled.
|
|
|
All times are GMT -5. The time now is 12:36 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|