AdbTool: The Automated Life - Droid X Android Development

Ok so this started out as a small project to make my day to day phone functions easier and quicker but I thought I might share it incase anyone thought my AdbTool was helpful or just nice to have.
Functions so far:
1. Check for device
2. Push or Pull a File
3. Install .apk
4. Reboot
5. Root your Droid X
6. Change bootanimation
7. Push framework (specifically for framework)
8. issue whatever adb command you need to with out the extra typing
9. Set project
10. Error log
11. Clean up folder
There are more functions to come in the future so let me know if you like this script and what you wanna see added. There is no install just unzip and open the .bat file.

This sounds great! Though I'm on Linux machine, so I don't think ill be able to use it :/
Sent from my DROIDX using XDA App

No sorry, I should have specified. It is a Windows script... Just wait though, because Sunday I will be getting a desktop that is already running linux. If you really want I will take the time to make a script to run for linux?
Sent from my DROIDX using XDA App

rooting the dx doesnt work for me :/

Huh... what is happening when you enter that option? Sorry for the long time for me to post I missed the email alert.
Sent from my DROIDX using XDA App

I'm assuming this doesnt allow root for 2.3.3 ota correct?
since all I see is rageagainstthecage in the files

This looks like a really useful program! I might do some work this weekend on it and see if I can get it working for the DROID 2 and port it over to UNIX machines.
If I set it up for unix I will add an SBF option too.
Woa just realized this is a really old thread

ljbaumer said:
This looks like a really useful program! I might do some work this weekend on it and see if I can get it working for the DROID 2 and port it over to UNIX machines.
If I set it up for unix I will add an SBF option too.
Woa just realized this is a really old thread
Click to expand...
Click to collapse
Yeah, this thread is quite old (almost a year) and I am sure the program/script needs to be updated to work.
It is a good idea though (if it can be updated)
D.

I'd like to make a request for a Mount and UnMount command.
fyi....you spelled Folders wrong in the main menu "Floders"

.
I can make the program for yall. Yall just need something for shell or a gui for windows?

whatever's easier for you, either would be appreciated it

i have adb properly installed by doing adb devices in cmd it shows my dx
but when i use your tool it says it cannot find the path specific

Related

**UPDATE**SuperG1-Computer 9/8/09 4:03am

Here is basic program for your windows computer that just does basic stuff.
It can reboot your phone to wherever you want like recovery, bootloader.
It will wipe your ext2/3 from recovery if you choose and it will repair your ext2/3.
This is still beta, so far everything that is on the app works. But when I say beta I mean I still to implement alot more features so just use it and then tell me what you guys want. I am working on implementing switchrom into it.
This is just about 3 hours of work so you will see alot more in the future.
Screenshots Below!
*(For those of you wondering it is writen in a mix of C++,vb.net,python,and MS-DOS)*
Twitter: http://twitter.com/kickfliprock13
** Oh I forgot to mention you need to have adb set up for this to work if you don't have it set up than it wont work. So if you want to set up just go here: http://punk-in.com/driver_vista.html
Continued
Changelog:
9/8/09: Added a link to tell you how to install usb drivers for your phone
Added links to our twitter's and plurk's
Fixed a few small bugs
Continued Again
This is for problems and things I am changing!
Problems:
Can't get it to put arguments into adb commands, for example adb shell sh /system/sd/switchrom -s (then the name they want to name it)
I suck with ShellExecute commands so I need to get better at those
Need to learn how to add .exe's and other files into a C++ file and then run it.
Changing:
I will probably be changing the layout in the next update
I will be learning ShellExecute commands hopefully. So then it can set up adb for you and do a switchrom.sh for you
looks good dling now btw how many programming languages do you know lol
Languages
I know a couple. This program is written in C++. I have only done C++ for about a week so I am still kind of a noob. But other than that I know: html, MS-DOS,Python, I am learning java, I know some C and C#.
I am taking some visual stuff right now, like blender and game development.
After that I want to learn CSS, and learn the reset of java and C++
do you think you can make it that the program can flash the new spl and radio so the phone won't brick. Anyway awesome program
It looks like it's just issuing the non-response ADB commands. Do you have anything there to capture the commandline output from ADB? I'm trying to get the push and pull confirmations for mine. It seems the stream is immedately written as blank and then changed to the confirmation but the change is not rewritten to the stream.
Also ADB does not have to be in a specific directory in order to work. Just change the working direcory of your process to the folder where you have them stored. I bundled the files with mine so I didn't have to worry about if someone didn't have them in the right place.
M..N said:
do you think you can make it that the program can flash the new spl and radio so the phone won't brick. Anyway awesome program
Click to expand...
Click to collapse
Yes, we are working on making that happen very soon. It is difficult but yeah, we already figured out a way to apply new radio,spl and get to hero in about a minute now we just need to implement that into the app but I just can't figure out exactly how to include multiple files in my C++ project but once I figure that out I will tell you.
Excellent thanks very much
Hi so how is this program coming along
Very well I almost have rooting figured out
Cool would this work on uk phones and when is the estimated release time

