[Q] ADB & Linux - Epic 4G Android Development

Anyone have adb working with linux? I've had zero luck hacking around with udev. Any assistance (udev rules, etc) appreciated! I do have adb-wireless working. My distro is Debian Sid.

probably not the best way, but i just threw it in the bin folder so i dont have to bother with it at all

I had no issues installing the sdk on lucid on my amd64. Never could get the sdk to install on xp(flp), so I had to install the one click root one line at a time from the *.bat
Sent from my SPH-D700 using XDA App

here for future reference, its a quick little script that will root your phone
http://www.mediafire.com/?hk59z8j5dve6tgf this works as long as your using bash shell cannot confirm for any others..
make sure to set click here as executable and make sure debugging is on your phone

shabbypenguin said:
probably not the best way, but i just threw it in the bin folder so i dont have to bother with it at all
Click to expand...
Click to collapse
I've installed the SDK and my phone is already rooted. My problem is that adb does not detect the phone. Sorry for any confusion.

hmm try this
adb kill-server
sudo adb start-server
adb devices
Click to expand...
Click to collapse
let me know what it says

shabbypenguin said:
hmm try this
let me know what it says
Click to expand...
Click to collapse
Thanks, working after the adb server restart. I could swear I had tried that before, but obviously not
Code:
List of devices attached
D700bc859a65 device

yea i know i have to use sudo start server on my computer otherwise i get ???????

Related

Standalone ADB for Windows & Linux

I think I've seen a standalone zip of ADB for Windows, but can no longer find that link. Does anyone have standalone versions for Windows and for Linux? I'd like to keep copies on my Hero for easy access!
Standalone ADB
Here you go! Save it on your computer then extract it.
Package made by me!
I'm getting a device not found error using this. Do I need to have the whole works (Java SDK, Android SDK) to use adb?
Edit: Or I could stop wasting your time by being dumb, and just download the usb drivers for my phone. My bad. Stand alone ADB works great; Thanks!
ADB for Linux
ADB for Linux you can find here...
http://forum.xda-developers.com/showthread.php?t=905237
Can anybody tell me how to install standalone ADB ?
Can anybody tell me how to install standalone ADB ?
alexsclewis said:
I'm getting a device not found error using this. Do I need to have the whole works (Java SDK, Android SDK) to use adb?
Edit: Or I could stop wasting your time by being dumb, and just download the usb drivers for my phone. My bad. Stand alone ADB works great; Thanks!
Click to expand...
Click to collapse

Google App Inventor: How do I specify the location of my ADB drivers?

It can't find my phone when I go to connect to it (probably because I installed it on the F:/ drive, and my ADB drivers are on the C:/ drive. How do I specifically tell it where to look? I thought I remembered seeing this in the tutorials, but I can't find it now.
Edit: Whoops, forgot that there's WinMo development here too. Feel free to move this to Android General.
TheBiles said:
It can't find my phone when I go to connect to it (probably because I installed it on the F:/ drive, and my ADB drivers are on the C:/ drive. How do I specifically tell it where to look? I thought I remembered seeing this in the tutorials, but I can't find it now.
Click to expand...
Click to collapse
Ummm... Your ADB drivers don't matter where they are. The phone is plugged in in adb mode, you install the drivers, and they are copied to C:\Windows\System32\Drivers iirc.
Have you installed the latest correct ones for your device?
pulser_g2 said:
Ummm... Your ADB drivers don't matter where they are. The phone is plugged in in adb mode, you install the drivers, and they are copied to C:\Windows\System32\Drivers iirc.
Have you installed the latest correct ones for your device?
Click to expand...
Click to collapse
Yes, and I do stuff with ADB all of the time. I think it can't find the location of adb.exe (at least I think that's what one of the guides mentioned somewhere). My phone is connected and USB Debugging is enabled, and it is detected when I execute "adb devices."
Is adb folder in your path environmental variable?
pulser_g2 said:
Is adb folder in your path environmental variable?
Click to expand...
Click to collapse
Huh? I've got my SDK installed in the default location on the C:\, but my App Inventor stuff is on the F:\ drive with all of its default settings, so I'm not sure if it is looking for F:\android-sdk-windows or not.
TheBiles said:
Huh? I've got my SDK installed in the default location on the C:\, but my App Inventor stuff is on the F:\ drive with all of its default settings, so I'm not sure if it is looking for F:\android-sdk-windows or not.
Click to expand...
Click to collapse
OK. I see what you mean, and that's not the issue.
See http://www.villainrom.co.uk/forum/s...de-Setting-up-ADB-and-how-to-use-it.-(Windows) and follow step 2 to add the adb folder to your path.
To check it works, you should be able to go to command prompt and run "F:", and then type "adb devices" and see your phone.
IE. this lets you use adb from any folder. AFAIK this will let AppInventor work.

