[Resolved] [Q] How to connect android device to Oracle VM? - General Questions and Answers

Hi,
After having had a gazillion of frustrations while attempting to add Ubuntu 12.04 to my PC, I had enough of the endless chain of problems to reach the point of installing the requirements for ADT.
So I thought I might be able to go with a virtual machine. I have my environment (Ubuntu 12.04, ADT and its requirements) installed and working on Oracle VM (with extensions installed).
Whatever I try with the USB settings, I'm unable to get either my Nexus 7 or my Asus TF300T to work on the VM.
I tried adding a USB filter with the correct IDs, but that didn't add either device to my VM.
I ran out of ideas to try. I really want to learn more about developing for Android, but it seems I can't get the devices to work.

Rhian said:
Hi,
After having had a gazillion of frustrations while attempting to add Ubuntu 12.04 to my PC, I had enough of the endless chain of problems to reach the point of installing the requirements for ADT.
So I thought I might be able to go with a virtual machine. I have my environment (Ubuntu 12.04, ADT and its requirements) installed and working on Oracle VM (with extensions installed).
Whatever I try with the USB settings, I'm unable to get either my Nexus 7 or my Asus TF300T to work on the VM.
I tried adding a USB filter with the correct IDs, but that didn't add either device to my VM.
I ran out of ideas to try. I really want to learn more about developing for Android, but it seems I can't get the devices to work.
Click to expand...
Click to collapse
Well i had this problem before search on google how to add adb device to vm and you will find a guide frogot wich site i will do sone search and report back
Sent from my GT-I9500 using xda premium

S.a.M.e.R_d said:
how to add adb device to vm and you will find a guide
Click to expand...
Click to collapse
Thanks, with some trial and error I got it working.
In short:
On the host run adb devices to start the deamon, it listens on port 5037, so with FreeSSHd on my windows host I could enable an ssh connection from my VM client using:
autossh -M5037 -N -f -R 5037:localhost:5037 10.0.2.2
Then my adb devices lists my hosted device.
On to the next challenges...

Related

VMWare image of the source building environment