AndroidCentral release Windows Program allowing of sideloadig apps.

Like the title says. Jerry Hildenbrand over at AC has made an open source program for windows which allows for the sideloading of apps.
Thought I'd inform the Aria users since AT&T removed this ability from the stock rom.
Incase anyone here hasn't rooted yet, Works with non roted devices aswell.
http://www.androidcentral.com/sideload-android-apps-all-you-want-sideload-wonder-machine
DL Link > http://images.androidcentral.com/sites/androidcentral.com/files/downloads/AC-SWM-v1.0.zip
Would love to hear feedback from anyone who uses this! I'll admit it, I'm too chicken-sh*t to be the first one.
I tried it on my xp computer, it didn't work properly. You have to install v4 .net framework. It did start up cmd window and brought it all the way to where I could install apk's adb style. HTC sync works well for htc phones. I think the Android Cental tool could work for other brands like Samsung, Motorola etc.
Sent from my HTC Liberty using XDA App
I never used it myself. I don't use Windows so I never tested it out. There is also a port for Linux and OS X. I may try it later,tho I've really no need for it honestly.
Sent from my hTC Magic using Tapatalk
It worked for me on my non-rooted Aria installed Swype.
hashbrown said:
I tried it on my xp computer, it didn't work properly. You have to install v4 .net framework. It did start up cmd window and brought it all the way to where I could install apk's adb style. HTC sync works well for htc phones. I think the Android Cental tool could work for other brands like Samsung, Motorola etc.
Sent from my HTC Liberty using XDA App
Click to expand...
Click to collapse
htc sync 3.0. something works on my wifes aria, but for the life of me can't get it to work with mine, so i been using that droid explorer.
Works Great
I rooted my Aria but didn't figure out the sideloading. Then came across this little "wonder machine". Its great for those who dont want to get to complicated; i.e. SDK tools
just use droidexplorer.
Im a complete Noob to Rooting and Sideloading and i've gotta say this little program made things very easy. i did just like another post and loaded swype....sweet....
Great app bit of a pain to figure out but by after getting it going it is very easy to use!
Sent from my HTC Liberty using XDA App
Installing Wonder Machine on xp
1. Install the latest version of HTC Sync, do not run it but install it for the drivers (htc.com/us/support/aria-att/downloads/)
2. Restart
3. Update Adobe AIR
4. Install .Net framework 4 (microsoft.com/downloads/details.aspx?FamilyID=9cfb2d51-5ff4-4491-b0e5-b386f32c0992&displaylang=en)
Restart
5.Open and unpack ASW
6. Install to C drive (I ran this on a XP emulator and my desktop was a shared folder not sure if this is needed for all)
7. Place file to be installed in the same folder as the Wonder Machine app.
8. Set phone to charge only and turn on debugging mode
9. in ASW select file to be installed
10. Click go
Takes about 30 seconds to install and all is good works rooted or not
Noob To droid with new Aria, Am I correct in reading with this program I can install swype and swype will work without being rooted?
If so what version of swype do I need? and if not to big a pain where can I get it?
Ok with a little more reading figured out where to get swype sorry about my laziness,
sideloading
adb install <anything_you_want>.apk
no windoze app needed
toooinfiniti said:
I rooted my Aria but didn't figure out the sideloading. Then came across this little "wonder machine". Its great for those who dont want to get to complicated; i.e. SDK tools
Click to expand...
Click to collapse
The whole constant chatter about sideloading itself is too complicated... I mean, isn't it just a boolean value in a sqlite3 flat-file database that you flip?
no big deal
mattbollenbach said:
just use droidexplorer.
Click to expand...
Click to collapse
this.
ten char

How do you Root Froyo on the Captivate the Easiest way?

