How does the Android emulator emulate the RAM?
How does the Google Android emulator emulate the RAM?
Does it use the physical RAM of the host or use secondary memory like the hard disk?
Android Virtual Devices are emulated using https://developer.android.com/studio/run/emulator-commandline hypervisor which use physical memory. As any process, the allocated memory pages can be unmapped and swapped to disk or other storage by the host system.
For more information: https://raw.githubusercontent.com/android/platform_external_qemu/master/docs/QEMU-MEMORY-MANAGEMENT.TXT