[Q] Using Virtual Box/Ubuntu for Development - Android Software Development

So I'm basically just wondering if there is a way to get ubuntu, running through virtual box, to see a device (an incredible in this case) when its plugged into the "host" machine's usb port, I'm essentially trying to find a better way to get system and boot img's to the virtual machine (the way i was trying now was using adb to pull then emailing them to myself and downloading them in the virtual machine but this takes f...o...r...e....v...e...r... due to slow upload speeds. So in short is using adb possible on a virtual machine?

Try this maybe you can get it to work.
http://techtooltip.wordpress.com/2008/09/22/how-to-use-host-usb-device-from-guest-in-virtual-box/

guod2002 said:
...emailing them to myself and downloading them in the virtual machine...
Click to expand...
Click to collapse
Why not use the shared folder option in virtual box and transfer files that way? That is if elivaldez84's link doesn't work.

xenspidey said:
Why not use the shared folder option in virtual box and transfer files that way? That is if elivaldez84's link doesn't work.
Click to expand...
Click to collapse
Yeah this should work also. you can access some of your folders from windows that you specify in the Virtual Box but you need to install the guest add-ons.
http://forums.virtualbox.org/viewtopic.php?f=3&t=15868
this link should tell you how to set that up.

It works just fine for me.
Where are you getting stuck?
Sent from my T-Mobile G2 using XDA App

I have Eclipse and the Android SDK installed on Ubuntu 10.10 running on Virtualbox. It works well but the emulator is quite a bit slower (for me at least) on a dual core Opteron with 1GB of memory allocated to the VM. Perhaps I need a beefier machine.

Related

[fix] for those who have a MAC and wish to use odin to flash

okay for those who have a mac and wish to flash ROMs on there phone you can get a 30 day trial copy of vmware fusion 3.0 and download windows 7 or any windows
if you PM me ill get you a 30 day "evaluation" copy of windows 7 ultimate
if you have trouble using or installing vmware there are many tutorials on youtube
where there's a problem there is a solution
For an android user you don't keep up with the open source world. Sun virtual box is free.
Sent from my SAMSUNG-SGH-I897 using Tapatalk
Dani897 said:
For an android user you don't keep up with the open source world. Sun virtual box is free.
Sent from my SAMSUNG-SGH-I897 using Tapatalk
Click to expand...
Click to collapse
Not to mention it works GREAT...
Flashing in Virtualbox?
DemonWav said:
Not to mention it works GREAT...
Click to expand...
Click to collapse
Have you managed to use ODIN3 in VirtualBox? I haven't been able to get the usb to recognize the phone. Any tips?
Thanks
I've tried in the past to get VMWare to work with odin. It doesn't recognize the Phone in Download mode. How did the OP make it work?
I couldn't get it to work with any of the virtual products/environment. Finally set up Boot Camp partition and it worked right out of the box.
I use virtual box in linux mint, oddly it mounts the phone in downloads mode, but not while the phone is on, I think I got it to sync to kies in virtual box once but can't remember what the trick to it was.
edit: debugging mode prevents virtual box from mounting it, so kies works fine, i haven't tried mass storage mode.
I had a thread with the how to bit it died quickly.
There is a list of devices that will mount to the virtual machine, you can't add the device with the virtual machine running. So you need to put the phone in download mode(it looks different to the computer in download mode so out must be added to the list in that mode), plug it in, open virtual box, open settings, devices, usb, and add the phone to the list. I believe it calls it gadget serial something or other.
Then pull the battery and unplug data cable, start the virtual machine, start odin, put phone in download mode and plug it in, as soon as you do that at the top of the window to the virtual machine you may need top select devices usb and tick the phone.
You may need to pull the battery one more time and enter download mode again, this time the virtual machine will mount the phone automatically, and will remember it till you untick it.
Sent from my SAMSUNG-SGH-I897 using Tapatalk
I'm currently trying to do this in VirtualBox where the host is 7 and the guest is Ubuntu. But I want to get into debugging mode so I can use ADB shell.
I want to extract some of the apostle from the Samsung Tab and I heard this was the only way so ill be following this thread and ill post is I succeed.
Sent from my SAMSUNG-SGH-I897 using XDA App
I tried all VM's my computer is just too slow (2Ghz 2GB Ram MacBook), my fav is just using bootcamp to boot into win 7 32bit.

[INFO] File transfer on OSX and Linux

I know some people have had issues with transferring files to OSX or Linux distros with their tablet, this is because only windows has MTP drivers by default which honeycomb now uses instead of USB Mass Storage protocol. This is so the tablet can use the internal storage even while being mounted on the PC.
Android file transfer for OSX:
link
This will give you a simple file transfer interface for OSX, just run the program with the tablet connected by USB.
gMTP for Ubuntu/Linux:
link
if gMTP doesn't work for you or if you prefer having storage show up in nautilus:
link
gMTP is actually made for managing music on PMP devices but it will let you manage files as well.
Hope that helps.
Wow! I just found Android file transfer minutes before you posted this. I wish there was a way to see the removable media folder.
Sent from my HTC Eva 4G using Tapatalk
Jocelyn said:
Wow! I just found Android file transfer minutes before you posted this. I wish there was a way to see the removable media folder.
Sent from my HTC Eva 4G using Tapatalk
Click to expand...
Click to collapse
I've actually posted it in several topics, so I got sick of reposting it and made this thread. Hopefully it gets stickied or referenced in a sticky so people will be able to easily find this info since it's pretty critical.
bump for anyone wondering.1
Jocelyn said:
Wow! I just found Android file transfer minutes before you posted this. I wish there was a way to see the removable media folder.
Sent from my HTC Eva 4G using Tapatalk
Click to expand...
Click to collapse
You can see the removable card, it's in the MicroSD folder WITHIN the Device Storage root folder.
seshmaru said:
I know some people have had issues with transferring files to OSX or Linux distros with their tablet, this is because only windows has MTP drivers by default which honeycomb now uses instead of USB Mass Storage protocol. This is so the tablet can use the internal storage even while being mounted on the PC.
Android file transfer for OSX:
link
This will give you a simple file transfer interface for OSX, just run the program with the tablet connected by USB.
gMTP for Ubuntu/Linux:
link
gMTP is actually made for managing music on PMP devices but it will let you manage files as well.
Hope that helps.
Click to expand...
Click to collapse
Anything special need to be done, or extra packages need to be installed to get gMTP working in ubuntu Natty. Installed via cli and then plugged in my device and nothing. is there some sort of trigger on the device? Any help would be greatly appreciated.
Matchstick said:
You can see the removable card, it's in the MicroSD folder WITHIN the Device Storage root folder.
Click to expand...
Click to collapse
But the default mnt point is /mnt/sdcard and I can't get to /mnt Do I need to be rooted to get to access or is there anyway to collapse to /mnt so I can get into mnt/recovery???
rockcrawler said:
Anything special need to be done, or extra packages need to be installed to get gMTP working in ubuntu Natty. Installed via cli and then plugged in my device and nothing. is there some sort of trigger on the device? Any help would be greatly appreciated.
Click to expand...
Click to collapse
Bump..... anyone?
Sent from my CM7 Supersonic
rockcrawler said:
Bump..... anyone?
Sent from my CM7 Supersonic
Click to expand...
Click to collapse
Mine instantly worked on 10.10, so I wouldn't know sorry.
EDIT: I did find this however http://www.xoomforums.com/forum/mot...ussion/691-mount-internal-storage-ubuntu.html
https://launchpad.net/ubuntu/natty/i386/gmtp/0.9-1 this is the one for natty i believe.
edit: nothing comes up when i plug it in. i get no devices found
I'm not having much luck with this either on natty.
I rooted and added custom recovery with mine, and now I can't get it to work even with adb. Tablet works fine, I just can't get to the internal memory from my pc anymore.
Does the vendor id change after adding cmw or rooting?
What is the correct vendor id? I used 091E
ogg1e said:
I'm not having much luck with this either on natty.
I rooted and added custom recovery with mine, and now I can't get it to work even with adb. Tablet works fine, I just can't get to the internal memory from my pc anymore.
Does the vendor id change after adding cmw or rooting?
What is the correct vendor id? I used 091E
Click to expand...
Click to collapse
If you run lsusb, you should see this line:
Bus 002 Device 005: ID 0b05:4e1f ASUSTek Computer, Inc.
The vendorid is 0b05.
I am trying the method using mtpfs (Nautilus) and I'm getting this error when trying to create a directory on the Transformer:
Code:
Error creating directory: Software caused connection abort
And this error when copy a file over to the /sdcard/Pictures folder:
Code:
Error stating file '/media/Tablet/Pictures': Transport endpoint is not connected
Any ideas?
EDIT: I'm rooted with blob v5.
GMTP Lucid 64
After trying mtpfs with no luck, I got gMTP to work with Ubuntu Lucid AMD 64 bit. I think the trick is you need to compile it yourself.

Connect to PC via USB

Yesterday I was able to connect my Tab to my Win XP PC using the USB cable. I was able to transfer files without difficulty. But, some how I must have changed a setting on the Tab and the Tab is no longer recognized by any of my PC's. I think it is a Sync setting that was changed.
Now, when I connect using the USB cable, the PC says " Found New Hardware MTP"
What settiing do I need to change to get the PC to recognize the Tab?
Check under application > development > usb debugging.
Thanks, I found a USB driver on the Acer site. That seems to have solved the problem. But, that driver was not needed yesteray, and I don't know what "MTP" means?
jostarr said:
Thanks, I found a USB driver on the Acer site. That seems to have solved the problem. But, that driver was not needed yesteray, and I don't know what "MTP" means?
Click to expand...
Click to collapse
Even my Windows 7 boxes do not recognize the a500 without installing the USB driver from the Acer site. Guess you somehow got lucky
Mine always saw the internal 16gb on my Win7 machine. Before the latest updates, I was able to connect with my Win7 PC with no problem and even go to STORAGES and see my 32gb card. It no longer works now. All I see now is SD which is empty.
Which means I cannot copy anything directly to the Micro SD (external_sd). It worked before the last couple of updates. I'm currently running 4.010.10. Now I have to copy it to the 16 internal from the PC and then use the tablet to copy it to the external_sd.
Acer giveth and taketh away.... bummer.
Edit: And yes ... my debugging is on. Always has been. Stock kernel too.
Anyone figure this out yet?
I can't connect on my Win7-64 PC at all.
My 32 bit laptop will connect, but not to SD card, only internal SD.
Try turning development off when using usb go pc which no need for driver, if development is on then you need driver installed.
Sent from my SPH-D700 using XDA App
i can't get my tab to connect to my mac , ive tried both usb ports, ive tried ticking usb-debugging on and off with no luck. Anyone know whats wrong?
If you are having usb issues go to acers web site and go to the drivers and download section for the iconia a500. make sure you look under the honeycomb 3.0 downloads and not the 3.1. as the drivers are not listed under 3.1. download the drivers to your pc (not your tablet)and install. it is an 89 megabyte file so I am sure it has the drivers for everyone in it.
Alos if you are ojn honeycomb 3.0 make sure you get the wi-fi unpate as well while you are there it fixes lots of wi-fi problems.
Remember to thanks if I have helped you.
Thanks for the quick reply in the drivers package There is none for mac and on my fascinate it connects without problem and i never instaled any drivers
Chuban7, Hi well I am not a mac person but I did look around the net a bit and from what I see there are not usb drivers persay for android for mac. but what i have found is there are several companies who mac sync software that connects android to mac. One site to check out is http://www.salling.com/MediaSync/mac/ they have free versions of thier software to use. Give it a try. but there are many other venders of mac to android sync software. seems only way from what I read cant find usb drivers anywhere for ya for any android device.
You can also look through the android market for a free program called"auto mount your sd card" supose to work with mac but I dont know as I dont have a mac
MY personal choice is a program also free on market called "software data cable" again suppose to work with macs and pc's it is completely wireless so no usb cable needed to transfere files so in theory then no usb drivers needed either.
You can also use a program called dropbox allso free it works great just drop files into the dropbox folder and then once they upload go open dropbox on your android and bingo there ya go thier is your files. works in reverse too for android to computer.
Only thing I can figure is that apple hates android and between them and microsoft are tring to run android into the ground so it would stand to reason if you hated a compeating vendor why would you make it easy for them to run thier devices on your software. There is a reason apples Ipod/pad stuff works and others dont apple dont want you to buy android lol.
Just my little conspericy theory stuff good luck hope any of this helps you.
I have the same issue with Linux so it's not a Mac issue. I can plug my Android phone in and it mounts and show up as a USB device that I can then take a file manager and copy/paste/delete files. I use this all the time to transfer files to my phones sd card. Neither the A100 or the A500 will mount as a drive on my Linux machine. I like them but that is pretty much a deal breaker to me.
gramps50 said:
I have the same issue with Linux so it's not a Mac issue. I can plug my Android phone in and it mounts and show up as a USB device that I can then take a file manager and copy/paste/delete files. I use this all the time to transfer files to my phones sd card. Neither the A100 or the A500 will mount as a drive on my Linux machine. I like them but that is pretty much a deal breaker to me.
Click to expand...
Click to collapse
Somehow I feel very doubtful that your Linux OS cannot be set up to mount the a500 as a USB storage device. My Linux skills are rather rusty and outdated, however - so I could be wrong. Can you emulate a stripped down version of windows from your Linux system to get around this?
I can vouch for using software data cable (free app from AM).
Works perfectly with my iMac and should do with PC, since it essentially opens an FTP port on the Iconia (port 8888 by default) that can be accessed by any FTP client on the computer (I use Cyberduck on Mac, FireFTP plugin for Firefox works on all OS's).
If you are rooted, check root access in the app settings to get into the root, and find /mnt/external_SD for the add-on card. It is probably smartest not to leave the root access on all of the time unless you really need it as there is abundant opportunity to create havoc accidentally
Kevin
Sent from my A500 using xda premium
entropy.of.avarice said:
Somehow I feel very doubtful that your Linux OS cannot be set up to mount the a500 as a USB storage device. My Linux skills are rather rusty and outdated, however - so I could be wrong. Can you emulate a stripped down version of windows from your Linux system to get around this?
Click to expand...
Click to collapse
I didn't say it couldn't be done, I just think that it's strange and wrong to make an Android device dependent on having Windows. Yes I suppose I could install Windows in a Vm but I won't.
Using Google (pun intended) I found a fairly simple solution. It's not plug-n-play but is very doable even by an non techie.
There are also some ways of access the Tab file system using a browser and Wifi
kevindt said:
I can vouch for using software data cable (free app from AM).
Works perfectly with my iMac and should do with PC, since it essentially opens an FTP port on the Iconia (port 8888 by default) that can be accessed by any FTP client on the computer (I use Cyberduck on Mac, FireFTP plugin for Firefox works on all OS's).
Sent from my A500 using xda premium
Click to expand...
Click to collapse
Nice app thanks, didn't show up when searching for FTP servers. ;(
The only minor issue I see is that at 1st glance it appears that you don't have access to the external_sd card unless Rooted.
Did work better than any of the other FTP servers I have tried.

Linux and Firmware Flashing

Is there anyone who has the VZW retail S5 and runs Linux Mint? I switched to Linux a week or so ago and can't figure out how to flash firmware or tar files in Linux. I tried VirtualBox with Odin and Kies but neither detects the phone. Heimdall and JOdin3 don't seem to be working either. Besides using a seperate computer with Windows is there any other solution that works? Please let me know, I would like to make a full departure from Windows. I've been searching for a solution but no luck yet.....
Hmmm, no Linux users here willing to help?
http://forum.xda-developers.com/showthread.php?t=755265
First off DO NOT UNDER ANY CIRCUMSTANCES USE ODIN FROM A VM. You have a chance of breaking stuff even if you do somehow manage to get it to detect your phone, your only option is heimdall or jodin, and as far as i can tell jodin is just a graphical frontend for heimdall, but heimdall has its own gtk anyway. The main issue with flashing using either is they both require a PIT file which you cant get afaik, so you will need to use comouter with windows on it or install Windows on another partition.
Rakuu said:
First off DO NOT UNDER ANY CIRCUMSTANCES USE ODIN FROM A VM. You have a chance of breaking stuff even if you do somehow manage to get it to detect your phone, your only option is heimdall or jodin, and as far as i can tell jodin is just a graphical frontend for heimdall, but heimdall has its own gtk anyway. The main issue with flashing using either is they both require a PIT file which you cant get afaik, so you will need to use comouter with windows on it or install Windows on another partition.
Click to expand...
Click to collapse
Thanks for the reply. So it looks like I will just use the wifes laptop for Odin. I did get Jodin to detect the phone but sadly there is a problem with Heimdall handeling the large tar files that Samsung uses and the dev doesn't have a fix. I could push the seperate files to the proper partitions via ADB but that's way too risky for me. It was worth asking anyways.
pwhitersxs said:
http://forum.xda-developers.com/showthread.php?t=755265
Click to expand...
Click to collapse
Thanks but I already tried that...
Misterxtc said:
Is there anyone who has the VZW retail S5 and runs Linux Mint? I switched to Linux a week or so ago and can't figure out how to flash firmware or tar files in Linux. I tried VirtualBox with Odin and Kies but neither detects the phone. Heimdall and JOdin3 don't seem to be working either. Besides using a seperate computer with Windows is there any other solution that works? Please let me know, I would like to make a full departure from Windows. I've been searching for a solution but no luck yet.....
Click to expand...
Click to collapse
I'm actually running the opposite setup: Win 8.1 Pro host with Linux Mint guest. I would actually recommend this sort of setup. If you've got enough RAM and powerful enough CPU, you should be alright. I've got a Core i5 (2core 4 thread) with 6gb RAM. I've dedicated 3gb RAM and 2 vCPUs (virtual CPUs) to the guest OS. Also, make a shared directory on the Windows host anywhere (mine's in c:\vm\{shared_folder}\) and share it. Then on the guest OS browse the network/host os name/shared folder. This way you can move files back and forth from host to guest.
EDIT: and make sure the network settings for the VM is set to bridged, not NAT. This will place the guest VM on your network just like it were a physical machine.
MrHyde03 said:
I'm actually running the opposite setup: Win 8.1 Pro host with Linux Mint guest. I would actually recommend this sort of setup. If you've got enough RAM and powerful enough CPU, you should be alright. I've got a Core i5 (2core 4 thread) with 6gb RAM. I've dedicated 3gb RAM and 2 vCPUs (virtual CPUs) to the guest OS. Also, make a shared directory on the Windows host anywhere (mine's in c:\vm\{shared_folder}\) and share it. Then on the guest OS browse the network/host os name/shared folder. This way you can move files back and forth from host to guest.
EDIT: and make sure the network settings for the VM is set to bridged, not NAT. This will place the guest VM on your network just like it were a physical machine.
Click to expand...
Click to collapse
I have this same setup. Works great.
As far as vb not recognizing your phone, did you go to devices->usb in vb to check mark it to work in the windows guest? Install the drivers in windows? I'm sure you tried this already but have to ask.

Mofo Root via VBox (?)

I installed everything. My problem, how do I get the VBox to recognize my phone? I click the usb icon in the lower right hand corner and choose motorola xt 1254 but it immediately drops and android file transfer in my mac OsX opens up. Or is there other way to get that link?
gqskrub said:
I installed everything. My problem, how do I get the VBox to recognize my phone? I click the usb icon in the lower right hand corner and choose motorola xt 1254 but it immediately drops and android file transfer in my mac OsX opens up. Or is there other way to get that link?
Click to expand...
Click to collapse
If you have a mac use boot camp. I have Vbox with Ubuntu on it. I try to use mofo and it fails after a few percent. Your best bet is not a virtual environment.
-Edit:
I am having better luck now in my virtual environment using mofo 0.0.2 vs the 0.0.1. I would remove android file transfer and try again. Also set up virtual box to connect to Motorola Inc. Fastboot quark s [0100]. That way when you have your virtual machine open it will automatically connect fastboot to the virtual machine. Id really recommend linux as a virtual image. Don't really have to do anything.
If you need help PM me.

Categories

Resources