I have the one click root on my computer. I was able to root stock 2.1 but not Froyo. I cant seem to get a normal Update.zip to reinstall to root it. Can anyone help me out with this? Thank you
Have you used adb before? Its easy. Just need to get the sdk dev kit. Then go here.
http://forum.xda-developers.com/showthread.php?t=797397
smokestack76 said:
Have you used adb before? Its easy. Just need to get the sdk dev kit. Then go here.
http://forum.xda-developers.com/showthread.php?t=797397
Click to expand...
Click to collapse
I never have. But Im to nervous to attempt it bud lol
Its not hard. You can PM me if you want. Its easier than all the flashing to swap Kernels i think.
smokestack76 said:
Its not hard. You can PM me if you want. Its easier than all the flashing to swap Kernels i think.
Click to expand...
Click to collapse
+1 Its easier to cut and paste between windows. I also like to see how adb commands are used.
Terrigno said:
I never have. But Im to nervous to attempt it bud lol
Click to expand...
Click to collapse
If you're comfortable with flashing Froyo using adb shouldn't be a problem.
cappysw10 said:
If you're comfortable with flashing Froyo using adb shouldn't be a problem.
Click to expand...
Click to collapse
I sent smokestack a PM to see if he can help me out on how to do it. I just flashed the phone with Froyo following the directions here. I wasnt to sure about what I was doing but I did everything and it all eventually worked out well, with a couple scares lol. Im new to the rooting scene. I mean Im pretty savy when it comes to certain stuff and I was easy to install beta leaks and builds with BlackBerrys for 3 years. Im new to Android since the Captivate came out, so Im slowly trying to learn the tricks of the trade
Terrigno said:
I sent smokestack a PM to see if he can help me out on how to do it. I just flashed the phone with Froyo following the directions here. I wasnt to sure about what I was doing but I did everything and it all eventually worked out well, with a couple scares lol. Im new to the rooting scene. I mean Im pretty savy when it comes to certain stuff and I was easy to install beta leaks and builds with BlackBerrys for 3 years. Im new to Android since the Captivate came out, so Im slowly trying to learn the tricks of the trade
Click to expand...
Click to collapse
Sent you a reply as well.
I was wondering if someone was also willing to help me, the instructions on the link are kinda of vague I think
we are working on it
Seems that adb does not like Win7. Anyone else see issues?
smokestack76 said:
Seems that adb does not like Win7. Anyone else see issues?
Click to expand...
Click to collapse
nope. been working fine on mine since July....i have it on 3 machines all running win7 64bit ultimate
alme1304 said:
I was wondering if someone was also willing to help me, the instructions on the link are kinda of vague I think
Click to expand...
Click to collapse
The instructions seemed clear as day to me. Put the phone in debug mode, use adb to push the files, execute a shell script, use sqlite3 to allow side loading, change permissions on the files you pushed, and reboot.
Sent from my SAMSUNG-SGH-I897 using XDA App
rajendra82 said:
The instructions seemed clear as day to me. Put the phone in debug mode, use adb to push the files, execute a shell script, use sqlite3 to allow side loading, change permissions on the files you pushed, and reboot.
Sent from my SAMSUNG-SGH-I897 using XDA App
Click to expand...
Click to collapse
you are forgetting one important step that nobody seems to want to do.
learn what all that means
its a gimme gimme gimme world....gimme now, i dont want to understand it! just do it for me!
Pirateghost said:
you are forgetting one important step that nobody seems to want to do.
learn what all that means
its a gimme gimme gimme world....gimme now, i dont want to understand it! just do it for me!
Click to expand...
Click to collapse
Kinda. Seems the OP here has win7 and i cant get it to play right. I see the above poster said they have it. Please post some info
rajendra82 said:
The instructions seemed clear as day to me. Put the phone in debug mode, use adb to push the files, execute a shell script, use sqlite3 to allow side loading, change permissions on the files you pushed, and reboot.
Sent from my SAMSUNG-SGH-I897 using XDA App
Click to expand...
Click to collapse
I think what they are looking for is where to put the files that they download. I know in the rooting tread, it was missing. I also think some people do it differently, so it may help just to let them know how you find it easiest to navigate to them, etc.
Personally, I take the files that were downloaded and extract them all. Then make sure you have downloaded the android SDK program and put it on the root of your computers hard drive such as drive C:. Then add those files you downloaded to the "Tools" file within sdk.
To navigate to them with command prompt, it would look like: cd C:\android-sdk-windows\tools
Then run the commands as listed in the tread.
Hope this helps.
Perhaps this is not the answer you are looking for, but if you are comfortable flashing roms, flash Cognition 2.2 (its already rooted).
Good luck
ronandi said:
Perhaps this is not the answer you are looking for, but if you are comfortable flashing roms, flash Cognition 2.2 (its already rooted).
Good luck
Click to expand...
Click to collapse
Its funny all the n00b post. I guess i dont know what im doing
Gr8Danes said:
I think what they are looking for is where to put the files that they download. I know in the rooting tread, it was missing. I also think some people do it differently, so it may help just to let them know how you find it easiest to navigate to them, etc.
Personally, I take the files that were downloaded and extract them all. Then make sure you have downloaded the android SDK program and put it on the root of your computers hard drive such as drive C:. Then add those files you downloaded to the "Tools" file within sdk.
To navigate to them with command prompt, it would look like: cd C:\android-sdk-windows\tools
Then run the commands as listed in the tread.
Hope this helps.
Click to expand...
Click to collapse
I'm running W7 and am having issues with adb. I'm a noob to android but I'm learning. Anyway, I tried your suggestion of adding the files to the tools directory but when I enter "su" the system returns "su: not found". Any help?
Moved to Q&A.

