如何制作AVD与> 768MB RAM模拟Galaxy设备 [英] How to make an AVD with > 768MB RAM To emulate Galaxy devices

查看:258
本文介绍了如何制作AVD与> 768MB RAM模拟Galaxy设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试仿效Galaxy Note 2,它包含2GiB RAM和一些像s-pen和TouchWiz这样的定制硬件。我创建了一个2GB的模拟器。模拟器不会启动,其实它是崩溃的日食。我也想仿效多屏幕TouchWiz的支持。在任何模拟自定义平台(如TouchWiz)的任何地方,我都看不到任何信息。有任何想法吗?我需要一个体面的测试平台的Galaxy系列,但我甚至不能得到基本的安卓工作。



编辑:三星开发页面显示这个设置: http://developer.samsung.com/forum / thread / emulator-size-for-galaxy-note-2- / 77/178557



这是缺少可用的ram吗?

解决方案

使用在配置文件中手动添加mb在内存大小后面的建议(如本线程所示:Android:无法分配内存)(位于:%USERPROFILE%/。android / avd / name-of -your-avd / config.ini)已经解决了这里的768mb问题!



这个例子现在可以用于我的win7 x64终极os -with-dedicated gpu;

  avd.ini.encoding = ISO-8859-1 
hw.sdCard = no
hw.devi ce.manufacturer = Google
hw.mainKeys = no
hw.lcd.density = 320
hw.accelerometer = yes
hw.dPad = no
hw.cpu .arch = x86
skin.name = 720x1280
abi.type = x86
hw.device.hash = 1197498893
hw.trackBall = no
hw.device。 name = Galaxy Nexus
hw.camera.back = none
hw.sensors.proximity = yes
hw.battery = yes
disk.dataPartition.size = 512M
hw.gpu.enabled = yes
image.sysdir.1 = system-images\android-18\x86\
hw.audioInput = yes
hw.sensors.orientation = yes
hw.camera.front = none
hw.gps = yes
skin.dynamic = yes
skin.path = 720x1280
hw.keyboard = yes
vm.heapSize = 128
hw.ramSize = 2048mb

我已经在两个测试了机器,我的桌面和笔记本电脑都运行Windows 7 X64 Ultimate



笔记本电脑有一个英特尔I7-4702MQ与12GB RAM和GeForce GTX765M
该桌面有一个英特尔I7-3820具有32GB RAM,在Crossfire中拥有Ati 6950和Nvidia GTX560Ti(通常用于物理x)。



桌面仅在使用交火的情况下可靠地启动gpu加速才有问题,其他的,我根本没有模拟器的问题,甚至管理使用256VM堆分配4096MB RAM(但是增加128以上的VM堆似乎在这里极大地减缓了仿真器的启动)。在桌面上,我还测试了4096MB的安装程序甚至使用RAMDISK,但这并没有提高性能太多。



在几次测试后,启动和响应速度的最佳设置(在我的经验中)
2048与128mb VM堆大小,启用gpu加速。



希望这有助于别人!


I am trying to emulate the Galaxy Note 2 which contains 2GiB RAM and some custom hardware like the s-pen and TouchWiz. I created an emulator with 2GB to start with. The emulator won't launch, in fact it is crashing eclipse. I would also like to emulate multi-screen TouchWiz support. I don't see any info anywhere on emulating custom platforms like TouchWiz. Any ideas? I need a decent testing platform for the Galaxy series, but I can't even get basic android working.

edit: The Samsung dev page shows this setup: http://developer.samsung.com/forum/thread/emulator-size-for-galaxy-note-2-/77/178557

Is this a lack of available ram?

解决方案

using the suggestion of manually adding "mb" behind the memory size in your configuration file (as suggested in this thread: Android: failed to allocate memory ) (located at: %USERPROFILE%/.android/avd/name-of-your-avd/config.ini) has solved the 768mb problem here!

example that now works on my win7 x64 ultimate os -with- dedicated gpu;

avd.ini.encoding=ISO-8859-1
hw.sdCard=no
hw.device.manufacturer=Google
hw.mainKeys=no
hw.lcd.density=320
hw.accelerometer=yes
hw.dPad=no
hw.cpu.arch=x86
skin.name=720x1280
abi.type=x86
hw.device.hash=1197498893
hw.trackBall=no
hw.device.name=Galaxy Nexus
hw.camera.back=none
hw.sensors.proximity=yes
hw.battery=yes
disk.dataPartition.size=512M
hw.gpu.enabled=yes
image.sysdir.1=system-images\android-18\x86\
hw.audioInput=yes
hw.sensors.orientation=yes
hw.camera.front=none
hw.gps=yes
skin.dynamic=yes
skin.path=720x1280
hw.keyboard=yes
vm.heapSize=128
hw.ramSize=2048mb

I have tested this on two machines, my desktop and laptop both running Windows 7 X64 Ultimate

The Laptop has an Intel I7-4702MQ with 12GB ram and GeForce GTX765M The Desktop has an Intel I7-3820 with 32GB ram and has Ati 6950 in Crossfire and an Nvidia GTX560Ti (normally for physx).

The desktop only has issues in reliably starting the gpu acceleration while using crossfire, other then that i've had no issues with the emulator at all and even managed to assign 4096mb RAM with a 256VM Heap (however increasing the VM-heap above 128 seems to slowdown emulator initiation tremendously here)

On the desktop i also tested the 4096MB setup while even using a RAMDISK but this didn't increase performance too much.

Best settings overall (in my experience) in startup and responsiveness after just a few tests; 2048 with 128mb VM Heap size, gpu acceleration enabled.

Hope this helps out others!

这篇关于如何制作AVD与> 768MB RAM模拟Galaxy设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