Showing posts with label Android Emulator. Show all posts
Showing posts with label Android Emulator. Show all posts

Friday, October 26, 2018

Quick Kicking & The Summit Features Inwards The Android Emulator

Posted past times Jamal Eason, Product Manager, Android

Today, nosotros are excited to denote Quick Boot for the Android Emulator. With Quick Boot, y'all tin sack launch the Android Emulator inwards nether half dozen seconds. Quick Boot industrial plant past times snapshotting an emulator session therefore y'all tin sack reload inwards seconds. Quick Boot was showtime released amongst Android Studio 3.0 inwards the canary update channel in addition to nosotros are excited to unloose the characteristic equally a stable update today.

In improver to this novel feature, nosotros also wanted to highlight unopen to of the top features from recent releases. Since the consummate revamp of the Android Emulator two years ago, nosotros choke on to focus on improving speed, stability in addition to adding a rich gear upwardly of features that accelerate your app evolution in addition to testing. With all the recent changes, it is definitely worth updating to the latest version of the Android Emulator to role it today.

Top v Features

  • Quick Boot - Released equally a stable characteristic today, Quick Boot allows y'all to resume your Android Emulator session inwards nether half dozen seconds. The showtime fourth dimension y'all begin an Android Virtual Device (AVD) amongst the Android Emulator, it must perform a mutual depression temperature kicking (just similar powering on a device), but subsequent starts are fast in addition to the organisation is restored to the nation at which y'all closed the emulator finally (similar to waking a device). We accomplished this past times completely re-engineering the legacy emulator snapshot architecture to locomote amongst virtual sensors in addition to GPU acceleration. No additional setup is required because Quick Boot is enabled past times default starting amongst Android Emulator v27.0.2.

Quick Boot inwards the Android Emulator

  • Android CTS Compatibility - With each unloose of the Android SDK, nosotros ensure that the Android Emulator is create for your app evolution needs, from testing backwards compatibility amongst Android KitKat to integrating the latest APIs of the developer preview. To increase production character in addition to reliability of emulator organisation images, nosotros at 1 time qualify terminal Android System Image builds from Android Nougat (API 24) in addition to higher against the Android Compatibility Test Suite (CTS)—the same testing suite that official Android physical devices must pass.
  • Google Play Support - We know that many app developers role Google Play Services, in addition to it tin sack live on hard to maintain the service upwardly to appointment inwards the Android Emulator organisation images. To solve this problem, nosotros at 1 time offering versions of Android System Images that include the Play Store app. The Google Play images are available starting amongst Android Nougat (API 24). With these novel emulator images, y'all tin sack update Google Play Services via the Play Store app inwards your emulator only equally y'all would on a physical Android device. Plus, y'all tin sack at 1 time examination end-to-end install, update, in addition to buy flows amongst the Google Play Store.
  • Performance Improvements - Making the emulator fast in addition to performant is an on-going destination for our team. We continuously await at the functioning comport on of running the emulator on your evolution machine, peculiarly RAM usage. With the latest versions of the Android Emulator, nosotros at 1 time allocate RAM on demand, instead of allocating in addition to pinning the retentivity to the max RAM size defined inwards your AVD. We produce this past times tapping into the native hypervisors for Linux (KVM) in addition to macOS® (Hypervisor.Framework), in addition to an enhanced Intel® HAXM (v6.2.1 in addition to higher) for Microsoft® Windows®, which uses the novel on-demand retentivity allocation.
  • Additionally, over the finally several releases, nosotros accept improved CPU in addition to I/O functioning land enhancing GPU performance, including OpenGL ES 3.0 support. Looking at a mutual job such equally ADB force highlights the improvements inwards the Android CPU in addition to I/O pipelines:

    ADB Push Speed Comparison amongst Android Emulator

    For GPU performance, nosotros created a sample GPU emulation stress examination app to approximate improvements over time. We institute that the latest emulator tin sack homecoming higher frame rates than before, in addition to it is 1 of the few emulators that tin sack homecoming OpenGL ES 3.0 accurately per the Android specification.

GPU Emulation Stress Test - Android App

GPU Emulation Stress Test amongst Android Emulator

More Features

