There is a Buildroid "for testing purpose only" VM image available for download which includes Market/Play app and other Google apps. Reading the description it is for testing purpose only, I'm not sure how stable it is. If you use the normal Buildroid VM image, here's how to install Market/Play app to Android Virtual Machine.
Steps:
- Assume you have already setup your Android Virtual Machine. Guide to setup Android in VirtualBox.
- You can get the adb (Android Debug Bridge) utility here.
- Download Google apps here.
- Open VirtualBox.
- Go to Buildroid VM's Settings > Network.
- Under Adapter 1 tab, choose Attached to: NAT.
- Expand Advanced and click Port Forwarding button.
- Click Insert new rule button, input 5555 into Host Port and Guest Port. Click OKs to return to VirtualBox. If you have multiple virtual machines and want to connect to each of them, you could increment the host port for each of the forwarding rules while keeping the same guest port for each device (eg. host port 5556, guest port 5555 on a second virtual machine).
- Now Start Auildroid VM.
- Open Buildroid VM Configuration, you should see the IP address under IP management to confirm it is working. If there is no IP address showing, adb will not be able to connect your Auildroid VM.
- Find the folder where the adb.exe is located. For example: c:\android-sdk-windows/platform-tools
- Press and hold Shift key + right click on the folder which contains adb.exe. Click Open command window here.
- Enter: adb connect localhost
- Copy the .tgz Google apps file to Android with this command:
- Execute the following commands:
- adb shell
- su
- mount -o remount,rw /system
- tar -xvzf /sdcard/buildroid-gapps-ics-20120317-signed.tgz
- mount -o remount,ro /system
- reboot
- Your Android VM will reboot automatically and new Google apps including Play Store app are installed.
adb push buildroid-gapps-ics-20120317-signed.tgz /sdcard/Note: you must specify the directory location of your tgz file. For example, d:\downloads/buildroid-gapps-ics-20120317-signed.tgz as shown in the screenshot below:
Can I use the AVD Manager?
ReplyDeleteI don't think so. The image is in ova file extension which is supported by the programs like VirtualBox and VMware.
ReplyDeletehey...these files dont work on my computer.....i used both VMWARE n VirtualBox...it stucks on booting kernal...i tried all three versions......
ReplyDeleteMy computer specs
Phenom X4
8GB ram
Hi, I suspect it doesn't support AMD processor. I could be wrong. Do you have a Intel computer to test it?
ReplyDeleteadb connected to local host but entering the command
ReplyDeleteadb push buildroid-gapps-ics-20120317-signed.tgz /sdcard/ say error more than one device and emulator
i got the same thing. am going to use something like airdroid to extract apks and upload to dropbox, then insall on vm. you can also use the unstable one, which is ok but does sometimes fail. good luck!
ReplyDeleteUse @Jack Cohen 's suggestion, it is much easier installing apps on vm. Or, if you insist using adb, try the command below to connect vm and let me know how it works for you:
ReplyDeleteadb –s localhost:5555 shell
Thanks, it is very helpful. Quite a lot of people getting "error: more then one device and emulator" message.
ReplyDeleteI got this same error but i had success by killing the adb server using the command "adb kill-server" minus the quotes and repeating the steps without using the connect to host command. i believe it connects automatically when you invoke adb so by using the connect to host first you are creating 2 instances. Thus the more than one device error.
ReplyDeletein the command prompt you can check the connected devices by typing
"adb devices" minus the quotes and hitting enter. Then continue with the above procedure. I'm no expert but this worked for me. i hope it helps.
Thanks cadam. Somehow adb is already connected to Android VM by itself. I don't know what's causing this. So we have to always check the connected devices first with adb devices.
ReplyDeleteI'm stuck on step 15. when i type "tar -xvzf /sdcard/buildroid-gapps-ics-20120317-signed.tgz" i get an error saying there's no such file or directory
ReplyDeleteIt couldn't find the .tgz archive to extract inside your Android sdcard directory. Try again send the .tgz archive with the command below.
ReplyDeleteadb push (You file directory)/buildroid-gapps-ics-20120317-signed.tgz /sdcard/
i dnt have intel.......
ReplyDeletethe right extension for "buildroid-gapps-ics-20120317-signed.tgz" is "gz" and not "tgz"==> to correct so when typing commend
ReplyDeleteI tried several times to push the directory. It succeeded fine but still getting the error - tar not found? HELP!!
ReplyDeleteI repeated all steps and installed the Google apps successfully. Are you sure the .tgz file is in the /sdcard directory?
ReplyDeleteIf you still can't extract it, you can use this Android 4.0.4 image file already bundled with Google apps. This is a easier way.
tgz works fine for me.
ReplyDeletestep 15. when I want to type ´adb shell´ then i get a message ´error: more than one device and emulator´
ReplyDeleteHi rami,
ReplyDeleteI was facing the same problem as you are having. This is my solution.
-Type "adb devices", and if you see list of devices attached like this below:
emulator-5554 device
localhost:5555 device
-Enter "adb kill-server" and connect your Android VM again.
Always perform the "adb devices" to check how many instances are currently connected with adb tool because sometimes adb will connect with more than one emulator/device instances after entering "adb connect localhost" for some reason.
Regards,
Mok
Since the adb is an .exe file, how would this work on a Mac?
ReplyDeleteHi rami,
ReplyDeleteI was facing the same problem as you are having. This is my solution.
-Type "adb devices", and if you see list of devices attached like this below:
emulator-5554 device
localhost:5555 device
-Enter "adb kill-server" and connect your Android VM again.
Always perform the "adb devices" to check how many instances are currently connected with adb tool because sometimes adb will connect with more than one emulator/device instances after entering "adb connect localhost" for some reason.
Regards,
Mok
step 15. when I want to type ´adb shell´ then i get a message ´error: more than one device and emulator´
ReplyDeleteHi Mo, I've uploaded adb for Mac version. You can download it here.
ReplyDeleteThanks for the link there, but i have the same problem as the guy above, tar does not seem to exist on the version i am running, fetched from here: http://vmlite.com/index.php?option=com_content&view=article&id=68:android&catid=17
ReplyDeleteAre there any other extraction programs?
All standard linux commands seem to work fine, but tar is not there.
i get an error that adb is not recognized as an internal or external server what should i do ..???????
ReplyDeleteI get a permission denied
ReplyDeleteroot@android:/ # su
root@android:/ # mount -o remount,rw /system
mount: Permission denied
255|root@android:/ #
I love you for this.
ReplyDeletepush not found
ReplyDeleteI have installed Android X86 on a USB flash drive, it is working fine except Bluetooth is not working and i can not able to install any application from Google Play , it says that your device is not compatible. any idea how can use bluetooth and install APPs.
ReplyDeletetar : not found ...???
ReplyDeleteWhen I tried installing WeChat, it said "Your device isn't compatible with this version."
ReplyDeletethis error happened a lot, and when is saying push adb (file) it says android debug bridge version 1.0.29. what to do?
ReplyDeleteHello, I made it to step 15 when I tried to enter "adb shell" and got a message of "error: device is offline" I noticed in step 10 you mentioned IP configuration, however, I am not sure where I would look for the IP config and address or where I should place it. Please help, Thanks!
ReplyDeleteEasy workaround : Don't use adb shell, install Terminal Emulator app ( Download apk from Github Here :
ReplyDeletehttp://jackpal.github.com/Android-Terminal-Emulator/downloads/Term.apk
)
Launch the app inside the VM, then type the same commands as you would have in the adb shell (e.g. starting with su and then the mount command and then the rest)
Visit this post nice information in this post.this blog help
ReplyDeleteyou in future, I like this post the post is very post. I like it.once again
thanks.!! recording app
moncler
ReplyDeletechristian louboutin
yeezy shoes
michael kors outlet
yeezy
air jordan
kate spade outlet
adidas ultra boost
moncler coat
converse shoes
s6m09r3x21 k9b65z7x77 f6b87g7k70 v0c00f9m89 z7x79s5l12 a5l38h5z96
ReplyDelete