Copy Files from computer to android device using adb

You can use adb to transfer the files from the computer to your device in cases where you are not able to start the mobile in file transfer mode.

To copy a file from the computer to an android device connected via usb, use this:
adb push "/path/to/local/file" "/mnt/sdcard/path/to/file"

This will copy the local file to the device in the specified location.  Also using adb shell you can create directories or you can also execute some of the shell commands. Once adb is started to launch the adb shell use command 

adb shell

No comments:

Post a Comment

Golang: Http POST Request with JSON Body example

Go standard library comes with "net/http" package which has excellent support for HTTP Client and Server.   In order to post JSON ...