11/1/2021

AVD Laptops & Desktops Driver

AVD is a pioneering fire extinguishing agent that is specifically designed to tackle the particular threat posed by lithium battery fires. It is the only agent that contains, cools and extinguishes lithium battery fires and can be used in both portable and fixed fire safety systems – including sprinklers and lithium battery fire extinguishers. Here's how to create an Android emulator complete with a desktop, navigation and access to all of the contents of the Google Play store.

To run Hyper-V and Windows Hypervisor Platform, your computer must: Have 4GB of memory available; Have a 64-bit Intel processor or AMD Ryzen CPU with Second Level Address Translation (SLAT) Be running Windows 10 build 1803+ (Check your build #) Have updated graphics drivers (Device Manager Display adapters Update driver). Download FREE AVG antivirus software. Get protection against viruses, malware and spyware. Easy-to-use virus scanner. Download today – free forever!

Google is committed to advancing racial equity for Black communities. See how.

Use the Android Emulatorto test AR scenarios without a physical device. The Android Emulator lets yourun ARCore apps in a virtual environment with an emulated device that youcontrol.

Set up your development environment

Software requirements:

  • Android Studio3.1 or later.

  • Android Emulator27.2.9 or later.

Get Android Studio and SDK tools for ARCore

  1. Install Android Studio 3.1 or later.

  2. In Android Studio, go to Preferences > Appearance and Behavior > System Settings > Android SDK.

  3. Select the SDK Platforms tab and check Show Package Details.

    Under Android 8.1 (Oreo), select:
    Google APIs Intel x86 Atom System Image API Level 27, version 4 or later.

  4. Select the SDK Tools tab and add Android Emulator 27.2.9 or later.

  5. Click OK to install the selected packages and tools.

  6. Click OK again to confirm changes.

  7. Accept the license agreement for the Component Installer.

  8. Click Finish.

Create a virtual device with AR support

For more information, see the Android Studio instructions to Create aVirtual Device.

Create a new Android Virtual Device (AVD)

  1. In Android Studio open the AVD Manager by clicking Tools > AVD Manager.

  2. Click Create Virtual Device, at the bottom of the AVD Manager dialog.

  3. Select or create your desired Phone hardware profile and select Next.

  4. Select an x86 or x86_64 system image running API Level 27 or laterand select Next.

    • While physical ARCore devices are supported on API Level 24 or later,Android Emulator support requires API Level 27 or later.

    • Only x86-based Android Emulator architectures are supported. Otherarchitectures such as arm64-v8a, armeabi-v7, are not currentlysupported.

    • macOS only with ARCore SDK 1.16.0 or later: Due to a known issue,Android Emulator x86_64 system images are not supported on macOS withARCore SDK 1.16.0 or later. As a workaround, use an x86 system image.

  5. Verify that your virtual device is configured correctly:

    • Click Show Advanced Settings.

    • Make sure that Camera Back is set to VirtualScene.

  6. Click Finish to create your AVD.

Run your app

Test an ARCore app on an AR-supported virtual device in the emulator. To dothis, you can follow the Android Studio instructions toRun an app in the Android Emulator.

Note: To run apps with NDK components in the Android Emulator, your app must bebuilt with x86 ABIs.For an example, see the ARCore HelloAR C sample app.

Avd Laptops Refurbished

Update Google Play Services for AR

The version of Google Play Services for AR on the emulator is likely out ofdate. Follow these instructions to update it:

Avd laptops vs
  1. Download the latest Google_Play_Services_for_AR_1.22.0_x86_for_emulator.apk from the GitHubreleases page.

  2. Install the downloaded APK into each AVD you'd like to use:

    Start the desired AVD, then drag the downloaded APK onto the runningemulator, or install it using adb while the virtual device is running:

Repeat these steps process for any additional AVDs you'd like to use.

Control the virtual scene

When your app connects to ARCore, you’ll see an overlay describing how to controlthe camera and a status bar below the emulator window.

Move the virtual camera

Press and hold Option (macOS) or Alt (Linux or Windows) to access cameramovement controls. Use the following controls to move the camera:

PlatformActionWhat to do
macOSMove left or right Hold Option + press A or D
Move down or up Hold Option + press Q or E
Move forward or back Hold Option + press W or S
Change device orientation Hold Option + move mouse
Linux or WindowsMove left or right Hold Alt + press A or D
Move down or up Hold Alt + press Q or E
Move forward or back Hold Alt + press W or S
Change device orientation Hold Alt + move mouse

Release Option or Alt to return to interactive mode in the emulator.

Use the Virtual Sensors tab in Extended controlsfor more precise device positioning.

Add Augmented Images to the scene

Load images into the emulator’s simulated environment to test Augmented Images.

Use the Camera tab in Extended controls to add or modify Scene images.There are two image locations, one on the wall and one on the table.

To view these image locations in the scene, launch your emulator, then move thecamera to the dining room area through the door behind the camera’s startingposition.

Troubleshooting tips

  • If your ARCore app launches and you see an 'AR Core not supported' message,check the revision on your system image. Make sure you are usingAPI Level 27 Revision 4.

  • If your ARCore app fails to open the camera when it launches, make sure thatCamera Back is set to VirtualScene, as described in the configurationsteps above.

How Does HAXM Speed Up the Android Emulator?

Avd laptops refurbished

The Android emulator is based on QEMU, which is a virtual machine environment emulating an entire computing system. The HAXM driver support runs both inside the emulator and on the host machine. As with many modern virtual machines, this enables the code inside the emulator to run at nearly full speed on the host machine. A variety of different Intel® Virtualization Technology (VT)-specific features are utilized to perform this feat. (Watch this Intel video for a demo of HAXM and its benefits.)

The interface between QEMU and the HAXM driver on the host system is designed to be vendor-agnostic, but currently it supports only Intel® VT. This means that upcoming Windows machines running on ARM potentially could be supported. In addition, AMD-based x86 machines could also be supported. Naturally, Intel did not do this work for them.

The QEMU support for HAXM was introduced in Release 17 of the Android Development Tools (ADT). The solution has been fully tested to work with Intel x86 images for Android 2.3.7 (API Level 10) and Android 4.0.4 (API Level 14) and higher. In fact, it has passed the Android Compatibility Test Suite.

The overall performance is also increased through efficient use of the host GPU device. This is separate from HAXM, but helps increase performance. A flag can be enabled on each AVD that effectively pushes the 3D commands out to the host machine GPU. You'll see how to enable this in the next section.

Configuring Your Android Development Environment for HAXM

Are you sufficiently enticed? We were! OK, to be honest, it seemed like Android emulator performance could only get better, so let's talk about how you can configure your development environment and start using the HAXM driver to enable the emulator to start pulling its weight again.

Before you begin, make sure your development machine has an Intel CPU in it (such as a Core i7). The HAXM driver and Intel x86 Atom system images are provided by Intel without additional cost, so this isn't a surprise to us. (In fact, we have desktops with competing processors where we can't use this. Even though they are faster for other things, the emulator performance makes our laptops with Intel processors work very well.)

