Android 4.4 Virtual Device Internal Storage Will Not Resize

前端 未结 10 1695
鱼传尺愫
鱼传尺愫 2020-12-07 13:36

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 stora

10条回答
  •  旧时难觅i
    2020-12-07 13:57

    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
    

    Edit I was also able to re-size userdata-qemu.img directly but I had to run e2fsck first.

     e2fsck -f userdata-qemu.img
     resize2fs userdata-qemu.img 512M
    

提交回复
热议问题