~/2013/07/29/android-push-file-to-sdcard-with-adb.md
Android: Push file to sdcard with adb
--- author: Tom Lasswell date: updated: read: 1 min in: [engineering] ---
I ran into the issue where Windows was not mounting the Phone’s SD card within windows, so I had to revert back to using adb. This method requires that you’ve download the drivers for your phone, along with the android sdk (http://developer.android.com/sdk/index.html). The SDK will download and you extract to any location of your choosing. adb is located in {directory}\sdk\platform-tools\
In case you have an issue with getting your remote device to show up for /sdcard/ the following commands will help you out:
adb devices
adb push filename.zip /sdcard/
Example:
D:\and\sdk\platform-tools\adb devices
List of devices attached
9132ce46b device
D:\and\sdk\platform-tools\adb push gapps-jb-20130301-signed.zip /sdcard/
3280 KB/s (95417279 bytes in 28.403s)
To install a new .apk run the following (such as installing a new beta software, etc):
D:\and\sdk\platform-tools\adb<filename.apk>
or to force the install
D:\and\sdk\platform-tools\adb -r <filename.apk>