1. Update Eclipse: Make sure your Eclipse installation and the ADT plug-in are fully up to date. At the time of this writing, each was on release version 22.3.


2. Update your Android Tools: After each Eclipse plug-in update, it is important to update your Android SDK Tools. To do this, launch the Android SDK Manager and update all the Android SDK components. To take advantage of HAXM, you must be on at least release version 17.

3. Download the x86 Atom System Images: Using the Android SDK Manager, download the Intel x86 Atom System Image packages for the API Levels you require. As of this writing, system image packages are available only for API Level 10 (Gingerbread MR1 -- Android 2.3.7) and API Level 15 (Ice Cream Sandwich MR1 -- Android 4.0.3/4.0.4) and up, with the recent exception of API Level 19 (KitKat -- Android 4.4) as it was just released. We expect the Intel x86 Atom System Image for API Level 19 at any time.

4. Download the Intel Hardware Accelerated Execution Manager Driver:

Avd Laptops For Sale

Again, use the Android SDK Manager to download the HAXM driver. Unlike many other items you can download through the Android SDK Manager, the HAXM driver will not be automatically installed on your computer. Instead, it just downloads an install package that you must install manually.
Alternately, download Intel's Android Tool Suite, codenamed Beacon Mountain, which Includes HAXM and a number of other tools helpful to Android development. For more information, see http://www.developer.com/ws/android/development-tools/intel-tools-for-the-android-developer.html and http://software.intel.com/en-us/vcsource/tools/beaconmountain. The Intel HAXM driver is installed during installation of the suite (skip the next step).
Friday

5. Install the HAXM Driver: (Skip this step if you installed Beacon Mountain.) Find the IntelHaxm.exe file within the /extras/intel/Hardware_Accelerated_Execution_Manager folder of your Android SDK installation. Launch the executable to start the installation process. The installer will check your platform configuration for compatibility and then either install the driver or display a failure message if your computer is not compatible with the HAXM driver.

6. Create a New x86 AVD: Using the Android Virtual Device Manager, create a new AVD that will leverage the driver. Most VD settings can remain as you need them. Set the AVD Target property to one of the API Levels that your system has an x86 system image available (API Level 10 or 15+). Choose Intel Atom (x86) as the CPU/ABI. Under Emulation Options, check 'Use Host GPU.' Verify the rest of the settings are to your liking. When done, click OK to save this AVD profile for use with the emulator. (Note: When you enable GPU emulation you cannot use the AVD snapshot feature. Soon you'll see that it's not nearly as important as it was.)

Now your development environment is ready to rumble with hardware accelerated emulation. Go ahead and launch the emulator using your newly created AVD. You should see a small window titled 'Starting Android Emulator.' Within it, some status text will show. If you see 'HAX is working and emulator runs in fast virt mode' then you'll know everything is installed and working correctly. If, instead, you see 'emulator:Failed to open the HAX device!' or 'HAX is not working and emulator runs in emulation mode,' then the installation did not work properly. At this point, recheck that you followed all the steps for installing everything properly, and that you are targeting compatible API levels in your AVD.

