Home > Tricks & Tips > Push files/directories into emulator/device

Push files/directories into emulator/device

In order to put files or directories into emulator/device, you need to issue command “push” from adb with following syntax:

adb push [local_path] [remote_device_path]

Here a sample if I want to put a file named ‘data.txt‘ into my folder in device: ‘/data/data/pete.android.study‘, I issue this command

adb push C:\data.txt /data/data/pete.android.study

To check whether the file pushed into devices succeeded or not, I will try:

ls /data/data/pete.android.study

If file ‘data.txt‘ appears, then it was pushed inside successfully.

Hope you like it!

Pete Houston

Categories: Tricks & Tips Tags: , , , , ,
  1. May 18, 2014 at 9:49 pm

    Just wish to say your article is as amazing. The clarity in your post is simply cool and i can assume you are an expert on this subject.
    Well with your permission let me to grab your RSS feed to keep up to date with forthcoming
    post. Thanks a million and please carry on the enjoyable work.

  1. No trackbacks yet.

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

%d bloggers like this: