I can’t increase android emulator internal storage more than 533 MB even I already tried:
- Edit disk.dataPartition.size=1G in config.ini file
- change the configuration on Android Virtual Device Manager like screen shoot below.
But the android emulator internal storage still 533 MB
- android studio 1.3.1
- Nexus 5 emulator profie
- Target sdk 5.1.1
- cpu x86_64
You can resolve this resizing the userdata.img file located on your avd emulator folder:
cd ~/.android/avd/yourEmulatorName e2fsck -f userdata-qemu.img rm userdata-qemu.* resize2fs userdata.img 1024M
Now start your avd emulator again and you’ll see that it’s storage was increased. Windows users can do this with Cygwin enabling the “e2fsprogs” package on install/update.
P.S.: You must change 1024M to your wanted value of internal storage.
The e2fsck is not really necessary, as pointed on comments by @BoD.
So all you need to increase the internal storage is run two commands on your target emulator folder.
In other words, you must:
- Delete the old emulator images
- Resize the userdata image file to wanted value
cd ~/.android/avd/yourEmulatorName rm userdata-qemu.* resize2fs userdata.img 1024M
I tried many time to increase internal storage of an existing avd but didn’t succeeded, the answer: delete the current avd and set the internal storage while creating it