Android 4.4系统的虚拟设备内部储存不会调整 [英] Android 4.4 Virtual Device Internal Storage Will Not Resize
问题描述
在创建使用AVD管理一个新的Android 4.4的虚拟设备,我不能让内部存储为除200MB大。
When creating a new Android 4.4 Virtual Device using the AVD Manager, I cannot get the internal storage to be anything larger than 200MB.
512MB的内部存储容量,我想设置。
512MB is the internal storage size I would like to set.
我已经试过:
- 设置设备的AVD管理器,512MB的内部存储。
- 在Eclipse项目调试配置,目标选项卡下,设置的其他仿真器命令行选项来-partition-512。
- 在Eclipse的preferences,Android的下,我设置的默认仿真器选项-partition-512。
- 编辑我的虚拟设备下,(用户)配置文件/。安卓/ AVD /(设备).avd / config.ini文件
- 然后设置disk.dataPartition.size到disk.dataPartition.size = 512M
- 还试图将其设置为disk.dataPartition.size = 512MB
- 还试图将其设置为data.dataPartition.size = 512M
- Setting the internal storage of the device in the AVD Manager to 512MB.
- In Eclipse project Debug Configurations, under the Target tab, setting Additional Emulator Command Line Options to -partition-size 512.
- In the Eclipse Preferences, under Android, I set the Default emulator options to -partition-size 512.
- Editing the config file for my virtual device under (User)/.android/avd/(device).avd/config.ini
- Then setting disk.dataPartition.size to disk.dataPartition.size=512M
- Also tried setting it to disk.dataPartition.size=512MB
- Also tried setting it to data.dataPartition.size=512M
这发生在ARM和英特尔凌动x86 CPU的。
This happens on both ARM and Intel Atom x86 CPUs.
现在,当我切换到Android 3.0(ARM),我可以调整它只需使用AVD管理器,我的心的内容。是否有一个问题与Android 4.4?有什么我错过了什么?或可能的变通?
Now when I switch over to Android 3.0 (ARM), I can resize it simply using the AVD Manager to my hearts content. Is there an issue with Android 4.4? Is there something I missed? Or a possible work around?
推荐答案
现在,模拟器文件系统EXT4是我能够在
userdata.img
使用重新大小标准的Linux工具。Now that the emulator file system is ext4 I was able to re-size the
userdata.img
using standard Linux tools.# Navigate to AVD cd ~/.android/avd/Nexus5 # Delete old image rm userdata-qemu.* # Re-size the image resize2fs userdata.img 512M # Start the emulator and enjoy emulator @Nexus5
修改 我也能够直接重新大小
用户数据-qemu.img
,但我不得不执行则e2fsck
第一。Edit I was also able to re-size
userdata-qemu.img
directly but I had to rune2fsck
first.e2fsck -f userdata-qemu.img resize2fs userdata-qemu.img 512M
这篇关于Android 4.4系统的虚拟设备内部储存不会调整的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!