Android 11 x86 system images for the Android Emulator support ARM ABIs

Android 11 x86 system images for the Android Emulator

Google released the Android 11 Developer Preview 2 earlier this month. With this release, Google made a key change to enable more efficient app debugging on Android Emulator within Android Studio. The Android 11 system images for x86 CPUs now allow applications with C or C++ dependencies to run more smoothly without full ARM emulation and utilizing hardware acceleration and CPU virtualization of x86 hardware.

Android 11 x86 system images
Android 11 x86 system images

Android apps written in native code (i.e. C or C++) must be compiled with different CPU architectures in mind. There must vary versions of the app targetting different CPU architectures like ARM, ARM64, x86, or x86-64. this is often because native code is directly compiled into the machine instructions for the precise architecture as against Kotlin or Java apps which execute on the Android Runtime (ART).

In order to check your app via Android Emulator running on an x86-based computer, you would like a special version for x86 CPU. The x86 version of the app won’t work on smartphones since they’re typically supported ARM or ARM64 CPUs. Until now, the sole resolution to the present problem was to either use a physical Android device or install emulator images with full ARM emulation for x86 CPUs. The latter option is performance-intensive and can’t take full advantage of the hardware acceleration and CPU virtualization that x86 CPUs offer.

To settle this, Google has now released the new Android 11 x86 system images with ARM compatibility. These system images utilize ABIs (application binary interfaces) that intermediate between apps written in several languages or between apps and therefore the OS . The ARM instructions within the ARM binary are exclusively translated to x86 while the remaining of the code continues to be executed in x86. thanks to this isolation of ARM binaries, the method is a smaller amount performance-intensive and runs even on low-level hardware.

Besides enabling easier debugging of Android apps using C++ dependencies, it’ll also allow developers to only publish the ARM version of their apps along side ABIs rather than an x86 version for Chromebooks within the future. this may spur support for more Android 11-targeted apps on a spread of Chromebooks.

The new x86 compatible Android 11 system images are often downloaded within Android Studio using the Android Virtual Device Manager or the SDK Manager.


Source : XDA – Developers