android-emulator-container-scripts icon indicating copy to clipboard operation
android-emulator-container-scripts copied to clipboard

How can I increase the storage space on the emulator?

Open kelly987654 opened this issue 4 years ago • 1 comments

How can I increase the storage space on the emulator? It looks like it only starts with about 4GB total and 500 MB free. Thanks!

kelly987654 avatar May 04 '21 01:05 kelly987654

here is how I do it.

diskSize="2G"
grep "disk.dataPartition.size=${diskSize}" emu/templates/avd/Pixel2.avd/config.ini ||
  sed -i"" -e "s/$(grep "disk.dataPartition.size" 'emu/templates/avd/Pixel2.avd/config.ini')/disk.dataPartition.size=${diskSize}/g" 'emu/templates/avd/Pixel2.avd/config.ini'

trevjonez avatar May 04 '21 16:05 trevjonez