Android: upload files to emulator

Posted: October 6, 2015 in Android

Below command will upload a local images directory to emulator SD Card.

$adb -s target-device remount
$adb -s target-device push "C:\images" /storage/sdcard/Pictures

reboot your emulator.

Note: In Android 6 emulators, the real sdcard directory is some random named folder such as /storage/1122-223x. You can use either shell or Android Device Monitor to find the exact name.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s