Sunday, November 8, 2015

How to transfer file to Android-x86 Lollipop VirtualBox with Android Debug Bridge (adb)

After set up the Android-x86 Lollipop on VirtualBox, the next thing that probably comes into your mind is how to transfer a file from your computer to the Android virtual machine, and vice versa. Using the Android Debug Bridge (adb) tool lets you transfer file between computer and VM.

Firstly, download and install the lightweight adb. The standalone adb is less than 1 MB in size which save you time downloading around 150 MB size of the Android SDK Tools.

Open VirtualBox, go to Settings > Network. Under Adapter 1, click Advanced and then Port Forwarding. Create a new rule with Host Port: 5555 and Guest Port: 5555. Click OK to save.

Start Android VM, then open ADB. Enter the follow command:
adb connect localhost
Now ADB has connected the Android VM. You may transfer file using the adb push pull commands.

1) Transfer file from Windows PC to Android VM:
On adb enter command line:
adb push <file location> <file destination>
For example, I want to transfer picture.jpg located in D drive to Android. The command will be adb push D:\picture.jpg /sdcard/

2) Transfer file from Android VM to Windows PC:
On adb enter command line:
adb pull <file location> <file destination>
For example, I want to transfer a wallpaper downloaded with Zedge Android app to my computer's D drive. The command will be adb pull /sdcard/zedge/wallpaper/Lamborghini-wallpaper-10466071.jgp D:\

NOTE: Use file manager to find the folder path of the file.


  1. Okay so I get it how to work with Windows PC... but what if I want to transfer my files from Mack and vice versa. I'm guessing it won't work with similar steps right?. Can you share that as well? thank you for your hard work^^

  2. It’s very excellent information and more real facts to provided that post.Thank you for sharing this information. Brave Fighter Apk Unlimited Gems