In improver to these major features, at that spot are a whole host of additional features that nosotros accept added to the Android Emulator over the finally yr that y'all may non live on aware of:

  • Wi-Fi support - Starting amongst API 24 organisation images, y'all tin sack create an AVD that both connects to a virtual cellular network in addition to a virtual Wi-Fi Access Point.
  • Google Cast back upwardly - When using a Google Play organisation image, y'all tin sack cast concealment in addition to good content to Chromecast devices on the same Wi-Fi network.
  • Drag in addition to driblet APKs & files - Simply drag an APK onto the Android Emulator window to trigger an app install. Also y'all tin sack drag whatsoever other information file in addition to honour it inwards the /Downloads folder inwards your Android Virtual Device.
  • Host re-create & glue - You tin sack re-create & glue text betwixt the Android Emulator in addition to your evolution machine.
  • Virtual 2-finger pinch & zoom - When interacting amongst apps similar Google Maps, concur downward the Ctrl Key (on Microsoft® Windows® or Linux) or ⌘ (on macOS® ) , in addition to a finger overlay appears on concealment to aid amongst pinch & zoom actions.
  • GPS place - Manually direct a GPS signal or gear upwardly of GPS points nether the Location tab of the Android Emulator.
  • Virtual sensors - There is a dedicated page inwards the extended controls panel that has supported sensors inwards the Android Emulator including acceleration, rotation, proximity in addition to many more.
  • WebCam back upwardly - You tin sack role a webcam or your laptop built-in webcam equally a virtual photographic telly camera inwards the AVD. Validate your AVD photographic telly camera settings inwards the Advanced Settings page inwards the AVD Manager.
  • Host machine keyboard - You tin sack role your existent keyboard to larn into text into the Android Virtual Device.
  • Virtual SMS in addition to telephone calls - In the extended controls panel, y'all tin sack trigger a virtual SMS or telephone phone telephone to examination apps amongst telephony dependencies.
  • Screen zooming - On the master copy toolbar, click on the magnify drinking glass icon to larn into zoom mode, in addition to and therefore direct a part of the concealment y'all wish to inspect.
  • Window resizing - Simply drag a corner of the Android Emulator window to modify to the desired size.
  • Network proxy support - Add a custom HTTP proxy for your Android Emulator session past times going to the Settings page nether the Proxy tab.
  • Bug reporting - You tin sack speedily generate a põrnikas study for your app past times using the Bug Report department inwards the extended controls panel to percentage amongst your squad or to post feedback to Google.

Learn to a greater extent than well-nigh the Android Emulator inwards the Emulator documentation.

Getting Started

All of these features in addition to improvements are available to download in addition to role at 1 time amongst Android Emulator v27.0.2+, which y'all tin sack larn via the SDK Manager inwards Android Studio. For a fast experience, nosotros recommend creating in addition to running the x86 version of emulator organisation images, amongst the latest Android Emulator, Intel® HAXM (if applicable) in addition to graphics drivers installed.

We appreciate whatsoever feedback on things y'all like, issues or features y'all would similar to see. If y'all honour a bug, issue, or accept a characteristic asking experience complimentary to file an issue. We are definitely non done, but nosotros promise y'all are excited well-nigh the improvements therefore far.

Monday, October 8, 2018

Android Emulator - Amd Processor & Hyper-V Support

Posted past times Jamal Eason, Product Manager, Android

Since the major revamp of the Android Emulator 2 years ago, nosotros cause got focused on delivering a fast together with feature-rich emulator to assistance you lot gear upward neat app experiences for users. Today, the Android Emulator is the laissez passer on device deployed to from Android Studio — to a greater extent than than 2x over physical Android devices. We are humbled to listen from many of you lot that the Android Emulator has come upward a long way, simply nosotros are non done yet.

Making the Android Emulator faster is i of the laissez passer on priorities for the Android Studio team. Over the terminal few releases, nosotros cause got launched quick boot & emulator snapshots for apace starting together with resuming emulator sessions inwards nether 2 seconds. Up until now, our emulator experience has close universally worked on macOS® together with Linux computers. But for users of Microsoft® Windows® or the Microsoft® Hyper-V platform, our hardware accelerated speed enhancements for the Android Emulator solely worked alongside computers alongside Intel® processors. Support for AMD® processors together with Microsoft Hyper-V hypervisor are 2 long-standing user requests from the Android developer community that nosotros are happy to address alongside this Android Emulator update.

Today, you lot tin give the sack download the latest Android Emulator release, which is enabled to run x86 based Android Virtual Devices (AVD) on computers that role AMD processors. This exciting update makes the Android Emulator to a greater extent than accessible to a novel laid of Android app developers that were previously express to software emulation, simply tin give the sack similar a shot cause got hardware accelerated performance. Moreover, for those of you lot who role Hyper-V to run your local app backend, the Android Emulator tin give the sack similar a shot also coexist alongside other Hyper-V-backed applications on Windows® 10.

