11.2 C
London
Wednesday, November 13, 2024

Android Emulator Stability and Efficiency Updates



Android Emulator Stability and Efficiency Updates

Posted by Neville Sicard-Gregory – Senior Product Supervisor, Android Studio

Searching for a extra secure, dependable, and performant Emulator? Obtain the newest model of Android Studio or guarantee your Emulator is updated within the SDK Supervisor.

A split screen shows Kotlin code on the left and the corresponding Android app display on the right in Android Studio. The app displays the Google Play Store, Photos, YouTube, Gmail, and Chrome icons.

We all know how vital the soundness, reliability, and efficiency of the Android Emulator is to your on a regular basis work as an Android developer. After listening to useful suggestions about stability, reliability, and efficiency, the Android Studio group took a step again from giant function work on the Android Emulator for six months and began an initiative referred to as Venture Quartz. This initiative was made up of a number of workstreams geared toward lowering crashes, dashing up startup time, closing out bugs, and establishing higher methods to detect and stop points sooner or later.

Improved stability and reliability

A key objective of Venture Quartz aimed to scale back Emulator crashes, which may frustrate and block builders, reducing their productiveness. We targeted on fixing points inflicting backend and UI crashes and freezes, up to date the UI framework, up to date our hypervisor framework, and our graphics libraries, and eradicated tech debt. This included:

    • Shifting to a more moderen model of Qt, the cross-platform framework for constructing the graphical consumer interfaces of the Android Emulator, and making it secure on all platforms (as of model 34.2.13/ This was additionally a required change to make sure issues like Google Maps and the situation settings UI continued to work within the Android Emulator.
    • Updating gfxstream, the graphics rendering system used within the Android Emulator, to enhance our graphics layer.
    • Including greater than 600 end-to-end checks to the present pytests take a look at suite.

Consequently, we’ve got seen 30% fewer crashes within the newest secure model of Android Studio, as reported by builders who’ve opted-in to sharing crash particulars with us. Together with extra end-to-end testing, this implies a extra secure, dependable, and better high quality expertise with fewer interruptions whereas utilizing the Android Emulator to check your apps.

A horizontal bar graph showing performance times of different versions of the Android emulator in milliseconds

This chart illustrates the discount in reported crashes by secure variations of the Android Emulator (newer variations are on the prime and shorter is best).

We’ve additionally enhanced our opt-in telemetry and logging to raised perceive and establish the foundation causes of crashes, and added extra testing to our pre-launch launch course of to enhance our means to detect potential points previous to launch.

Improved launch high quality

We additionally applied a number of measures to enhance launch high quality, together with growing the quantity and frequency of end-to-end, automated, and integration checks on macOS, Microsoft Home windows, and Linux. Now, greater than 1,100 end-to-end checks are ran in postsubmit, up from 500 checks previously implementation, on all supported working system platforms . These checks cowl varied situations, together with (amongst different options) totally different Android Emulator snapshot configurations, various graphics card concerns , networking and Bluetooth performance, and efficiency benchmarks between Android Emulator system picture variations.

This complete testing ensures these vital elements operate appropriately and interprets to a extra dependable testing surroundings for builders. Consequently, Android app builders can precisely assess their app’s conduct in a wider vary of situations.

Diminished open points and bugs

It was additionally vital for us to scale back the variety of open points and bugs logged for the Android Emulator by addressing their root trigger and guaranteeing we cowl extra of the use circumstances you run into in manufacturing. Throughout Venture Quartz, we diminished our open points by 43.5% from 4,605 to 2,605. 17% of those have been actively fastened throughout Quartz and the remaining have been closed as both obsoleted or beforehand fastened (e.g. in an earlier model of the Android Emulator) or duplicates of different points.

Subsequent Steps

Whereas these enhancements are thrilling, it isn’t the tip. We’ll proceed to construct on the standard enhancements from Venture Quartz to additional improve the Android Emulator expertise for Android app builders.

As at all times, your suggestions has and continues to be invaluable in serving to us make the Android Emulator and Android Studio extra strong and efficient in your improvement wants. Sharing your metrics and crashdumps is essential in serving to us perceive what particularly causes your crashes so we will prioritize fixes.

You possibly can opt-in by going to Settings, then Look and Conduct, then System Settings, then Information Sharing, and choosing the checkbox marked ‘Ship utilization statistics to Google.’

The Android Studio settings menu displays the Data Sharing settings page, where 'Send usage statistics to Google' option is selected.

You’ll want to obtain the newest model of the Android Emulator alongside Android Studio to expertise these enhancements.

As at all times, your suggestions is vital to us – verify recognized points, report bugs, recommend enhancements, and be a part of our vibrant neighborhood on LinkedIn, Medium, YouTube, or X. Collectively, we will create unimaginable Android experiences for customers worldwide!



Latest news
Related news

LEAVE A REPLY

Please enter your comment!
Please enter your name here