In this article, we will see how to copy files from computers on Android using ADB. The copy of the file by ADB can come in handy when you are in a difficult situation. In this guide, we will explain how you can copy files from your computer to your Android device via ADB Push.

Whenever someone wants to copy files from/to their computer to/from their Android device, they can simply connect their device to the computer via a USB cable and use the MTP mode. It is just a touch away and opens the memory of your Android smartphone in your computer. So easy. You can even copy huge numbers/files in minutes, effortlessly.

But what if we find ourselves in a situation where it is not possible to access the MTP mode but is it necessary to copy a file from the PC to Android? You can do this simply by using the Push command of ADB.

How to copy files from computers to Android using ADB

You are flashing custom ROMs on your Android device and one of the steps requires you to completely clean the device before proceeding. In this case, you will be left with a blank device without a zip file ROM on your device to view it. This is where ADB comes into play.

You can simply send a file from your computer to your Android smartphone using a simple ADB command. Obviously, your Android device must be connected to your computer via a USB cable.

Requirements

The only requirement is that you need a proper ADB configuration on your computer.

Using ADB Push to copy a file on Android

  • Connect your Android device to your PC via the USB cable.
  • Go to the folder where ADB and Fastboot are installed on your PC.
  • Now, hold down Shift + right click> Open Command window here. In the most recent Windows version it will be called PowershellYou could use this too.
  • Run the following ADB command to copy a file from your computer to Android:
adb push <local file> <remote location>

<local file>: full path to the local file on your computer. For example: C:\ThemeFoxx\TestFile.txt
<remote position>– Path on Android where you want to place the file. For example: /sdcard/TFX/

  • Done!

Wait until the file is completely transferred to your device.

One thing to note here is that you can even create a new directory for the destination file and copy the file there.

For example, let’s say you want to put the file in the /sdcard/TFX folder on your Android but it does not exist at the moment. It is not necessary to create the folder separately. You can simply go ahead and mention that path and the folder will automatically be created for you!

Tip: Note that if you use the method above while your phone is on, you need to enable the USB debugging option on your device. But when you’re on TWRP, you can just go ahead and use this method without any changes to your Android device.

This is the easiest way to copy files from computers on Android using ADB.