You can also consult the 'Configuring Virtual Machine Acceleration' section of the official Android emulator documentation for instructions on setting up HAXM.

So, How Much Faster Is My Android Emulator?

Well, like we said, Android emulator performance couldn't get much worse. But how much better does the emulator perform once you've gotten HAXM on the case? Believe us, you'll notice.

The performance improvements once HAXM is in use can be felt immediately. From the first run, you'll enjoy a much faster bootup time when you launch an emulator instance and once running, the emulator is transformed from a clunky, janky mess (watch this video for a description of jank) to a pleasant experience with silky smooth animations. But these are just subjective observations we had. We decided to run a few performance tests in order to demonstrate and quantify the sorts of improvement that we were experiencing.

Finding easy-to-use benchmarking tools that run through completion on the emulator sounds easier than it is. We ultimately chose to measure boot up time and determine SunSpider 0.9.1, Linpack, and Scimark scores. We also ran some 2D and 3D measurements, but their results aren't standard so we'll just talk about them in general rough terms. Developer.com commissioned us to run all these benchmarks, but note that you can now run the Octane Benchmark for Chrome within HAXM as well.

The first measurement, and probably the one we've all felt the most pain with (and complained the most about), is emulator bootup time. This is the time from when you first tell your development environment to launch the emulator to the time the UI is functionally available to use and you can install apps. We've noted that the first time an Android AVD boots up in the emulator it takes longer to start. We included these numbers, too.

As you can see in the chart, the bootup time is dramatically reduced in both the first bootup time and subsequent bootup times when HAXM is leveraged. Overall, the emulator becomes useful in about a quarter of the time that it used to and about a third of the time an ARM emulator boots up. This is remarkable and can increase developer productivity substantively.

Next we used Vellamo, which utilizes a number of other benchmarks. Specifically, the Dhrystone and Linpack numbers are interesting and revealing.

As you can easily visualize here, the computational benchmarks show a substantial improvement when HAXM is used. While the exact numbers and even the exact differences are not particularly important, what is important is that the improvement is very real. The feel of the emulator and the speed with which your apps will run is all much more on par with current generation high-end device hardware. In fact, as you can see in the results, the accelerated emulator is up to 6x faster than real hardware and still faster than one of the fastest handsets available today.

Avd Laptops Wallpaper

Finally, we compared browser performance. Some developers may just be using the emulator to test browser code. Is HAXM still worthwhile? You be the judge.

Here again, we also included two devices, an x86 based tablet and an ARM-based phone, and show just relative numbers. Once again, we see that HAXM not only is substantially faster than the regular ARM emulator, but it also has a large lead of current devices. For testing correctness of an application, this is fantastic. For testing the performance of a browser app, you'll still want to test on real hardware. The results here show that the HAXM emulator performance is too good.

Overall, we are quite impressed with the performance results with HAXM. We can only hope other host targets will be added in a timely fashion and, eventually, all API Levels will have an x86 system image available immediately upon release, and that this level of performance ultimately becomes the default on supported development environment configurations.

Is There a Catch?

Like all development configuration decisions, you've got to weigh the pros and cons of using a tool. The HAXM solution isn't too good to be true; there are some downsides. First of all, this solution works only in Intel CPUs at this time. They are the most popular, but there are competing processors that many people use, including these authors. Second, HAXM works only when using an x86 system image. This isn't a huge problem for most developers, because standard Android applications run within the Dalvik VM. Finally, not all Android API levels have x86 system images available. You may have to wait several weeks after the release of a new API level and you may not be able to use x86 images on old API levels. For day-to-day testing, though, we find the support sufficient.

The authors have run into some stability issues during testing. Unfortunately, these stability issues result in host system crashes on Windows 8.1. Fortunately, Intel has provided a hotfix. For more information see http://software.intel.com/en-us/forums/topic/475129. To download the hotfix, see http://software.intel.com/en-us/articles/intel-hardware-accelerated-execution-manager-end-user-license-agreement-windows-hotfix.We would not let this discourage anyone from using HAXM. In fact, the speed at which a fix was provided shows us that Intel is actively supporting their tools and the community.

Conclusion

If you've been losing sleep over how dismal the performance of the Android emulator has gotten as we have, you should be pleasantly surprised by how much Intel's Hardware Accelerated Execution Manager (HAXM) driver improves your work day. If you have a development machine with an Intel processor, we see no reason at all to not use this solution for Android app development. In fact, it's so compelling that we feel it should be the default setup for compatible development environments.

Have you suffered Android emulator performance frustrations too? How have you dealt with them? Share your experiences in the comments below. After you get HAXM up and running, let us know how well it works for you as well. Did you run across any problems with any of your applications? Is it so fast that you have to run your app on the real device to truly simulate the true (slower) performance that users will experience?


Originally published on https://www.developer.com.
Page 2 of 2

This article was originally published on January 17, 2014