How to install adb windows 7 32 and 64 and should work on XP

From what I read a few people have had problems installing ADB on windows 7 so I figured this might help some so here we go
1st Down load the android sdk found here= http://developer.android.com/sdk/index.html
2nd download the java jdk found here= http://www.oracle.com/technetwork/java/javase/downloads/index.html
3rd download Mobile Stream Easy tether. You can find it on the android market. You can use the free version or the pro. Either version will do.
Now install the java jdk and let it run that's all for the java.
Second extract the android sdk to your c:\ drive.
Meaning right click on the android sdk and choose extract.
A window will appear. In the address bar of that window is were the files will currently be extracted to. Please delete everything in the address bar except the c:\ Then click ok and close the window.
Then go to your start menu and click on it. From there go to computer and click on it. Then you will see an icon that says (c That's your hard drive were you extracted the android sdk. Click/Double click on this icon. From there you should see a folder named Android-sdk something something, Right click on this folder and rename it to AndroidSDK
Please rename the folder exactly as I wrote it capitol letters and all.
Next make sure that you have usb debuggin enabled on your phone. If you can't find this, "PLEASE STOP UNTIL YOU DO"
Now open up the mobile stream easy tether application on you phone. This is needed because it gives you an option to download the .exe file for your os/ windows. - So download the .exe and when its done go to your sd card and find the .exe It should be in your downloads folder on your sd card. Once you have the file transfer it to your Laptop/Pc.
Now run the .exe file and when it opens up it will give you an option of Easy tether core or Android USB drivers. Please choose the Android USB drivers. But "STOP" and click the little arrow next to ANDROID USB DRIVERS. A menu will appear. When it does please choose ENTIRE FEATURE WILL BE INSTALLED ON C:\ DRIVE. Check that option as well. Click install and let it finish.
Now please REBOOT your Laptop/Desktop.
When your pc/laptop is up and running, plug your phone into your pc the drivers should begin to install let it finish.
If your using Windows vista 32bit/64bit or Windows 7- 32bit/64bit go to your start menu and click on it. In the search box at the bottom of the start menu type in cmd. After that press the enter key on your keyboard. If your using Windows Xp then go to your start menu and click on "run" This will bring up a little box on the left side of your desktop. In that menu box type cmd and hit enter on your keyboard. This will bring up a command window as well.
When that command window appears. Type this command.
cd\
then hit enter
Now type cd\AndroidSDK\tools\
then hit enter
Now type adb devices. You should see a bunch of numbers.
Those numbers. Represent your phone.
Now type
adb shell
Then hit enter on your keyboard.
You should see the # sign. That means you have adb installed. To test it just type reboot recovery and it should reboot your phone into your current recovery. From there you got it.
I hope this helps anyone who was having a hard time installing adb with the htc drivers.
Edit if you need help installing adb on ubuntu see my thread here
http://forum.xda-developers.com/showthread.php?t=794624
thanks really needed this a while back
Great guide, but this is all I do if I need basic adb to access my phone to get shell access or push/pull apk files, etc. It takes maybe 5mins tops depending on my download speed.
If all you need is adb to access your phone for shell access, or to push or pull files (like .apk) then do the following:
Download HTC Sync software from HTC's website. Install this software. It includes the needed USB drivers. This works on 64 bit machines as well. I know because it is what I use.
Download the Android SDK for Windows.
Use your favorite tool to extract the Windows Android SDK to the location of your choice. I use 7-zip, but Windows supports extraction of .zip files by default. Right click the file and choose Extract All. For the sake of this guide we will use C:\. Put that in the box when it asks where to extract to.
Once extracted you should have C:\android-sdk-windows folder on your computer, assuming you extracted to C:\ like this guide uses.
Now click your start menu, choose All Programs, click on Accessories, and choose Command Prompt. Power users will know you can also press the 'Windows Key' + R and type CMD and hit enter. Same result either way.
Now type into the black box (command prompt) the following (without the "quotes"): "cd c:\android-sdk-windows\tools\" and press enter. CD stands for change directory. We are navigating your hard drive using the command prompt.
Now you can use adb commands. Simply type adb and hit enter to see a full list of commands. The most common command is "adb shell" (no quotes again) to get to your phones shell.
Remember, your phone needs to be in USB debugging mode (on your phone from the desktop: Menu Key, Settings, Applications, Development, check the USB Debugging box, and accept the notice when prompted) and you need the HTC USB Drivers installed.
I say this is simple, but I'm also not new to computers or the command line so it might not be clear to everyone. If you need clarification please ask.
Note: I've edited my post many times to make it not sound like an attack on OP. There are many ways to do the same thing. Do whatever works best for you.
Actually to correct you --- you have to download the development platforms via adb tools .exe to do development also you will need the eclipse software as well this is for just adb the Java helps in some cases you will see wen using adb Java is helpful also if people want to use the theme injector the Java is there all they would have to do is add it to there path also from what I read quiet a few people were having problems with the HTC sync drivers so this is a way to do it if you can't get the HTC drivers to work and this can't be over complex this takes like 15 min and your done how complex is that????? And to clarify your statement on -- this is the Heroc forum lol really is not the hero android??? That's y I said use the easy tether its gives you the option to install the ABD Android USB drivers but thanks also y not post ur way of installing adb its all usefull knowledge
Root-Hack-Mod-Always™
joselv456 said:
thanks really needed this a while back
Click to expand...
Click to collapse
A man just hope it helps but thanks
Root-Hack-Mod-Always™
laie1472 said:
Actually to correct you --- you have to download the development platforms via adb tools .exe to do development also you will need the eclipse software as well this is for just adb the Java helps in some cases you will see wen using adb Java is helpful also if people want to use the theme injector the Java is there all they would have to do is add it to there path also from what I read quiet a few people were having problems with the HTC sync drivers so this is a way to do it if you can't get the HTC drivers to work and this can't be over complex this takes like 15 min and your done how complex is that????? Lol but thanks also y not post ur way of installing adb its all usefull knowledge
Root-Hack-Mod-Always™
Click to expand...
Click to collapse
Well the topic said "how to install adb" so I was confused as to why it was so in-depth. It didn't say anything about development, Eclipse IDE, etc.
My post was my way of doing it.
Dude you didn't even post ur commands you put what ever what ever a man you can post on this thread it's not like I own it but at least b clear for beginners on what commands you use and make your instructions clear and if this is in-depth I don't get it this is as plain and simple as it gets
Root-Hack-Mod-Always™
Porkrinds said:
Well the topic said "how to install adb" so I was confused as to why it was so in-depth. It didn't say anything about development, Eclipse IDE, etc.
My post was my way of doing it.
Click to expand...
Click to collapse
And I told you about the development platforms because you had stated that my guide was for full on development and its not you need those features to develop like the op says this is just for ADB
Root-Hack-Mod-Always™
laie1472 said:
Dude you didn't even post ur commands
Click to expand...
Click to collapse
I did now, and why so defensive? I'm not attacking your guide or anything. If it works it works. I just said it seemed complex if all you needed was adb.exe to get shell access or to push/pull files.
Defense no way dude just saying if your gonna post ur guide please be clear on what you did so the people know
Root-Hack-Mod-Always™
Porkrinds said:
I did now, and why so defensive? I'm not attacking your guide or anything. If it works it works. I just said it seemed complex if all you needed was adb.exe to get shell access or to push/pull files.
Click to expand...
Click to collapse
See that's what's up the more people know the better thanks I wanna make it so whoever wants ADB can have it in minutes so once again thanks
Root-Hack-Mod-Always™
laie1472 said:
Defense no way dude just saying if your gonna post ur guide please be clear on what you did so the people know
Root-Hack-Mod-Always™
Click to expand...
Click to collapse
You got it. I've edited my first post and hope it clears things up and to make it not sound like I was saying you were wrong or something.
Now what would really help newer users would be a video or some pictures. Might be something to look into later.
And to make it clear anyone who wants to post any kind of way to install adb on any os please do like porkrinds said there are many so all ways are welcomed and if any one needs help installing adb on Ubuntu check my other thread on how to install ABD on Ubuntu
Root-Hack-Mod-Always™
Porkrinds said:
You got it. I've edited my first post and hope it clears things up and to make it not sound like I was saying you were wrong or something.
Now what would really help newer users would be a video or some pictures. Might be something to look into later.
Click to expand...
Click to collapse
Ill post a video later and yea that is a super good idea
Root-Hack-Mod-Always™
Worked great. I was having problems using the HTC sync method and had given up on adb altogether. Thanks for the straight forward and easy to follow guide
trip187 said:
Worked great. I was having problems using the HTC sync method and had given up on adb altogether. Thanks for the straight forward and easy to follow guide
Click to expand...
Click to collapse
No prob just glad u got it up and running
Root-Hack-Mod-Always™
Should work for xp as well
Root-Hack-Mod-Always™
In addition to the OP, if you'd like the ability to run adb commands from any directory via command line, simply copy adb.exe and adbwinapi.dll to your computer's ?:\Windows\System32 directory, where obviously "?" is your Windows installation's drive letter; usually "C".
expxxx said:
In addition to the OP, if you'd like the ability to run adb commands from any directory via command line, simply copy adb.exe and adbwinapi.dll to your computer's ?:\Windows\System32 directory, where obviously "?" is your Windows installation's drive letter; usually "C".
Click to expand...
Click to collapse
I rather just add it to my PATH variable.
Example: http://geekswithblogs.net/renso/archive/2009/10/21/how-to-set-the-windows-path-in-windows-7.aspx
I'd add (on my computer) E:\android-sdk\platform-tools to my PATH variable. No moving files needed.
Trying to keep it simple for new users lol. But many thanks for the post.
Root-Hack-Mod-Always™

How to install and configure sdk/adb on Ubuntu

I want to be able to use adb to pull/ push apps to my phone.
I recently converted my PC to Ubuntu 10.10 from windows and I am finding it impossible to find any sort of noob friendly guide as to how I can actually get it installed and working.
Can anyone help? Or point me towards a guide. All the stuff I find seems to assume you either already have it installed or know how to do it already!
Sent from my GT-I9000 using XDA App
Well thanks for your help folks
Sent from my GT-I9000 using XDA App
here ya go http://tinyurl.com/44zscrd
Follow the first guide, if you still have problems post back and I'll try to help you with what you need
Ok I tried this, I realise you were taking the piss but the guide was good except I could not get Ubuntu to recognise my device. Followed the instructions to the letter. I know Linux is not meant to be easy but why is it SO hard?
Sent from my GT-I9000 using XDA App
branalvere said:
Ok I tried this, I realise you were taking the piss but the guide was good except I could not get Ubuntu to recognise my device. Followed the instructions to the letter. I know Linux is not meant to be easy but why is it SO hard?
Sent from my GT-I9000 using XDA App
Click to expand...
Click to collapse
ubuntu recognizes it by default unless you modified your settings or messed with the kernel.
http://developer.android.com/sdk/index.html
Download the Linux tools. Extract it then open your terminal and go to the extracted folder, inside here is a folder called tools, with the terminal cd into tools and type ./android.....app should open, go to available packages, android repository, check the first one and should be android sdk tools.
Click install selected at the bottom right. Once it's done you will have adb installed.
On your phone, go to settings, applications, development, check usb debugging. Also check unknown sources.
Inside the folder you are in, there should be a file/ script called adb. This means you can run the adb commands from here.
In terminal, assuming you are in the folder where the adb file is located, type:
Sudo ./adb start-server
This should recognize your phone.

[Q] Help needed to understand ADB for Rooting

Hi,
I recently got ATRIX2 (MB865).
I own G-tablet where I use multiple ROMS and bit familiar with Custom ROMs, Flashing, Titanium Backup etc. However I never used ADB as it didn't needed.
My Question is do we need to install Android SDK for using ADB commands as explained on "how to Root?" thread. Is it necessary for both manual and 1-click methods?
I tried to use search but couldn't find much help. Hoping some one could help me out here. Sorry its such noob and repetitive question.
Thank you.
-Nambi
sazhagianambi said:
Hi,
I recently got ATRIX2 (MB865).
I own G-tablet where I use multiple ROMS and bit familiar with Custom ROMs, Flashing, Titanium Backup etc. However I never used ADB as it didn't needed.
My Question is do we need to install Android SDK for using ADB commands as explained on "how to Root?" thread. Is it necessary for both manual and 1-click methods?
I tried to use search but couldn't find much help. Hoping some one could help me out here. Sorry its such noob and repetitive question.
Thank you.
-Nambi
Click to expand...
Click to collapse
Yes you must have the Android SDK, for both the one click and the manual root options. The one click method also uses adb, which is just a utility that will get you a command prompt on the phones OS. The one-click is best for newbies, that run windows. If you don't run windows, then you will have to do the manual method.
Thank you!
jimbridgman said:
Yes you must have the Android SDK, for both the one click and the manual root options. The one click method also uses adb, which is just a utility that will get you a command prompt on the phones OS. The one-click is best for newbies, that run windows. If you don't run windows, then you will have to do the manual method.
Click to expand...
Click to collapse
Gotcha, Thank you for clarifying it and also for very quick answer.
If you need help installing ADB go here http://developer.android.com/sdk/installing.html
lilhaiti said:
If you need help installing ADB go here ://developer.android.com/sdk/installing.html
Click to expand...
Click to collapse
Thank you. Now I installed Android SDK (including Eclipse though I understand it may not needed now) as explained on site.
When I navigate to platform-tools folder under android-sdk in command prompt and issue ADB command works as expected. How ever ADB command isn't working from C:\ . Do I need to update the PATH Environment to enable this? OR Can I put EXPLOIT folder under platform-tools and try for root ?
Please forgive my ignorance.
Thank you.
sazhagianambi said:
Thank you. Now I installed Android SDK (including Eclipse though I understand it may not needed now) as explained on site.
When I navigate to platform-tools folder under android-sdk in command prompt and issue ADB command works as expected. How ever ADB command isn't working from C:\ . Do I need to update the PATH Environment to enable this? OR Can I put EXPLOIT folder under platform-tools and try for root ?
Please forgive my ignorance.
Thank you.
Click to expand...
Click to collapse
Update the PATH for C:\path\to\SDK\platform-tools

Categories

Resources