[APP] SuperWipe for Mac [ALPHA]

Ok so here's this application that I made in Automator for myself and I figured that if anyone wants it, it's here. This is a Mac OS X only app. What does this app do? It wipes the data and dalvik cache on the phone twice. It is quite quick and easy. What will you need to do to your Mac before running this application? You simply need to add adb to the .bash_profile path settings. (This means that from anywhere in terminal, you can type adb and run adb.) Then just put your phone into recovery mode and run this app. This is an alpha build as I have not tried it on my own phone yet. However it should work as I've coded it and it has NO potential to brick the phone
Download Here!
EDIT: Currently the program is not working, I will make a new one and upload ASAP.
CPCookieMan said:
Ok so here's this application that I made in Automator for myself and I figured that if anyone wants it, it's here. This is a Mac OS X only app. What does this app do? It wipes the data and dalvik cache on the phone twice. It is quite quick and easy. What will you need to do to your Mac before running this application? You simply need to add adb to the .bash_profile path settings. (This means that from anywhere in terminal, you can type adb and run adb.) Then just put your phone into recovery mode and run this app. This is an alpha build as I have not tried it on my own phone yet. However it should work as I've coded it and it has NO potential to brick the phone
Download Here!
EDIT: Currently the program is not working, I will make a new one and upload ASAP.
Click to expand...
Click to collapse
Nice job CP... with a little editing, could I get this to work on Linux?
workshed said:
Nice job CP... with a little editing, could I get this to work on Linux?
Click to expand...
Click to collapse
Hmmm, thats a good question. (I'm just hopping in with what I know, so OP feel free to correct me if I'm wrong, which I probably am.)
From what I know, Automator is basically a workflow creation/utilization program. Do most Linux distros come packaged with anything like that, or does one exist?
This might be an alternative:
"GNU Xnee is a suite of programs that can record, replay and distribute user actions under the X11 environment. Think of it as a robot that can imitate the job you just did."
http://askubuntu.com/questions/343/alternative-for-mac-os-x-automator

Phone unusable/help me find the bad app

