Installation of OS in android emulator - android

I am working on android emulator. I successfully upgraded the kernel of emulator. now I want to change the OS of emulator. I know we can select the appropriate APIs from the android SDK manager. But i want to install jelly beans manually or you can say i want to upgrade ICS to jelly beans in emulator.
Is there any way to do manually install source code of android 4.3 on emulator??

You can only change the API the emulator uses and then you'll probably have to restart it. I can't imagine it would simply change Operating Systems. I just create a different AVD for each API I use and run them when I need them (with an API 18 Emulator always running).

You will need to use the Android SDK to compile Android 4.3 from source. Choose the emulator as your build target. For example, to create an engineering build (full debugging capability, largest output size) for the ARM emulator:
$ lunch aosp_arm-eng
Visit the official Android page on Building the System for full details:
http://source.android.com/source/building-running.html
After the build completes (it will probably take a few hours, at least the first time) you can use the files from the out/ subdirectory of the source tree to run in the emulator. These include system.img, userdata.img, ramdisk.img, etc

Related

Android Emulator ISO?

I am trying to setup a testing environment for the development of java apps.
I do not have any dedicated server right now and I am using one KVM VPS to write a code and on another one I am running Android x86 8.1 RC2 in Debug Mode to catch the contents of /data/log.txt. Everything works nice and smooth.
Yet right now I need to test the app on Android 9.0 Pie. There is no ISO images of Android x86-pie yet, only sources. So I wonder if I should try to build myself Android x86 9.0 from the sources or there is another option..?
(I tried to install Bliss OS, but failed: https://forum.xda-developers.com/showpost.php?p=80086490&postcount=1070 )
So apparently there is Android Emulator available: https://androidstudio.googleblog.com/2019/08/emulator-29110-canary-android-q-beta-6.html but it requires /dev/kvm (which means that I probably should run it on dedicated server?).
How this emulator works? Is it possible to make an ISO image and install it on VPS?
Edit:
This is the Android 28 system image that sdkmanager provides:
I wonder if it is possible to convert this one into ISO for installation on VPS.
Edit2:
Tried Android x86 9.0.0 r34... It doesn't work yet.
https://github.com/android-x86/android-x86.github.io/issues/52#issuecomment-524590033

Running Custom Android ROM on Emulator

I built a custom ROM based out of AOSP (7.0 for Nexus 6) and I would like to use this ROM with SDK emulator. The lunch combo for the build is 'aosp_x86_64-eng' which I believe
should work on SDK emulator. However, I don't see an option in AVD Manager to specify my custom system image. It only allows me to use the listed ROMs from Google.
I tried copying my custom ROM's system.img over the stock Nexus 6 AVD but the emulator doesn't launch after that.
Note that the emulator that gets generated during the build works fine. But the build happens on a server, and I want to use the generated ROM on my development machine with my SDK's AVD Manager.
Found out that it can be done using the following steps.
Create a compatible AVD using the stock AVD System Images. In my case, I used a system image that is for Nexus 6 running Nougat on x86_64 ABI.
Go to ~/.android/avd folder and then locate the folder for the AVD that you created above (ex. ~/.android/avd/test.avd). Copy your custom system.img file into that folder.
Run the emulator!
When I tried it for the first time this didn't work for me because I have chosen the wrong base image (Nougat x86 instead of x86_64). Catch is to make sure that the stock system image is fully compatible with your build.

Is there a way I can run android OS and apps from my windows PC?

I am developing an android app and want to test on the latest version of android, also I need to check some apps from google store, so Is there a way to run full android OS from my PC, I searched and found some telling to use virtualbox, but I tried the installation steps and it didn't work, are there any other suggestions?
You can use GenyMotion for that. It provides Android VM that are really better than the one of SDK (chosse images of Android machines that are provided with google apps for retrieving apps from Play Store).
Assuming the normal android sdk is already installed, using the Android SDK manager:
Install the Intel x86 Atom System Image of the latest api level.
Install Intel x86 Emulator Accelerator HAXM which can be found in the folder called "tools" inside the list provided by the Android SDK Manager (for those of you on Linux, you'll have to hunt around and install kvm instead).
Create an AVD using the AVD Manager
Make sure you select the x86 version when creating the AVD, the select box defaults to ARM.
And tick the checkbox Snapshot, to make sure your image keeps anything you install on it between restarts.
Fill out the rest of the parameters, create your AVD, and start it (the first time it runs will take the longest, the second time will be faster). That being said, it's still a good idea not to shutdown the emulator between tests because of the reboot time.
AVDs based on parameters alone and not actual device names will also be faster than the ones that have specific model names, but bear in mind that those with parameters will include less stuff. So it sounds like you'll want to make sure you select one with a specific phone model name.
Genymotion should work just fine as well. Just note that for the non-AOSP phones, you may have to install some of the system apks separately (because of licensing reasons, but those system apks should be very easy to find if you just google around for them)

How do I configure Trigger.IO to use the Intel Atom x86 target for my Android virtual device?

When I run my Trigger.IO app in the Android emulator, Trigger.IO automatically creates an Android virtual device using the Android 2.2 target. I have learned that I can improve the speed of the Android emulator by choosing the Intel Atom x86 target (see http://software.intel.com/en-us/android). How do I configure Trigger.IO to use the Intel Atom x86 target? I have tried modifying the AVD created by Trigger.IO after it has been created, but Trigger.IO simply deletes and recreates the AVD using the Android 2.2 target the next time I run it.
As far as I know there are two ways to achieve this when working with Trigger.io:
1) As long as you don't have any devices connected and only the emulator of your choice running, you can just use forge run android to install and launch the app on this particular emulator.
In case you have multiple emulators running and/or android devices connected, you need to specify the emulator id. It can be found in the title bar of an android emulator application and is followed by the name of the AVD (see the screenshot below). Example: You got an emulator named android403 which is started and its title bar says 5554:android403. Just use forge run android --android.device emulator-5554 to run your app in this specific emulator.
2) You can package your app using forge package android and download the resulting .apk file to your emulator. Just install it the same way you'd do on a real device. Make sure to enable SD Card support on your emulator when using this method.
If you are going to mix up both methods there is one more thing: An app installed via method 2 cannot be automatically overwritten by an install process described in 1. You'd have to manually uninstall the app beforehand. However, as long as you stick to one of the two you should be fine without manually uninstalling anything.
Another thing that you should know in this context is that apps built with Trigger.io are incompatible with the Android 2.3.3 (API 10) emulator. They will work on real devices running this Android version though.

How to I emulate a specific Android device via AVD?

(This question may belong on a different site such as SuperUser. If so, please migrate!)
I'm trying to do a lot of debugging of our web app for Android. The Android emulator seems a tad more difficult for me to get running than the iOS ones. ;)
I have installed the proper Java JDK and Android SDK.
I can now launch AVD manager. This is where I'm stuck. I understand this is where we can customize the specifications of our particular device, but to create a new virtual device, I need to choose a target. However, my target menu is grayed out. I'm guessing there's one more thing I need to install, but I'm lost as to what that is. (BTW, for starters, I'm trying to emulate the Thunderbolt).
Check this out. You probably missed step 4
Installing the SDK
Installing the Android SDK does not install one of the Android platforms to build a AVD from.
To install a platform do the following:
Open the Android SDK Manager (located in the Android SDK directory as tools\android).
Select at least one Android platform to install, and click Install Selected. Depending on the version of Android running on the Thunderbolt, you would most likely choose to install Android 2.2 or Android 2.3).
Once this installed the target menu will display the version you installed.

Categories

Resources