Android Emulator 28.0.4 is now available in the Canary and Dev channels.
This update includes two major changes:
- Increase of minimum RAM level for API 26+ images to 1536 MB (Studio default): Recently, users have reported that the emulator is slower than before. We have tracked this down to the AVD RAM size in the AVD's config.ini being set incorrectly. To mitigate this, the 28.0.4 emulator increases the minimum RAM level for API 26+ images to the Studio default (1536 MB). Please file a bug if your AVD's config.ini is not listing hw.ramSize in megabytes. The file can be found in the data directory of the AVD:
- ~/.android/avd/<avdname>.avd/config.ini
- File-backed saving of Quickboot snapshots: a performance enhancement for snapshots.
File-backed saving of Quickboot snapshots
By pre-allocating and mapping guest RAM as a file,
Quickboot snapshots can be saved automatically as the emulator runs, instead of doing all of the work on exit. By default, like before, the Quickboot snapshot is saved on exit and loaded again every time, like suspending and waking a real device.
Because guest RAM is now auto-saved by default, if you want to establish some state in the beginning and repeatedly load from that state, discarding changes in each session, you need to decide in the beginning whether or not to discard changes. This can be done in two ways:
- Add -no-snapshot-save to the command line
- Go to Extended Controls > Snapshots > Settings and switch Auto-save current state to Quickboot to No. (A restart of the emulator is required).
Multiple emulator instances started with
-read-only disable auto-saving, but now use any existing Quickboot RAM file as a common source of copy-on-write memory. This allows the user to start multiple AVD instances that share much of their RAM in common, making it easier to run tests involving multiple devices in parallel.
Snapshots taken and loaded through the Snapshots UI function as they did before.
Since this is a large change in how Quickboot works, we would greatly appreciate feedback on whether it improves Quickboot performance and what kind of issues you encounter when using it.
Other changes
- Accessibility: Added better support for screen readers in the Screen Record and Snapshot UI.
- Location: Virtual GPS device now sends the RMC set of data which additionally includes speed and bearing information. This change will also require a future system image update to take effect. More info
- Graphics: Emulator now supports ASTC LDR compressed textures (GL_KHR_texture_compression_astc_ldr) if using latest API 28 system images.