Well to get a long story short,im not a complete noob in the rooting,optimising,flashing bussiness.
So dont tell me flash this kernel or this stock rom,or this or that.
The problem after hours of searching is a bad app.
I have bought over 500 apps cause i want to support the community.
So,when i restore all my apps,when the phone starts,after the home screen loads AT THE MOMENT WHERE IN TOUCHWIZ OR ADW OR WHATEVER THE APPS ARE FINALLY LOADED
REBOOT,hot reboot most of the times...
I tried everything...startup managers to block everything and i mean everything...
Rescan media root app to stop scanning of sdcard...
Everything,no matter if it froyo,ginger,ics,stock,rooted or WHATEVER.
Of course i can install one app at a time an reboot,to see what happens but that will take ages and also maybe one app 'hit' with another...
So help me find the bad app...
I am no noob but i am no pro either...
So how do i take a logcat? Will that help either way?
Do i have to use adb?
help....
You are kidding right? You have 500 apps installed at the same time? Why on Earth? I think you are lucky the phone even tries to boot...
On to your problem at hand - no one here will be able to help you with the info you provided.
I thought their was like a 30 app limit to android?
Adb is your best bet.
Sent from my HD2 using xda premium
kylew1212 said:
I thought their was like a 30 app limit to android?
Adb is your best bet.
Sent from my HD2 using xda premium
Click to expand...
Click to collapse
Yes,i have so many apps and i want to find which app 'collides' with another or at least which app causes problems.
I used logcat with semaphore kernel and i have taken out some txt files just before the soft reboots...
How adb will help me.
I will find how to install adb but what then?
What command should i use?
And the phoen will be open?In recovery? What?
Please help....
karapoutsoglou said:
Yes,i have so many apps and i want to find which app 'collides' with another or at least which app causes problems.
I used logcat with semaphore kernel and i have taken out some txt files just before the soft reboots...
How adb will help me.
I will find how to install adb but what then?
What command should i use?
And the phoen will be open?In recovery? What?
Please help....
Click to expand...
Click to collapse
Well you certainly need apps 2 SD ... but you probably already have that.
To use adb, download it firstly. Its in the Google developer tools.
Once downloaded open terminal. Alt+ctrl+t. Use CD to change to the directory that contains adb in the platform tools. Once your in the folder containing adb, type "./adb logcat" without the quotes. This is for a computer running Ubuntu Linux also
Sent from my HD2 using xda premium
kylew1212 said:
Well you certainly need apps 2 SD ... but you probably already have that.
To use adb, download it firstly. Its in the Google developer tools.
Once downloaded open terminal. Alt+ctrl+t. Use CD to change to the directory that contains adb in the platform tools. Once your in the folder containing adb, type "./adb logcat" without the quotes. This is for a computer running Ubuntu Linux also
Sent from my HD2 using xda premium
Click to expand...
Click to collapse
thanx for the response.
i have set adb succesfully and i see the logcat on my cmd window running like hell most of the time.
i read that you can use some commands like -w -e etc to narrow the results to important messages? is that correct?
if yes,how you can do that? i mean the full command adb logcat....etc
thanx in advance
karapoutsoglou said:
thanx for the response.
i have set adb succesfully and i see the logcat on my cmd window running like hell most of the time.
i read that you can use some commands like -w -e etc to narrow the results to important messages? is that correct?
if yes,how you can do that? i mean the full command adb logcat....etc
thanx in advance
Click to expand...
Click to collapse
Unfortunately I have very little adb experience...
Maybe try something like the same command you used
"./adb logcat"
I guess going by what you're saying you could try something like
"./adb logcat -w" try that then maybe replace the w with e..
Keep in mind these are just guesses because I do not know for certain
I will research as soon as possible and write a quide for it as this can benefit lots of people
Sent from my HD2 using xda premium
kylew1212 said:
I will research as soon as possible and write a quide for it as this can benefit lots of people
Click to expand...
Click to collapse
thanx.
i had the same in mind.maybe something good can come out of this
Another way would be using ddms - connect your phone in debug and run ddms (it's included in the SDK Tools). It provides an interface to browse your device's logs and filter them according to your needs. I think you'll be able to locate that one which explains why your phone is crashing.
On second thought however - is it possible for you to turn the debug on?
avltree said:
Another way would be using ddms - connect your phone in debug and run ddms (it's included in the SDK Tools). It provides an interface to browse your device's logs and filter them according to your needs. I think you'll be able to locate that one which explains why your phone is crashing.
On second thought however - is it possible for you to turn the debug on?
Click to expand...
Click to collapse
thank you!
great idea,i will test it
yes,i can turn the debug on,because the phone crashes just when all the apps are loaded in the drawer.
it must be a bad app because i used to have many apps since froyo times and no problem.
like 500...and the phone was fast.
i really want to find that bad app and kill it
edit
================================
wow,ddms is a dream! thats what i was looking for!!!
thank you
Sorry for the double post but i thought it needed a single post.
Well,the problem is fixed with the help of you guys!!!
I was getting a hell lot of warnings about watchdog_n and stuff.
I googled it and appeared that a whole bunch of people had the same problem especially with nexus s etc.
They said it was due to some crappy app wanting to auto-sync.
So i did a wipe cache,wipe dalvik cache,fix fc and then when the phone rebooted i disabled the auto-sync.
Guess what,no more loops and soft reboots!!!
I still dont know what app is causing all the problems and propably never will,if you thing that the same apps in my tablet dont cause a thing,but after the auto-sync off the problem is gone.
Good thing though i dont need auto-sync cause its not the best solution...

Categories

Resources