Hi all, I'm sorry if this has already been asked, i looked for it using Google and the search forum option and while i found this http://forum.xda-developers.com/showthread.php?t=396782&page=145, (using this: http://www.google.com/cse?cx=000825...ource&sa=Search&cof=FORID:0&ie=utf-8&oe=utf-8) it didnt really help me because it's not exactly what i'm looking for
I want to be able to change some bits of code on the os and see how that affects the device (for example, i'd like to change the order of options in the menus and stuff like that) just to get to know the development environment better.
however, I'm using Microsoft windows (vista x64) and cannot build it on this env (according to: http://source.android.com/download --> "To build the Android source files, you will need to use Linux or Mac OS. Building under Windows is not currently supported.").
therefore i was wondering, did anybody make a vmware image that is ready to use that contains the environment and the sources that will only need a source update and can be built immediately after for noobs like me?
I'm sure I'm not the only one running a windows machine and so i guess somebody has already made one for himself, I'm asking if you could maybe share it somehow...
Thanks
E.
Clarification: I'm not talking about the SDK building but rather the actual OS source code so that i can re-build and put on my phone
note: tried this: http://www.koushikdutta.com/2008/12/building-android-source-and-deploying.html, didn't work, but it gives an idea of what I'm looking for...
did u try running a virtualbox with linux? or maybe a macOS off a usb?
vista x64
for windows, have you tried cygwin?
I've installed it just fine in ubuntu in vmware.
I'd about 8 gb. quite hard to make an image out of it.

Debian, adb, and virtual box.

Alright, decided to install debian in a virtual box so I could play with the kernel over the weekend. Usb debugging, adb functioning in Windows, Usb mounted in virtual box, however adb doesn't detect it. Ideas?
Did you download the Android SDK for Linux? link
Yeah. Hence me saying adb didn't detect it.
I think you need to enable usb passthrough or whatever you call. That may be in the addons pack that come with Sun Virtual Box
USB capturing is enabled, and both the USB port [0100] and HTC Android Phone (on port [0100]) are both captured.
abcdfv said:
Alright, decided to install debian in a virtual box so I could play with the kernel over the weekend. Usb debugging, adb functioning in Windows, Usb mounted in virtual box, however adb doesn't detect it. Ideas?
Click to expand...
Click to collapse
Before you pull too much hair out, you REALLY need to make sure you have a really recent kernel. I had that exactly problem on Centos 5.3 and upgrade that box to fedora 12 or 13 whatever the latest one.
Have you tried installing Ubuntu using WUBI? It doesn't actually install it... it just puts the files on your Windows partition, and adds an entry for Ubuntu to the bootloader. That might be easier than trying to work out problems with Virtual Box.
This is my mom's computer, so I'm doing VB. Otherwise I'd just through Sabayon back on and dualboot, which is what I plan on doing when i get back to my computer.
I've seen VirtualBox act flaky about passing a USB device over to the hosted OS properly, especially USB-class devices.
Perhaps you could try uninstalling the device as detected by windows and then allowing it to be re-detected before you retry passing it to the VB. Might not work at all, but I have had to 'wrestle' some devices into properly passing-through to the VirtualBox-Hosted OS on more than one occasion.
Good luck either way!
Since this is my last day here, I think I'm just going to wait until I get back to my PC.
I appreciate everyone's help though.

vitrualBox in Ubuntu 12.04

hey guys im trying to use virtualBox on my Ubuntu machine. Im trying to run windows 7. Got it all set up and loaded with no problems. Heres where I cant get passed.
Im trying to get VB to utilize the entire screen space. Ive read through all the articles about installing the additions iso. I cant seem to find a good copy. Also I cant get Odin to recognize my phone either. I have USB set up in VB and can access the files on phone but cant get Odin to recognize it. Any help would be greatly appreciated.
You can install guest additions from within VirtualBox. It shows up as a mounted CD drive. Open it, & run the appropriate script.
If your ultimate goal is to use Odin, though, I don't think it will work through VirtualBox. Maybe it's possible, but I think it needs direct access to the USB. You could just dual-boot Windows & do it directly.
Thanks for the info
post-mortem said:
You can install guest additions from within VirtualBox. It shows up as a mounted CD drive. Open it, & run the appropriate script.
If your ultimate goal is to use Odin, though, I don't think it will work through VirtualBox. Maybe it's possible, but I think it needs direct access to the USB. You could just dual-boot Windows & do it directly.
Click to expand...
Click to collapse
thanx for the info dude. I guess i just assumed i could get it to work in a virtual machine. Could have swore Ive seen Adam doing it...mind u he is MUCH MUCH more educated than me. That is my goal. I have a linux machine and wanna use odin to flash Adams Odin root file for the Note 2. No problem running his CASUAL program, but need to root it first and as far as I can tell it needs to be done in Windows. I guess I can always turn a spare computer back into a windows machine...just didnt wanna have to go through the headache,.
Well, you can boot off a Ubuntu install disk (or make a GParted Live USB), then use gparted to resize your Ubuntu. Set a few GB aside for a new partition, then install Windows there, instead of installing Windows in the VM. It ends up being the same thing, just a few more steps to get it running.
Just make sure you back up your grub config and mbr. I don't think Windows would make your Ubuntu install vanish, but ya never know...
BDogg718 said:
Im trying to get VB to utilize the entire screen space.
Click to expand...
Click to collapse
Oh, yeah. The default command to switch to fullscreen mode is Host+F, where the default Host key is Right Ctrl (so, RightCtrl+F).

The unofficial galaxy s3 linux support thread

I just wanted to start this thread for anyone who needs help with the s3 on linux whether its mounting sd/mtp or help with heimdall. I use Arch linux and let me tell you mtp is a pain in the butt, I ended up having to use a ftp server, and for my sd card I use a root ap called SG USB MASS STORAGE ENABLER by Mohhamad Abu-Garbeyyeh.
Linux
Bierce22 said:
I just wanted to start this thread for anyone who needs help with the s3 on linux whether its mounting sd/mtp or help with heimdall. I use Arch linux and let me tell you mtp is a pain in the butt, I ended up having to use a ftp server, and for my sd card I use a root ap called SG USB MASS STORAGE ENABLER by Mohhamad Abu-Garbeyyeh.
Click to expand...
Click to collapse
I'm using Ubuntu but there's no way I'm playing with my phone on it - I have a Windows partition just for that sort of thing. Maybe if it weren't my daily driver, I'd be willing to give it a shot but, while I use Linux for just about everything, it's just easier to have a Windows partition for some things. This being one of them.
Hats off to you though - takes guts (& knowledge) I don't have!
Need to be on stock. Doesn't work without stock.
http://forum.xda-developers.com/showpost.php?p=33491516&postcount=11
It worked for me on ubuntu 13.04
sjpritch25 said:
Need to be on stock. Doesn't work without stock.
http://forum.xda-developers.com/showpost.php?p=33491516&postcount=11
It worked for me on ubuntu 13.04
Click to expand...
Click to collapse
I'm rooted and ROMd with Carbon. Love my AOSP!
Bierce22 said:
I just wanted to start this thread for anyone who needs help with the s3 on linux whether its mounting sd/mtp or help with heimdall. I use Arch linux and let me tell you mtp is a pain in the butt, I ended up having to use a ftp server, and for my sd card I use a root ap called SG USB MASS STORAGE ENABLER by Mohhamad Abu-Garbeyyeh.
Click to expand...
Click to collapse
A couple of things I have found:
1. While MTP did not work with my Mint 15 system and stock android 4.1.2 on my phone, once I rooted, unlocked the bootloader, and installed cyanogenmod, it worked like a charm.
Before, when I plugged in my phone, I would get multiple error windows saying the MTP system wasn't available. I had to use windows (yuck!) and odin to get root and unlock the bootloader (although I did not try the virtualbox windows until after I had done this). I installed the most recent version of cyanogenmod and now the Mint system recognizes the MTP just fine. No error windows or anything.
2. I was able to get a virtualbox windows machine to recognize the phone, although it required different usb filters for download mode and for typical mtp.
This required going into download mode, selecting the appropriate filter in virtualbox, unplugging the phone, booting up the virtual machine and then replugging the phone. After this, odin recognized the phone. I did not attempt to flash anything further, though, since I had already done so from a windows system.
I think Ubuntu ships with mtp and its libraries now
I used to use arch Linux. Such a fun distro. Then work started using a TS gateway and it started become too much a hassle. Installed Windows 8, no longer fighting the system :screwy:
Sent from my SCH-I535 using xda app-developers app
lazarus0000 said:
I'm using Ubuntu but there's no way I'm playing with my phone on it - I have a Windows partition just for that sort of thing. Maybe if it weren't my daily driver, I'd be willing to give it a shot but, while I use Linux for just about everything, it's just easier to have a Windows partition for some things. This being one of them.
Hats off to you though - takes guts (& knowledge) I don't have!
Click to expand...
Click to collapse
What do you mean you have a windows partition? I have a laptop that's quad booted with Windows 7, Ubuntu, Fedora, and Pear OS 8. I want to take Windows out of the picture but I need it for things like this. Could you give me more details on this like does it act like a windows system? It'd be much appreciated.
Sent from my SCH-I535 using Tapatalk

Emulator Kernel Version Missing (Pic Provided)

Trying to build my own AOSP ROM and I keep getting stuck on emulator unable to find the kernel version, though the file is there.
I am using Hyper-V VM with Ubuntu V20 installed and the VHD is exactly that, a .vhd file extension for the virtual hard drive.
I just can not seem to resolve the problem on the missing kernel, also have supplied a pic showing exactly what it says after the build is finished and then I try and run emulator.
Any help or info, links on the matter would be much appreciated and thank you for taking the time to help out.
I have also noticed I can not use "emulator -list-avds" nothing happens. Just exits and terminal is ready for user input again.
So far I did a repo sync again and then a m -checkbuild and just waiting for it to finish to try emulator again
Update: Decided to start from scratch
Changes that I have made.
Using Ubuntu 18.04 for O.S
Switched from M.S Hyper-V to Oracle Virtual-Box (V.B has more features then Hyper-V and is better in performance because of it.).
Virtual HDD is set to .VHD but is on Sata and not IDE now (Virtual-Box only allows it).
Made the VHD a fixed drive instead of dynamic for better performance (Max size of 512GB)
Dedicated 32GB of ram to VM.
Allowed up to 6 cores on a 12 core processor.
might experiment getting Oracle JDK installed instead of using openjdk, due to having issues with it.
UPDATE_1
Fresh build on 18.04 same issues as old build. emulator, avd and android. all not working.
I might have missed a package to download or something or maybe java still is not working. Using openjdk 11 at the moment. I am running out of ideas as to why i can not get it working.
Update_2
Looks like the reason emulator is not working is due to me not installing SDK, I am not using the IDE so I think I need the command-line & Platform tools installed. got to work out how to install it now.
UPDATE_3
SDK from what I know is installed. Now I am getting an output file is missing, but build completed with no issues. Please help, new image also supplied.

Categories

Resources