Can't use android debug bridge in Lxde?

Please post all general support questions for LXDE here.
Locked
wolfishor
Posts: 1
Joined: Mon Jan 18, 2010 3:43 pm

Can't use android debug bridge in Lxde?

Post by wolfishor »

I like lxde .It's very fast.I want to use adb to manage my mobile phone.
but I can't use adb under lxde.
like this :
[wolfishor@Arch ~]$ ls
Desktop Downloads tools yaourt
[wolfishor@Arch ~]$ cd tools
[wolfishor@Arch tools]$ ls
adb apkbuilder draw9patch hprof-conv NOTICE.txt
add-accounts.py ddms emulator lib sqlite3
android dmtracedump hierarchyviewer mksdcard traceview
[wolfishor@Arch tools]$ sudo adb devices
password:
sudo: adb: command not found
[wolfishor@Arch tools]$ lsusb
Bus 001 Device 007: ID 12d1:1501 Huawei Technologies Co., Ltd.
Bus 001 Device 004: ID 04f2:b175 Chicony Electronics Co., Ltd
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 003: ID 1c4f:0003 SiGma Micro
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
[wolfishor@Arch tools]$

Why?Anyone can help me ?
Under xfce4&gnome&kde,adb works well, but under lxde,it can't work.

Thx!
n1ck
Posts: 2
Joined: Mon Jan 18, 2010 10:36 pm

Re: Can't use android debug bridge in Lxde?

Post by n1ck »

mines working fine:

have you installed jre-6? and eclipse?
grogers3.14
Posts: 8
Joined: Fri Jan 29, 2010 6:27 pm

Re: Can't use android debug bridge in Lxde?

Post by grogers3.14 »

wolfishor wrote:I like lxde .It's very fast.I want to use adb to manage my mobile phone.
but I can't use adb under lxde.
...
[wolfishor@Arch tools]$ ls
adb apkbuilder draw9patch hprof-conv NOTICE.txt
add-accounts.py ddms emulator lib sqlite3
android dmtracedump hierarchyviewer mksdcard traceview
[wolfishor@Arch tools]$ sudo adb devices
password:
<b>sudo: adb: command not found</b>
The error in bold means adb is not on your 'PATH'. Use ./adb instead.

Also, I am assuming from the 'yaourt' that you use Archlinux. This is how I got adb working for me:

1. Install android-sdk in yaourt (This is optional since you have already downloaded it, but I prefer yaourt/pacman handling all my installed applications)

Code: Select all

yaourt -S android-sdk
2. Add the tools directory to your path (/opt/android-sdk/tools for the yaourt install). Edit ~/.bashrc and add the following line:

Code: Select all

export PATH=${PATH}:/opt/android-sdk/tools
3. Create a new file (as root) /etc/udev/rules.d/51-android.rules and insert

Code: Select all

SUBSYSTEM=="usb", SYSFS{idVendor}=="VENDOR_ID", MODE="0666"
where VENDOR_ID if the first part of the id shown with the command 'lsusb' (ie 12d1 for the Huawei Technologies Co., Ltd. if that is your phone)

4. Edit ~/.android/adb_usb.ini and add

Code: Select all

0xVENDOR_ID
where VENDOR_ID is the same as before

5. Reboot, put your phone in adb mode and hope it works!

P.S the adb has absolutely nothing to do with lxde :)
Locked