emulation - How to setup an Android Virtual Device with a data partition larger than 200 MB? -


whatever do, can't setup virtual android device /data partition larger 200 mb. what's proper/definitive way setup or grow /data partition?

i assuming there bug somewhere in 1 of tool, looking workaround.

using avd tool creates new avd doesn't seems setup value entered in 'internal storage' field although 'disk.datapartition.size' parameter appropriate value:

$ grep "size" *.ini config.ini:disk.datapartition.size=1024m config.ini:sdcard.size=512m hardware-qemu.ini:disk.cachepartition.size = 66m hardware-qemu.ini:disk.systempartition.size = 550m hardware-qemu.ini:disk.datapartition.size = 1g 

just listing files ...

$ ls -alsh total 979m    0 drwxr-xr-x 12 user staff  408 jui 13 11:35 .    0 drwxr-xr-x  7 user staff  238 jui 13 11:38 ..  66m -rw-------  1 user staff  66m jui 13 11:38 cache.img 4,0k -rw-r--r--  1 user staff  668 jui 13 11:34 config.ini 4,0k -rw-r--r--  1 user staff 1,8k jui 13 11:35 hardware-qemu.ini 512m -rw-r--r--  1 user staff 512m jui 13 11:38 sdcard.img 200m -rw-------  1 user staff 200m jui 13 11:38 userdata-qemu.img 200m -rw-r--r--  1 user staff 200m jui 13 11:34 userdata.img 

then on lauching virtual device, disk free says it's 200mb:

$ adb shell df filesystem               size     used     free   blksize /dev                   373.7m   128.0k   373.6m   4096 /sys/fs/cgroup         373.7m    12.0k   373.7m   4096 /mnt/asec              373.7m     0.0k   373.7m   4096 /mnt/obb               373.7m     0.0k   373.7m   4096 /system                541.9m   260.8m   281.1m   4096 /data                  197.0m    31.3m   165.7m   4096 /cache                  65.0m     4.1m    60.9m   4096 /mnt/media_rw/sdcard   510.0m    22.0k   510.0m   2048 /storage/sdcard        510.0m    22.0k   510.0m   2048 

then, if try proposed in question: android 4.4 virtual device internal storage not resize

then volume ends mounted read-only means it's pretty useless:

$ adb install someapp.apk pkg: /data/local/tmp/someapp.apk failure [install_failed_insufficient_storage] rm failed /data/local/tmp/someapp.apk, read-only file system 

and visible @ boot time ...

$ adb shell dmesg ... <2>ext4-fs error (device mtdblock1): ext4_mb_generate_buddy:741: group 2, 32366 clusters in bitmap, 32370 in gd <3>aborting journal on device mtdblock1-8. <2>ext4-fs (mtdblock1): remounting filesystem read-only <2>ext4-fs error (device mtdblock1) in ext4_reserve_inode_write:4356: journal has aborted <2>ext4-fs error (device mtdblock1) in ext4_evict_inode:171: journal has aborted <4>qemu pipe device:rw, wait_event error ... 

my setup:

  • osx 10.10.3
  • android sdk (latest of june 13th 2015)
  • android sdk tools 24.3.2

after modifying disk.datapartition.size parameter in config.ini , wipe data of avd in android virtual device manager

.enter image description here

starting emulator after above step create data partition size in config.ini.


Comments

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -