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 is the internal storage size I would like to set.
I've tried:
- 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
This happens on both ARM and Intel Atom x86 CPUs.
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?
To build up on @Frohnzie's answer, resize2fs and e2fsck are now included in the SDK Tools (you may need to update your SDK tools to see them) so you don't need to install them separately. They are located under yourAndroidSDKFolder/tools/bin (Windows, Linux) or yourAndroidSDKFolder/tools/bin64 (Mac, Linux).
For me it was an issue when I accidentally chose the AOSP 4.4.2 emulator in Android Studio. The Google Inc. x86 emulator (below) doesn't seem to have this bug.
If you are still having this issue in 2016, try deleting the image from AVD manager, and then add back the emulator.
It seemed like I could not resize the emulator no matter what I do, but it worked when I deleted the image and then recreated image with 1GB internal storage.
I was able to create this virtual device, maybe change your device type or something?
Even above suggestion can cause to android emulator hang on boot logo. The reason is that resize2fs do the changes thats are right in general but considered as broken fs by android and prevent it to mount it in rw mode, that hangs up the boot process.
Examening boot logs shows something like that:
Event e2fsck does not fix it for android and to workaround it i use tune2fs to change the way how android should continue to mount broken fs.
Assaf G.'s answer is good. But i have noticed in the following links in the first one user is able to create
Emulator
with internal storage500MB
. But he is getting someexceptions
but not related to internal storage. And in the other link user able to createemulator
with internal memory4096MB
. But he is facing speed problems. So i think you have to try with specifications provided in first link.1.Android 4.4 Emulator
2.android emulator forever launching