Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
Kickface
Old
#1  
Kickface's Avatar
Junior Member - OP
Thanks Meter 6
Posts: 12
Join Date: Feb 2011
Location: Sydney
Default Portable ADB prompt

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.
Attached Files
File Type: zip kickface-portable-adb-0.2b.zip - [Click for QR Code] (608.5 KB, 2580 views)
The Following 4 Users Say Thank You to Kickface For This Useful Post: [ Click to Expand ]
 
Braydon525
Old
#2  
Junior Member
Thanks Meter 0
Posts: 3
Join Date: Feb 2011
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.
 
Kickface
Old
(Last edited by Kickface; 1st March 2011 at 12:57 AM.)
#3  
Kickface's Avatar
Junior Member - OP
Thanks Meter 6
Posts: 12
Join Date: Feb 2011
Location: Sydney
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 :P
 
wlee2
Old
#4  
wlee2's Avatar
Senior Member
Thanks Meter 0
Posts: 114
Join Date: Oct 2010
Location: Melbourne
Quote:
Originally Posted by Kickface View Post
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.
With Your permissions i would like to upload this file and any updates of it to my dropbox to share on OXygenRom Forum

Regards
 
Kickface
Old
#5  
Kickface's Avatar
Junior Member - OP
Thanks Meter 6
Posts: 12
Join Date: Feb 2011
Location: Sydney
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!
The Following User Says Thank You to Kickface For This Useful Post: [ Click to Expand ]
 
pred2k
Old
#6  
Junior Member
Thanks Meter 0
Posts: 4
Join Date: Dec 2010
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'.
 
Nacrul
Old
#7  
Junior Member
Thanks Meter 2
Posts: 20
Join Date: Mar 2010
Location: Munich
Great. Exactly what i was looking for. I will try this and report back.
 
Dan_Aykroyd
Old
#8  
Dan_Aykroyd's Avatar
Senior Member
Thanks Meter 38
Posts: 285
Join Date: Feb 2010
Sadly, I get an error saying "the system cannot find the file specified" with every command I try to run
 
Dan_Aykroyd
Old
#9  
Dan_Aykroyd's Avatar
Senior Member
Thanks Meter 38
Posts: 285
Join Date: Feb 2010
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
 
Fr3nZy
Old
#10  
Senior Member
Thanks Meter 1
Posts: 118
Join Date: Feb 2008
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

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Go to top of page...