[Hero CDMA General] thatguythatdid:
ADB COMMANDS

This is just a simple guide on how to open up and run adb commands from your windows based operating system.

Open up run by simultaneously pressing the windows flag key and r.

In the window that pops up type cmd. Now command prompt is open

type the commands each followed by the enter key: cd\

cd androidsdk/tools

Now your in your in your androidsdk/tools folder. You can do several things in here but i'll start with some basics each

of the following commands is to be followed by the enter key

adb devices (this lets you know what devices are attached to the computer in usbdebugging)

How to get your logcat (this will put your logcat in txt format in your sdk tools folder)

adb logcat > logcat.txt

copy an app from your phone to your computer

adb pull /system/app/whatever.apk C:\ateam (replace whatever.apk with the app your pulling also replace ateam with the

folder your placing the app in

Install an app from your computer on your phone

adb install whatever.apk (put an apk in your sdk tools and replace"whatever" with the name of the apk and it will install it)

also you can add either -r or -s to reinstall or install on the sdcard for instance: adb install -r Rosie.apk

this command will reinstall the new rosie from your tools file and still keep the same user data as before.

-r for reinstall

-s for sdcard (gotta test this)

Push an app from your computer to your phones filesystem (in some cases also installs)

adb remount

adb push whatever.apk /system/app (put an apk in your sdk tools and replace "whatever" with the name of the apk and this

will push it to your system app folder. You can change the destination as well for example: You want to push Launcher2.apk

to your data/app folder: adb remount

adb push Launcher2.apk /data/app )

Remove an app from your phone

adb remount

adb shell

cd /system/app (this will change your disk to system/app you may also change to another folder as well)

ls -a ( a list will show of all the apps inside your system app folder)

rm whatever.* (replace the whatever.* with the name of a apk you want to remove )

Flash a recovery image to your phone

First pace the recovery image in your sdcard root and rename it to recovery (so the full name will now be recovery.img)

adb shell

flash_image recovery /sdcard/recovery.img (wait till this# sign shows up again before you type the next command)

reboot recovery

get your current battery level

adb shell cat /sys/class/power_supply/battery/capacity

get your current rom build

adb shell getprop ro.build.description

Reboot into fastboot ruu

adb shell reboot oem-78

How to run the ruu via adb

First thing first start the ruu give it permissions and so fourth

When it gets to the part where it says "Follow the instructons below..."

Move the ruu window out of the way and start your task manager

Go to processes right click on ARUWizard.exe and choose open file location

A new window will open scroll till you see ROM.zip

Copy and paste Rom.zip to your desktop

Once you have copied it to your desktop shutdown the ruu and task manager

Click start menu then click computer

A window will open up click the c drive

now click create new folder and name it test

put the rom.zip in the test folder

plug your phone in and open command prompt and type

adb devices
adb shell reboot oem-78
fastboot devices
fastboot getvar boot-mode
fastboot erase cache
fastboot flashzip C:\test\rom.zip
fastboot devices
fastboot getvar boot-mode
fastboot reboot