Skip to content

Instantly share code, notes, and snippets.

@petrkle
Last active February 21, 2016 23:25
Show Gist options
  • Save petrkle/6763586 to your computer and use it in GitHub Desktop.
Save petrkle/6763586 to your computer and use it in GitHub Desktop.
Android-x86 + VirtualBox
title Android-x86 4.3-phone
kernel /android-4.3-test/kernel quiet root=/dev/ram0 androidboot.hardware=android_x86 video=-16 SRC=/android-4.3-test DPI=160 UVESA_MODE=480x854
initrd /android-4.3-test/initrd.img
title Android-x86 4.3-tablet7
kernel /android-4.3-test/kernel quiet root=/dev/ram0 androidboot.hardware=android_x86 video=-16 SRC=/android-4.3-test DPI=160 UVESA_MODE=1024x768
initrd /android-4.3-test/initrd.img
title Android-x86 4.3-tablet10
kernel /android-4.3-test/kernel quiet root=/dev/ram0 androidboot.hardware=android_x86 video=-16 SRC=/android-4.3-test DPI=160 UVESA_MODE=1280x900
initrd /android-4.3-test/initrd.img
title Android-x86 4.3-test (Debug mode)
kernel /android-4.3-test/kernel root=/dev/ram0 androidboot.hardware=android_x86 video=-16 DEBUG=2 SRC=/android-4.3-test
initrd /android-4.3-test/initrd.img
VBoxManage setextradata android "CustomVideoMode1" "480x854x16"
VBoxManage setextradata android "CustomVideoMode2" "1024x768x16"
VBoxManage setextradata android "CustomVideoMode3" "1280x900x16"
qemu-nbd -P 1 -c /dev/nbd0 /home/data/virtual-box/android/android.vdi
mount /dev/nbd0 /mnt/tmp/
umount /mnt/tmp/
qemu-nbd -d /dev/nbd0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment