LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 07-06-2014, 06:10 PM   #1
slacker_
Member
 
Registered: Aug 2013
Distribution: Arch, Debian, Slackware
Posts: 333

Rep: Reputation: 3
Trying to use adb on wheezy, anything I find says I need packages from sid?


So I've been trying to not mix sources on my stable partition, but it seems to install android tools (android debug bridge in this case) I need to install android-tools-adb from sid. I have been trying to find ways to do this in wheezy alone but there doesn't seem to be any way around the sid package. Can anyone offer any insight/help/etc?

Last edited by slacker_; 07-06-2014 at 06:18 PM.
 
Old 07-06-2014, 06:29 PM   #2
jens
Senior Member
 
Registered: May 2004
Location: Belgium
Distribution: Debian, Slackware, Fedora
Posts: 1,463

Rep: Reputation: 299Reputation: 299Reputation: 299
"wheezy-backports" has the same version:
https://packages.debian.org/search?k...mozilla-search

Add the following line in /etc/apt/sources.list:
Code:
deb http://http.debian.net/debian wheezy-backports main
... run apt-get update and install it like this:
Code:
apt-get -t wheezy-backports install android-tools-adb
http://backports.debian.org/

Last edited by jens; 07-06-2014 at 07:12 PM. Reason: added instructions
 
Old 07-06-2014, 07:29 PM   #3
slacker_
Member
 
Registered: Aug 2013
Distribution: Arch, Debian, Slackware
Posts: 333

Original Poster
Rep: Reputation: 3
I had no idea... thanks, jens! I had backports installed for a separate reason, and didn't even realize android tools were backported.
 
Old 07-06-2014, 07:37 PM   #4
slacker_
Member
 
Registered: Aug 2013
Distribution: Arch, Debian, Slackware
Posts: 333

Original Poster
Rep: Reputation: 3
Hopefully I can just get this answered here real quick, I got a bit ahead of myself with somethings. I did the following in a root shell:

Code:
apt-get build-dep android-tools
apt-get source --build android-tools
dpkg -i android-tools-*.deb
then removed the .deb files and the rest after it was intalled. Now inorder to connect to a device, use adb shell, basically any of the basic functioanlity of the adb tools I have to be root. Is that always the case or did I do something wrong?
 
Old 07-06-2014, 08:06 PM   #5
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Maybe you can chmod the program.
 
Old 07-06-2014, 09:35 PM   #6
slacker_
Member
 
Registered: Aug 2013
Distribution: Arch, Debian, Slackware
Posts: 333

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by EDDY1 View Post
Maybe you can chmod the program.
adb is located in /usr/bin and /usr/bin/X11 so, in theory, yes. But I don't know if I should. I mean, everything there is owned by and in the group root. So I'm just not sure if I'm supposed to use "sudo adb [commands]" anytime I need to do things with my device, or if I did something wrong when installing it or what...

Last edited by slacker_; 07-06-2014 at 09:38 PM.
 
Old 07-07-2014, 06:23 AM   #7
jens
Senior Member
 
Registered: May 2004
Location: Belgium
Distribution: Debian, Slackware, Fedora
Posts: 1,463

Rep: Reputation: 299Reputation: 299Reputation: 299
Quote:
Originally Posted by slacker_ View Post
adb is located in /usr/bin and /usr/bin/X11 so, in theory, yes. But I don't know if I should. I mean, everything there is owned by and in the group root. So I'm just not sure if I'm supposed to use "sudo adb [commands]" anytime I need to do things with my device, or if I did something wrong when installing it or what...
Quote:
apt-get source --build android-tools
You're building your package as root and without "debian/rules".

Use dpkg-buildpackage -us -uc (uses "fakeroot debian/rules binary" instead of "dpkg -b") as your normal user.

see: http://debian-handbook.info/browse/s...packaging.html

... or just install the backport

Quote:
So I'm just not sure if I'm supposed to use "sudo adb [commands]" anytime I need to do things with my device
Can you mount your device's filesystem (r/w) with your normal user?

Last edited by jens; 07-07-2014 at 08:33 AM.
 
  


Reply



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
[SOLVED] Now I've done it - Debian dual boot (Sid, Wheezy) grub overwritten, lost Wheezy? ShaneRoach Debian 23 02-02-2014 02:28 PM
Problem with wheezy/Sid PXE installation matiasar Debian 1 04-03-2012 09:33 PM
[SOLVED] Java and Vuze installation on KDE Debian Wheezy sid infoslaw Linux - Newbie 11 12-28-2011 08:24 AM
synaptics touchpad not found : Wheezy/sid bennethos Debian 3 05-12-2011 04:54 AM
LXer: Living on the bleeding edge: Debian wheezy/sid LXer Syndicated Linux News 0 02-14-2011 07:20 PM

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

All times are GMT -5. The time now is 01:38 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