Hello.
I have the following problem. I add my own service to the Android framework. After the build I run emulator with the built image. (It is possible just to use emulator command, but I use the following script:
out/host/linux-x86/bin/emulator -sysdir out/target/product/generic/ -system out/target/product/generic/system.img -ramdisk out/target/product/generic/ramdisk.img -data out/target/product/generic/userdata.img -kernel prebuilt/android-arm/kernel/kernel-qemu -sdcard sdcard.img -skindir sdk/emulator/skins -skin WVGA800 -scale 0.7
But sometimes there are not enough memory and my service is killed and restarted constantly. I know that by default RAM size is 96 Mb. Can I increase RAM memory using emulator option? (for instance, can I use adb setprop hw.size 512 or this option won't change the RAM size?)
I also know that it is possible to create an avd with the defined RAM size but I do not know how to run built image with this avd.
Thank you in advance.