!! UPDATE !!

Well I have not played around with the android SDK for some time but I was the other day and it seems that “adb tool” has moved in the sdk. :( So a few of the step here will be a little bit off.

So please use this as nothing more than a learning tool!

If you look in side the the tool folder in the SDK there is a file called adb_has_moved.txt is it says this,

The adb tool has moved to platform-tools/

If you don't see this directory in your SDK, launch the SDK and AVD Manager (execute the android tool) and install "Android SDK Platform-tools"

Please also update your PATH environment variable to include the platform-tools/ directory, so you can execute adb from any location."

But the main steps are just the same, If I get time and a reason I will make an update to this post. 
If you have any questions please feel free to ask.



For those out there that are just starting out I think it is a good idea to go over some of the basics first. If you are in the know about what is going on and what you need you can skip this. I am working with a HTC Hero but things should not change to much for other Android devices.

Also for this I will be updating the camera on my phone. So I will be pushing the camera.apk. You will be able to use these steps for any thing.

Q: What is pushing a file?
A: Think of there being two parts of memory in your phone. 1 bing the SD card and the other being the internal memory. Moving things to the SD card as easy but moving files to the main system memory is not as easy. That is where pushing files comes in to play. It is using command prompt (CMD) to tell your computer to take a files from your computer and move it to your phones main memory.

Q: Why would I do it this way?
A: Well there are a few ways to get this done but this seems to be the best way to move just the files you want and nothing else. Say you have just one image you want to change and dont really want to mess with anything else. Well with this you are able to move over just that one image and not have to worry with making an update zip.

Q: Can I harm my phone?
A: Yes! Anytime you are messing with the main files there is a chance that things can go wrong and I would say do a back up of your phone files.

Now that I hope I have answered some questions lets get to what you need to do first.

First you will need to make sure that you have the most current version of the
Android SDK installed on to your PC. You can get that HERE and to make things easy install to the root of your hard drive.

Where To Install Android SDK On A Windows PC

Next you will need to make sure your device is rooted. Now this I really cant be much help with seeing that there are so many android devices out and I can not know what you have. But a good place to start is by going over to XDA and searching around.
Link To XDA
XDA is a forum with a lot of great devs that put a lot of time in to making our Android devices so great!

Now to what you will need.
1)Android device
2)Cable to plug the device in to your PC
3)File you wish to push

Step 1:
Plug your device in to Your PC using the cable.
Make sure you have any sync programs turned off and do not mount your sd card.

Step 2:
Open command Prompt on your PC.
For Vista and Windows 7 just open the start menu and type in CMD in the search area and press enter.

You should get something that looks like this.
What CMD Command Promt Looks Like

Step 3:
Type in to the Command Prompt

cd C:\android-sdk-windows\tools

Step 4:
Type in to the Command Prompt

adb remount

Now In step 3 and 4 you are just telling Command Prompt to change directory (cd = change directory) and start running an sdk tool.

Step 5:
Type in to the Command Prompt

adb push C:\Users\Chaos67731\Desktop\Camera.apk /system/app/

Now how this works, It is telling the SDK tool to take the file that is on your PC (C:\Users\Chaos67731\Desktop\Camera.apk) and move it to your phone (/system/app/)

You should end up with something like this.
You should end up with something like this

Step 6:
Unplug your phone and reboot it.
Well you will not need to reboot all the time it is just good practice to do so. Just to make sure it reloads all the files that have changed.

Here is all the Code that will be typed in.

adb remount
adb shell
adb push [Path To File You Want To Push] [Path To Where You Want To Push The File]

You can also pull a file by changing

adb push [Path To File You Want To Push] [Path To Where You Want To Push The File]


adb pull

Now if you just want to see something cool type in

cd C:\android-sdk-windows\tools
adb remount
adb shell

This will run what is called “logcat” and this is just showing you what is going on with your phone. So turn it on and watch things go as you start programs.

If you have any questions feel free to ask and hope this helps out!