Expanding the size of an Android Virtual Device (emulator) instance?

十年热恋 提交于 2019-12-20 10:34:57

问题


On a relatively new emulator image (AVD) I have about 40mb of free space. How can I expand this?

UPDATE: Just to be clear... I'm talking about the "Internal phone storage" size, not the SD Card size.


回答1:


I think:

$ emulator -partition-size <number of megabytes>

is what you're looking for. I tried a few different values in the emulator and the "internal phone storage" setting seemed to reflect the values I passed in.




回答2:


If you're talking about the SD card size, I believe you'll need to make a new SD card file of a larger file, then load your AVD using the new SD card you've created. They have instructions on how to create an SD card (and load it into an AVD) here: http://developer.android.com/guide/developing/tools/emulator.html#creatingm

Essentially, make the SD card:

$ mksdcard <size> <file>

Then load it into your emulator using the -sdcard argument:

$ emulator -sdcard <filepath>


来源:https://stackoverflow.com/questions/1923526/expanding-the-size-of-an-android-virtual-device-emulator-instance

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!