[Q] Running .apk ROMs in a VM - General Topics

I was wondering if there is a way to test a rom on a pc....like in a virtual machine. Just to see how the UI looks, how the functionality works, etc. I know I have tried running ubuntu on my machine in a VM, but I am not sure if there exists the same setup for android.

Are you asking about ROMs or apks? There should be a tool within the Android SDK (Android Emulator) that allows you to emulate an android device, so that you can test your apks.

Related

HEY

hey is it possible to pull the entire Android OS, all assoicated files, etc off of a phone..like a droid or X for instance, and then run that from a virtual machine on your computer??
No, but you could check out the android x86 project or run eclipse.
evilkorn said:
No, but you could check out the android x86 project or run eclipse.
Click to expand...
Click to collapse
i specially wanted to "emulate" a phone on the PC to check stability. i want to TOTALLY strip froyo, down to basic operating system and build it back up with no bloat, no apps, no nothin. customize it yourself, ya digg?
To run on what, phone or computer?
You said you wanted to run it in an emulator on the PC, which is what the android x86 project is for.
If you want to run it on the phone, eclipse is the build environment.

Can one access or use the underyling linux O/S in an Android device?

Maybe I'm misinterpreting what I've read, but my understanding is that Android "O/S's" are a VM (via Dalvik?) that runs within a pared down linux O/S. Assuming that's not too far off, is it possible to add packages or programs to that Linux O/S? Could I, for example, add regular old Wireshark to it? Obviously the programs would have to be compiled for the correct cpu platform.
Thanks.
The kernel is Linux one... As for your question, provided you have rooted your phone, you can create a chroot there and run Linux apps on your phone.
A howto for Debian here: http://forum.xda-developers.com/showthread.php?t=996746

[Q] How Android kernel and Virtual Machine work

Dear all,
I'm trying to reconstruct the Andriod on my phone. So far i managed to download source code for Linux core including files like "mount, cp, modprobe,...", however I notices thete are other files in /system/bin like "am, pm, ..." which control the other layer of Android OS. How can I download the source code for these kind of files. Also in framework we have "am.jar" which seems to have direct relation to Java VM. Maybe it is better to also ask how Java VM works on Android. I do not ask about general knowledge because more or less I know how it works. Basicly I need to know which files are related to the process of running Apps on Android and what they do.
Best wishes.

[Q] Unrooted Android Virtual Machine running under rooted Android.

Just a quick question. Just wondering if there is an app that can run another instance of Android in a Virtual Machine on an Android device?
I'm wondering if this could work for those apps that won't run on rooted phones. i.e. they could be run on the virtual Android device which wouldn't be rooted.

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