Categories: Uncategorized

Android: Push file to sdcard with adb

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>
TomLasswell

Share
Published by
TomLasswell

Recent Posts

Autotask: PowerShell: Enable Client Portal for all users

This is a quick one, it's been forever since I've posted here. After moving back…

2 years ago

PowerShell :: Get Exchange Mailboxes Over XXGB

Simple command turned crazy. I ended up coming up with this due to the fact…

4 years ago

PowerShell: ConnectWise Documents API, Uploading a document or attachment to a ticket

Phew, this one took a minute to figure out. ConnectWise has a form based documents…

6 years ago

PowerShell: ConnectWise REST API Query Contacts by Email Address

I've found myself at a new job, recreating many of the processes that I spent…

6 years ago

First post in a long time — changing hosting providers

Wow, it's been a while since I've done a real post on this site. I've…

7 years ago

Powershell: AutoTask – Get Picklist Values

When using AutoTask's API it's required to lookup a various amount of picklist values that…

10 years ago