Thanks to a novel Microsoft Windows Hypervisor Platform (WHPX) API together with recent open-source contributions from Microsoft, fifty-fifty to a greater extent than Android app developers tin give the sack cause got payoff of all the speed improvements together with features inwards the Android Emulator.

Android Emulator running on Windows 10 alongside AMD Processor Screenshot Configuration: Asus ROG Strix GL 702ZC, Processor: AMD® Ryzen seven 1700 Processor, Chipset: AMD 5350, Graphics: AMD® Radeon RX580

Support for these technologies was initially available inwards the v27.3.8 Android Emulator canary loose together with today nosotros are releasing this laid of preview features (AMD processor & Hyper-V support) on the stable channel for to a greater extent than feedback. Alongside this update, nosotros cause got added additional speed improvements inwards loading emulator snapshots for those developers using the Intel® Hardware Accelerated Execution Manager (HAXM).

How to use

Linux

If you lot role Linux for Android app development, the Android Emulator volition instruct out along to role the native Kernel-based Virtual Machine (KVM) hypervisor for both Intel together with AMD based computers for a fast together with performant virtualization solution. An update to the v27.3.8 Android Emulator volition offering you lot the novel snapshots UI along alongside improvements to performance, reliability together with resources usage.

macOS

For OS X v10.10 Yosemite together with higher, the Android Emulator uses the built-in Hypervisor.Framework past times default, together with falls dorsum to using the Intel Hardware Accelerated Execution Manager (HAXM) if Hypervisor.Framework fails to initialize (such every bit when running on OS X v10.9 or earlier). Once you lot update to the latest Android Emulator on macOS, you lot volition also cause got access to the novel snapshots UI along alongside nether the hood functioning together with reliability improvements.

Android Emulator - Snapshots Extended Controls

Microsoft Windows

On Intel x86-based computers, the Android Emulator volition instruct out along to role Intel HAXM past times default. Intel HAXM is a mature together with open-sourced hypervisor solution developed past times Intel. Thanks to on-going evolution past times Intel, the fastest emulator functioning on Windows is even together with therefore alongside Intel HAXM. To download the latest Intel HAXM v7.2.0, cheque for updates inwards the Android SDK Manager.

If you lot cause got an AMD processor inwards your estimator you lot ask the next setup requirements to hold upward inwards place:

  • AMD Processor - Recommended: AMD® Ryzen processors
  • Android Studio 3.2 Beta or higher - download via Android Studio Preview page
  • Android Emulator v27.3.8+ - download via Android Studio SDK Manager
  • x86 Android Virtual Device (AVD) - Create AVD
  • Windows 10 alongside Apr 2018 Update
  • Enable via Windows Features: "Windows Hypervisor Platform"

Windows Hypervisor Platform setting inwards Windows 10

If you lot desire to role Hyper-V at the same fourth dimension every bit the Android Emulator on your Intel processor-based computer, you lot volition also ask the same Android Studio together with Android Emulator versions every bit listed above, simply alongside the additional requirements:

  • Enable via Windows Features: "Hyper-V" - Only available for Windows 10 Professional/Education/Enterprise
  • Intel Processor : Intel® Core processor that supports Virtualization Technology (VT-x), Extended Page Tables (EPT), together with Unrestricted Guest (UG) features. Additionally VT-x needs to hold upward enabled inwards the BIOS.

For to a greater extent than setup tips together with troubleshooting details, cheque out the documentation page.

Again, for existing Windows users who cause got an Intel-based processor, the Android Emulator volition instruct out along to role the faster together with recommended Intel HAXM configuration. For those using AMD processors, together with those who role Hyper-V hypervisors, this should hold upward an exciting stride forrad to get-go using the Android Emulator.

Next Steps & Feedback

Download the latest Android Emulator from the Android Studio 3.2 Beta SDK Manager for the latest functioning updates across all supported platforms that you lot are using. We are going to instruct out along to invest inwards functioning improvements for each of the platforms together with nosotros expect forrad to your feedback together with characteristic requests.

If you lot uncovering a põrnikas or issue, experience complimentary to file an issue. Connect alongside us -- the Android Studio evolution squad ‐ on our Google+ page or on Twitter.