Correct, source is assumed to be on the computer. With ADB Shell, you're pushing files from the computer (where adb is running) to the phone. If you were to pull, then you'd be copying files
from the phone
to the computer.
I added the path to the adb.exe file to my system PATH variable so that I could be in any directory and run adb commands - makes pushing and pulling a
lot easier. I open a command prompt, go to the directory where the file I want to push is located / where I want to pull the file to, and then I don't have to worry about local paths - just the path on the phone.
if you haven't added the path to adb.exe to at least your user PATH variable, then you'll have ot use full paths if you run adb by going into the android SDK folders to run it. IOW, is adb is located at
D:\Downloads\android-sdk_r08-windows\android-sdk-windows\platform-tools and you go to that folder and then run
and the
filename.apk is located at, say,
C:\My Documents then you'll need to use the full path to the file in order to push it to the phone:
Code:
push C:/My Documents/filename.apk /System/{location}
See
Android Debug Bridge | Android Developers for more info
Also, you'll need to make sure to run this just after su:
Code:
mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system
aka the "mount ..." statement
Finally, I
think you need to chmod the file to 644, but that
may not always be the case. I haven't done it in a while and cannot find the step by step guide I used I thought it was here in the forums, but....*shrug*