LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Android SDK set up Slackware 14.1 (https://www.linuxquestions.org/questions/slackware-14/android-sdk-set-up-slackware-14-1-a-4175496593/)

xavi_slacky 02-28-2014 04:26 PM

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

nivieru 03-01-2014 07:44 AM

did you enable usb debug on the phone?

AlleyTrotter 03-01-2014 09:08 AM

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

schmatzler 03-01-2014 01:26 PM

I run adb as root, otherwise it doesn't find my device. Never really bothered why.

BrianW 03-01-2014 01:57 PM

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?

frushiyama 03-02-2014 06:22 AM

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...

Bourbon 03-03-2014 06:38 AM

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 08:40 PM.