Phone UI in virtualbox

235 views
Skip to first unread message

pablo...@gmail.com

unread,
Jul 22, 2014, 10:57:19 AM7/22/14
to andro...@googlegroups.com
Hi,

I've installed android-x86 as a virtualbox guest.
It's very fast and works well.

I'm getting a UI and screen size of an android tablet.
When apps hav a specific phone UI I would like to see it in the vbox guest.
Is it possible to configure it to work as a phone?
Do I need to change resolution or DPI?
Do I need to change anything on vbox guest or android-x86 installation?

Thanks


Verachten Bruno

unread,
Jul 23, 2014, 3:38:40 AM7/23/14
to android-x86
Hi,

could this help you?
http://stackoverflow.com/questions/6202342/switch-android-x86-screen-resolution


Kind regards,
Bruno Verachten

pablo...@gmail.com

unread,
Jul 26, 2014, 1:38:54 PM7/26/14
to andro...@googlegroups.com
Thanks for the SO answer.

I'm adding vga=ask to the boot config and than choosing 320x200x16 as suggested in the SO answer.
I'm getting a phone screen but it's very small and in landscape mode.

How can I increase the DPI so I'll still have phone screen but with larger pixels / better resolution?
How can I rotate the screen to portrait mode?
Can I make the vbox guest save the boot parameters so I won't have to add them manually each time?

Thanks

Verachten Bruno

unread,
Jul 28, 2014, 11:54:04 AM7/28/14
to android-x86
I can't remember where I found the info. This is not my work, just a
copy of something I found on the web:

"The first step is to define custom resolution modes. For example, you
can define 3 modes:

VBoxManage setextradata "Android4.3" "CustomVideoMode1" "320x480x16"
VBoxManage setextradata "Android4.3" "CustomVideoMode2" "640x960x16"
VBoxManage setextradata "Android4.3" "CustomVideoMode3" "480x720x16"

“Android4.3″ is the name of the virtual machine in VirtualBox.

To be able to use these modes, we now have to change the kernel
parameters. Once again, we'll restart the VM, and choose the debug
mode on the boot menu in order to have a command line.
...

To be able to modify the boot partition, we have to remount it with
read/write permission.

mount -o remount, rw /mnt

The ',' is ';' on an azerty keyboard, '/' is '!'

Then, we can edit the /mnt/grub/menu.lst file (vi is your friend).

Duplicate the first menu entry (3 lines) and then edit the kernel
parameters(the first “title” entry and two following lines.)

Add a parameter for each duplicate corresponding to your resolution
choice: UVESA_MODE=480x720 SRC=/android-2.3-RC1

Set what you want for the title.

If you want to be able to select the resolution at boot time, you can also use:

quiet root=/dev/ram0 androidboot_hardware=generic_x86
acpi_sleep=s3_bios,s3_mode vga=ask SRC=/android-2.3-RC1

Save your menu.lst (:wq) and reboot the VM using the VirtualBox menu."

pablo...@gmail.com

unread,
Jul 29, 2014, 6:28:36 AM7/29/14
to andro...@googlegroups.com
I think that I already have the resolution modes in vbox and android by default because I can choose 320x200x16.
How do I increase the pixel "size"? Do I need to increase the DPI?
How can I rotate the screen so I'll get portrait mode but the phone will be vertically and not rotated in 90 degrees?

This is how to select a mode by default?

 mount -o remount, rw /mnt

 quiet root=/dev/ram0 androidboot_hardware=generic_
x86
acpi_sleep=s3_bios,s3_mode vga=ask SRC=/android-2.3-RC1

Save your menu.lst (:wq) and reboot the VM using the VirtualBox menu."

Meerio

unread,
Jul 30, 2014, 6:26:02 AM7/30/14
to andro...@googlegroups.com
i've downloaded nomone resolution changer, if  you modify the dpi you get phone ui
Reply all
Reply to author
Forward
0 new messages