I want to edit or change the ram size while creating the android emulator from command line.
EX: While creating the emulator it\'s taking default ram size(Android S
You need to find the config file for the AVD that you have created.
In my case, I'm running the AVD on Ubuntu, so this is where I found the config file.
~/.android/avd/emulator.avd/config.ini
"emulator" was the name I provided when I created the AVD, so the directory name will depend on what you provided.
The following is what is inside the config.ini file:
hw.lcd.density=240
skin.name=WVGA800
skin.path=platforms/android-8/skins/WVGA800
hw.cpu.arch=arm
abi.type=armeabi
vm.heapSize=64
hw.ramSize=1024
image.sysdir.1=platforms/android-8/images/
I increased my heap size from 24 to 64, and added the ram size parameter.
For the list of parameters you can add, refer to: Managing AVDs from the Command-line