切换android x86屏幕分辨率

2024-03-14

我想在我的 Windows 7 上使用 Android-x86 2.2 作为模拟器。我已经下载了 VirtualBox 和 ISO,并用它制作了一个虚拟机,但我无法将分辨率设置为320x480或类似的东西。

以下教程“使用 Android-x86 端口作为模拟器 http://wayback.archive.org/web/20130202181045/http://androiddevnotes.com/2011/03/08/1299521520000.html" 建议插入:

<ExtraDataItem name="CustomVideoMode2" value="320x480x16" />

to my .vbox file and I did it. Then I added UVESA_MODE=320x480 and vga=ask to the boot config. When it boots, I have to press Enter to see the available options, but there is no 320x480 among them. How can I get it to work?


要更改 VirtualBox 上的 Android-x86 屏幕分辨率,您需要:

  1. 添加自定义屏幕分辨率:
    安卓

    VBoxManage setextradata "VM_NAME_HERE" "CustomVideoMode1" "320x480x16"
    

安卓>=6.0:

    VBoxManage setextradata "VM_NAME_HERE" "CustomVideoMode1" "320x480x32"
  1. Figure out what is the ‘hex’-value for your VideoMode:
    2.1. Start the VM
    2.2. In GRUB menu enter a (Android >=6.0: e)
    2.3. In the next screen append vga=ask and press Enter
    2.4. Find your resolution and write down/remember the 'hex'-value for Mode column

  2. 将值转换为十进制表示法(例如360 hex is 864以十进制表示)。

  3. Go to menu.lst并修改它:
    4.1.从 GRUB 菜单中选择Debug Mode
    4.2.输入以下内容:

    mount -o remount,rw /mnt  
    cd /mnt/grub  
    vi menu.lst
    

4.3.添加vga=864(如果你的“十六进制”值是360)。现在它应该看起来像这样:

内核/android-2.3-RC1/内核安静 root=/dev/ram0 androidboot_hardware=eeepc acpi_sleep=s3_bios,s3_mode DPI=160 UVESA_MODE=320x480 SRC=/android-2.3-RC1 SDCARD=/data/sdcard.img vga=864

4.4.保存:

    :wq
  1. 卸载并重新启动:

    cd /
    umount /mnt
    reboot -f
    
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

切换android x86屏幕分辨率 的相关文章

随机推荐