Portable ADB Prompt
If you're on the road and you need an ADB prompt to interact with your phone, many people will be lost as to what to do. It's kind of hard to carry the Android SDK on a flash drive, and if you're doing that solely for an ADB prompt, then it's kind of useless.
Basically, I've packaged an ADB prompt into a portable package for debuggers, hackers, and others to carry on the road. It fits on a small USB drive, and can even sit on your phone's SD card slot, ready to use.
You don't need a working copy of the Android SDK to use it. I've tested this on several computers, with and without the SDK on them.
So far a Windows-only copy is working fully. I haven't started on a Linux repackage, and perobably won't do a Mac port (unless a Mac owner/user is willing to).
All you need to do is extract the package, run adbprompt.bat, and you're good to go!
I'm sure this is stable enough for everyday use. Although seeing as I haven't explored every single facet of ADB on this portable package, I can't be too sure. It's labeled as a BETA until I've confirmed its stability.
Download link is below.
This is pretty handy to have. I'd be willing to look into this for a mac. If I'm not mistaken, it should just be one file. I've been playing around with a 1-click-root for mac and come to find that only the adb file from the sdk is needed for the command prompt to work.
Sweet, feel free! It's be pretty cool if you could put it up in this thread to - y'know, as a central hub for portable ADB prompts.
If you want, you could do a port/repackage. Basically it's just caling the ADB executable, executing adb command, and looping back to ask for more input. Simple, really. Easier than cding to the directory with the exe and all that wankery.
The best thing to do by means of disribution would be to package it in a .dmg and make it call a script to to the input-execute-loop thing (I don't know much about Mac file extensions). If you understand Windows batch code, you could try interpret adbprompt.bat to work with the Mac's native shell code - which I think is .sh, correct me if I'm wrong.
So yeah, port it if you want, send it my way through a PM (upload it to mediafire or something), and I'll put it up - with appropriate credit of course
Kickface said:
Portable ADB Prompt
If you're on the road and you need an ADB prompt to interact with your phone, many people will be lost as to what to do. It's kind of hard to carry the Android SDK on a flash drive, and if you're doing that solely for an ADB prompt, then it's kind of useless.
Basically, I've packaged an ADB prompt into a portable package for debuggers, hackers, and others to carry on the road. It fits on a small USB drive, and can even sit on your phone's SD card slot, ready to use.
You don't need a working copy of the Android SDK to use it. I've tested this on several computers, with and without the SDK on them.
So far a Windows-only copy is working fully. I haven't started on a Linux repackage, and perobably won't do a Mac port (unless a Mac owner/user is willing to).
All you need to do is extract the package, run adbprompt.bat, and you're good to go!
I'm sure this is stable enough for everyday use. Although seeing as I haven't explored every single facet of ADB on this portable package, I can't be too sure. It's labeled as a BETA until I've confirmed its stability.
Download link is below.
Click to expand...
Click to collapse
With Your permissions i would like to upload this file and any updates of it to my dropbox to share on OXygenRom Forum
Regards
Yeah, sure! Feel free! Just make sure you credit Kickface of xda-developers forums for the package.
And although I don't own a Desire, I've joined up at the forums.
Good luck with the ROM!
Cool think for my flash-drive, but this version doesn't support the 'connect' command or?
i wanted to use it with the App 'adbWireless'.
Great. Exactly what i was looking for. I will try this and report back.
Sadly, I get an error saying "the system cannot find the file specified" with every command I try to run
I think a "portable" ADB is already in the SuperOneClick root solution. It has a folder called adb with the executable and a couple of .dll. It worked great on first try, so to anybody who this might not work, you can download SOC and extract the folder from there.
Thanks for your work though
Sweet. This is pretty much an essential tool for me.
You should add an if/goto label command before the 'cd src' so it only tries to cd once. This would prevent the 'The system cannot find the path specified.' message after every command
:newline
if exist AdbWinApi.dll goto jump
cd src
:jump
Thank you so much for this.
I moved your batch file in the "src" directory and modified line 12 to make it more "portable":
Code:
cd %~dp0
nice software but seems it is a bit out of date, my Note 4 with 5.1.1 doesnt get recognized.
Related
the USB driver for windows is available at:
http://dl.google.com/android/android_usb_windows.zip
It seems to work... I will update this thread with what I find.
Thanks for posting the driver!
I've tried a few things with adb, and so far I can't get an install to work over usb. I tried the following command.
C:\...\android-sdk-windows-1.0_r1\tools>adb install OperaMini.apk
579 KB/s (0 bytes in 278155.000s)
pkg: /data/local/tmp/OperaMini.apk
Failure [INSTALL_PARSE_FAILED_MANIFEST_MALFORMED]
Click to expand...
Click to collapse
http://www.android-freeware.org/tutorial/how-to-install-apk-files-on-android-device-emulator Had some basic info about the emulator, not sure what would be different for the G1.
The "adb shell" option allows you to access a shell on the phone over USB, which is really great but it appears you don't have root privileges. Any ideas on how to obtain root priveleges? Also, is there a command to install from the android shell? When i cd to /sbin i get access denied. I'm trying to figure out some kind of way to invoke an install either from the device or over USB.
I have the same problem... working on it now...
I don't know about the USB installs, but it seems to be something with the APK as well. I also have the OperaMini.apk and it does nothing. I downloaded the iTunes remote via the G1 and it installed just fine without getting a PC involved.
It looks like you have to put the phone into a "Debug on USB" mode to use ADB. It's working for me now.
http://code.google.com/android/intro/develop-and-debug.html#developingondevicehardware
So you were able to install the opera mini apk through adb with no trouble? I got the error listed above and did have debug mode on
Thank you dagentooboy!
Can someone explain this for this not so savvy person?
chrimage said:
So you were able to install the opera mini apk through adb with no trouble? I got the error listed above and did have debug mode on
Click to expand...
Click to collapse
I think that is caused by an issue with the the AndroidManifest.xml file within the APK having to do with going from "beta" to "live" Android. The same reason most of the apps were pulled from the store. I don't believe it takes a major change to make it compatible, but it's fully compiled so, unless you have a decompiler, I think we may be out of luck on that particular one. I have installed other apk's successfully using the same method.
Mikey1022 said:
Can someone explain this for this not so savvy person?
Click to expand...
Click to collapse
ADB is the Android Debug Bridge that comes as a part of the SKD. I don't think it was really intended as an end user tool. It has to be called from a command line. I know people have built basic UI's for it for file manipulation when the SDK was the only thing out there. If a better solution isn't found shortly I think we'll see one be made, or else I'll make one myself. In the end it seem to make a big difference of what you're trying to install some things work and some don't, there are some differences between the beta SDK and the G1.
For any developers out there, you can also access the ADB/DDMS feature through the Eclipse IDE, it provides a somewhat simpler graphic interface and is a really easy way to get screenshots. Has anyone tried just typing su through the ADB command prompt to see if it will switch you to # ?
Valicore said:
For any developers out there, you can also access the ADB/DDMS feature through the Eclipse IDE, it provides a somewhat simpler graphic interface and is a really easy way to get screenshots. Has anyone tried just typing su through the ADB command prompt to see if it will switch you to # ?
Click to expand...
Click to collapse
the su command and sudo su returns "no permission" or "access denied" or something like that. That is also the same message i get when typing arbitrary commands that shouldn't be anything. And like i said earlier, /sbin along with many other directories are inaccessible. Hopefully someone will find a way to access the root account on the G1 pretty soon.
yes... must... have.... root...
Also a normal shell would be helpful esp when looking thru /proc/ for information.
Please help (ahhhhhh)
Okay So I am pulling my hair out here... I just booted android on my Vogue for the first time, everything works great, voice calls and sms.. But I can get a Inet connection but I am using Cricket not sprint so I added the username and password lines in default.txt and can connect, but Cricket uses a proxy for all http connections. So I found this article http://fggarcia.blogspot.com/2007/11/setting-up-proxy-for-android-emulator.html , which basicly says to use the adp app that comes in the sdk to add some lines to make the proxy. NOW, here is my problem... I can not for the life of me get my come (in windows or linux) to see my vogue while its in android..
In windows it does not appear ANYWHERE in the device manager... So I cannot install the driver, and in Linux it doesnt make a blip in dmesg..... USB debugging is marked and so is use adb....
It does charge when plugged in to the comp running linux.....
Can anyone please help me... And thanks to DZO and everyone else for there hard work on this project..
check too make sure your Android isnt listed under usb mass storage devices in device manager.
Ya USB isn't possible on Vogue yet, I just extracted data.img and added the proxy that way, but it still doesn't work. My Problem is I need all connection to use the proxy wap.mycricket.com:8080. I am not trying to be cheap or anything like the tzones thing for tmobile. Its just the only data plan cricket have use this proxy. So any Ideas would be greatly appreciated.
my computer already had a driver installed and when i try to update it with this one it says there is no better match for my hardware
anyone got a solution for this
Im really sorry to bump this old thread up but i need the r3 drivers and i dont know why they are nowhere to be found on the official page... i think its a region lock thing...
why do i NEED this adp program, all it does is push files to the sdcard right? Windows 7 (not sure about vista) has the android software drivers prebuilt into the 7000 beta. If the only reason i need adp is to copy files to the sdcard (which i do when i just mount the device and up pops the sdcard) than i shouldnt bother reading into this anymore.
adb is for much more than just pushing files. It is the debugger interface for android that allows a lot of things, including, installing/uninstalling apps. pushing/pulling apks, shelling into the phone, and so on.
The sdk works well in windows 7 too. That's what I've been using lately.
It's a developer tool. If you're not a developer you don't need it.
alright, install uninstall, which can be done with the app installer through the root of the sdcard. Same way i put the multitouch apps to play around with. Shelling into the phone is as easy now as opening the terminal on the phone and doing what i need through the file system.
The "linux guru" is asking why he needs adb?!?
ADB can be used to push things to places other than the sdcard.
I, for my part, prefer to shell with my full-size keyboard when I want to do anything long and involved.
you can't mount you sdcard if you phone doesnt boot up, but you can still push, also you can perform commands that are cant be done in terminal emmulator, you can run commands while phone is in recovery mode, you can use the debug monitor and so much more fun stuff
inpherno3 said:
If the only reason i need adp is to copy files to the sdcard
Click to expand...
Click to collapse
Hahahaha
Will we be able to put Side Loading Apps on the captivate without rooting?
Yes, you download and extract the android sdk, connect the phone to your computer and make sure you can detect it with command promt (or terminal in linux or equivalent in mac) by changing to the sdk directory then tools and type adb devices. If it comes up then type the command adb install name_of_the_file_your_trying_to_install.apk.
This worked for aria before root and has worked for the backflip community for some time, no reason to think it won't work for the Captivate. (Sorry for bad explanation, tired and might be a few mistakes in there but thats the quick version of it)
i thought rooting was required?
cropythy said:
Yes, you download and extract the android sdk, connect the phone to your computer and make sure you can detect it with command promt (or terminal in linux or equivalent in mac) by changing to the sdk directory then tools and type adb devices. If it comes up then type the command adb install name_of_the_file_your_trying_to_install.apk.
This worked for aria before root and has worked for the backflip community for some time, no reason to think it won't work for the Captivate. (Sorry for bad explanation, tired and might be a few mistakes in there but thats the quick version of it)
Click to expand...
Click to collapse
wouldn't necessarily call that "side-loading" you still wont be able to backup all your apks to the sd card and install them from the sd card if u need to wipe.
Is it not possible to pull the SD card, and copy apps to it from PC, and then put back in and install?
That would be the definition of side-loading ATT is refering to. Some people just need to be told a third, fourth, fifth time.
Thanks for the adb mention.
hello. ive been reading on different forums on the best way to sideload apps on captivate on mac. ive read about sideload wonder machine but seems ppl have problems... seems ppl r being more successful on pc.... if i were to run parallels then win 7 and try to use sideload wonder machine on pc will it work? im still reading on how to use commands, and terminals and cmd lines and all that . im new to android but familiar with winmo phones and jailbreaking iphones. so if anyone can help me or point me to the right direction, it is greatly appreciated! on a side note, i use parallel's and ran win 7 and dl droid explorer to try and delete some at&t bloatware but no go. when i try to delete it nothing happens... so i dont know what to do! lol. im rooted and all. i wanna have sideload next! thanks again guys!
1. Install Android SDK for Mac
2. Using Terminal CD to android-SDK/Tools directory
3. place your apk file in the tools directory
4. In terminal type: adb install file.apk <where file.apk is what you want to install>
This is the manual way on windows and this is what sideload wonder does for you. If you want to learn - this is the best way to start. ADB is easy, and it opens up the gateway for everything else.
YOu can probably find a more detailed tutorial on using ADB commands in Mac.
ADB is what lets you copy system files off the phone, change permissions, get access to the systems.db where you can allow sideload from phone, etc.
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™