Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can Not Increase Android Emulator Internal Storage

Tags:

I can't increase android emulator internal storage more than 533 MB even I already tried:

  1. Edit disk.dataPartition.size=1G in config.ini file
  2. change the configuration on Android Virtual Device Manager like screen shoot below.

But the android emulator internal storage still 533 MB

enter image description here My setting for emulator

  1. android studio 1.3.1
  2. Nexus 5 emulator profie
  3. Target sdk 5.1.1
  4. cpu x86_64
like image 318
Plugie Avatar asked Aug 17 '15 01:08

Plugie


People also ask

How do I get more storage on my Android Emulator?

On Android StudioClick Edit Icon to edit the AVD. Click Show Advanced settings. Change the Internal Storage, Ram, SD Card size as necessary. Click Finish.

How do I increase my emulator memory?

Go to Tools->Android->AVD Manager , there's something like pencil to edit your AVD click on that, then in the pop-up window click Show Advanced Settings and there you can change the RAM size.

Where are Android Emulator files stored?

All applications and files that you have deployed to the Android emulator are stored in a file named userdata-qemu. img located in the C:\Users\<username>\. android\avd\<avd_name>. avd folder.

How to increase Android phone internal memory storage?

Now, restart their phone by navigating to the "reboot system now " option located on the recovery mode itself, and view phone internal memory storage via clicking "Menu>Settings>Storage ." Method 7. Use Mounts2SD App Last but not least, here, we also want to share another effective method to increase android internal storage.

How to change the RAM and memory of an emulator?

Select the emulator which you want to make changes then click on the edit button associated to it: 3. Click on the Show Advanced Settings button to expose hidden things: 4. Scroll down a little bit to the Memory and Storage section. Here you can set your desired amount of RAM and memory.

How do I change the size of the Android emulator disk?

If you have the M1 Mac and the preview version of Android Emulator, then you'll need to go to /Applications/Android Emulator.app/Contents/MacOS/api30-gphone-arm64-v8a/config.ini (as an example) and change the disk.dataPartition.size property to your desired size. The reference is in the GitHub repo. Best regards. Show activity on this post.

How to increase phone memory in Windows 10?

Now, following the below steps to increase phone memory: 1 Step 1. Click " Settings > Storage. " 2 Step 2. View the total storage and other useful information related to Storage such as Used space, System memory, Cached... More ...


1 Answers

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.

 

UPDATE

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:

  1. Delete the old emulator images
  2. Resize the userdata image file to wanted value
cd ~/.android/avd/yourEmulatorName rm userdata-qemu.* resize2fs userdata.img 1024M 
like image 158
Henrique Avatar answered Sep 23 '22 18:09

Henrique