LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-28-2014, 05:26 PM   #1
xavi_slacky
Member
 
Registered: Jun 2013
Posts: 104

Rep: Reputation: Disabled
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
 
Old 03-01-2014, 08:44 AM   #2
nivieru
Member
 
Registered: Feb 2008
Posts: 78

Rep: Reputation: 14
did you enable usb debug on the phone?
 
Old 03-01-2014, 10:08 AM   #3
AlleyTrotter
Member
 
Registered: Jun 2002
Location: Coal Township PA
Distribution: Slackware64-15.0
Posts: 793

Rep: Reputation: 485Reputation: 485Reputation: 485Reputation: 485Reputation: 485
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.
 
Old 03-01-2014, 02:26 PM   #4
schmatzler
Member
 
Registered: Jan 2011
Location: Germany
Distribution: Slackware64 -current + Multilib
Posts: 411

Rep: Reputation: 181Reputation: 181
I run adb as root, otherwise it doesn't find my device. Never really bothered why.
 
Old 03-01-2014, 02:57 PM   #5
BrianW
Member
 
Registered: Jul 2003
Location: Montana
Posts: 303

Rep: Reputation: Disabled
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.
Old 03-02-2014, 07:22 AM   #6
frushiyama
Member
 
Registered: Oct 2010
Location: Brazil, SP - Cosmópolis
Distribution: Slackware
Posts: 171

Rep: Reputation: 40
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.
Old 03-03-2014, 07:38 AM   #7
Bourbon
Member
 
Registered: Dec 2011
Location: Gaborone Botswana
Distribution: Linux-Mint 18.3 amd64 Cinnamon
Posts: 108

Rep: Reputation: Disabled
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: The Android SDK: Top tools for effective Android app development LXer Syndicated Linux News 0 10-30-2012 01:01 AM
LXer: The Android SDK: Top tools for effective Android app development LXer Syndicated Linux News 0 10-29-2012 05:10 PM
LXer: Android App Build Environment With Eclipse, Android SDK, PhoneGap (Fedora 14) LXer Syndicated Linux News 2 02-01-2011 12:11 PM
LXer: Setting Up An Android App Build Environment With Eclipse, Android SDK, PhoneGap (Ubuntu 10.10) LXer Syndicated Linux News 0 01-27-2011 12:30 PM
LXer: Get Started with Android application development using Linux and Android SDK LXer Syndicated Linux News 0 01-06-2011 02:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration