-
Notifications
You must be signed in to change notification settings - Fork 6
Building ASOP Android VM
Mingyuan Xia edited this page Aug 10, 2014
·
1 revision
install following packages:
zlib-devel.i686 glibc-devel.i686 gperf mesa-libGL-devel.i686 ncurses-devel.i686
Or, if you are in Ubuntu, type: apt-get install git-core gnupg gperf build-essential zip curl zlib1g-dev libc6-dev x11proto-core-dev libx11-dev g++-multilib mingw32 tofrodos python-markdown libxml2-utils ncurses-dev bison libgl1-mesa-dev xsltproc flex And also sun java6 not openjdk! Details for sun java6 installation.
- enlarge the internal storage
*[edit the android_4.1.0/build/target/board/vbox_x86/BoardConfig.mk file, change BOARD_USERDATAIMAGE_PARTITION_SIZE := 209715200] *[edit the android_4.1.0/bootable/diskinstaller/android_img_data_layout.conf file, change num_lba 1200000]
- build:
*[cd to android_4.1.0/] *make clean *export USE_CCACHE=1 *export CCACHE_DIR=~ *prebuilts/misc/linux-x86/ccache/ccache -M 50G *[cd to android_4.1.0/] *source build/envsetup.sh *lunch vbox_x86-eng *make -j4 *make android_disk_vdi
- create a VM, no hard disk (vdi)
- use a) as primary '''IDE''' disk and b) as secondary
a) out/target/product/vbox_x86/android_system_dis.vdi b) out/target/product/vbox_x86/android_data_dis.vdi
- boot Note: do not use .vdi as SCSI disks!
<Alt+F1> to console (<Alt+F7> back to GUI), execute:
setprop net.dns1 132.206.85.18
- [adb is in android-sdk-linux/platform-tools]
- [set port forwarding in virtual box, forward 5555 of host to 5555 of target]
- adb connect localhost:5555
- adb -s localhost:5555 shell
- [now we have a shell to control the android inside virtual box]
- [use "setprop net.dns1 132.206.85.18" to set dns]