FORUMS

Portable ADB prompt

12 posts
Thanks Meter: 13
 
By Kickface, Junior Member on 28th February 2011, 12:52 AM
Post Reply Email Thread
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, 36208 views)
The Following 11 Users Say Thank You to Kickface For This Useful Post: [ View ] Gift Kickface Ad-Free
28th February 2011, 03:00 AM |#2  
Junior Member
Thanks Meter: 0
 
More
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.
1st March 2011, 12:49 AM |#3  
Kickface's Avatar
OP Junior Member
Flag Sydney
Thanks Meter: 13
 
More
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
1st March 2011, 10:22 AM |#4  
wlee2's Avatar
Senior Member
Flag Melbourne
Thanks Meter: 0
 
More
Quote:
Originally Posted by Kickface

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
1st March 2011, 10:53 AM |#5  
Kickface's Avatar
OP Junior Member
Flag Sydney
Thanks Meter: 13
 
More
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: [ View ] Gift Kickface Ad-Free
8th March 2011, 02:27 PM |#6  
Junior Member
Thanks Meter: 0
 
More
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'.
21st April 2011, 11:39 AM |#7  
Junior Member
Flag Munich
Thanks Meter: 2
 
More
Great. Exactly what i was looking for. I will try this and report back.
11th May 2011, 06:52 PM |#8  
Dan_Aykroyd's Avatar
Senior Member
Thanks Meter: 52
 
More
Sadly, I get an error saying "the system cannot find the file specified" with every command I try to run
12th May 2011, 02:48 PM |#9  
Dan_Aykroyd's Avatar
Senior Member
Thanks Meter: 52
 
More
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
27th May 2011, 04:52 PM |#10  
Senior Member
Thanks Meter: 1
 
More
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
27th August 2015, 02:00 PM |#11  
Junior Member
Thanks Meter: 0
 
More
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
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes