Play an Android game with Android-x86 and VirtualBox

Source: Internet
Author: User

The current system is Ubuntu 14.04, recently played a flash version of the "Royal Trooper: Frontline" tower defense game, or want to try native Android game performance. There are about two options to discover:

All kinds of Android Simulator: Official SDK Simulator, Bluestacks (Win), Genymotion (cross-platform)

Android-x86, an open-source project for Cow B, ported Android to the x86 platform, allowing it to run smoothly on a PC or virtual machine.

The system has been installed VBox, so the second option is straightforward.

1. Download the android-x86 system image file

First download to Http://www.android-x86.org/download

Currently the latest version is 4.4R1, image file about 300 MB

2. Create a virtual machine on VirtualBox

New operating system Select Linux, version select Linux 2.6/3.0

After the virtual machine is created, you need to modify some of the configuration

Nic Control chip selection Pcnet-pci III, sound control chip set to Soundblaser 16

After setting the virtual machine's optical drive to the android-x86 ISO you just downloaded, start the virtual machine and start the installation

3. Install android-x86 to the virtual machine

Install Android to hard drive, select Install Android-x86 to harddisk

The next step is to enter the installation screen, and choose from the following:

Chooes patition create/modify partition,ok ==> New ==> primary ==> size using default size ==> bootable ==> Write ==> ; Yes ==> Quit

Then select the First partition, OK ==> Select File system Format (EXT3) ==> Yes, format ==> Grub ==> whether to provide/system writable (set to read and write can be more convenient debug, But will take up more space and installation time), choose Yes ==> start Android ==> reboot (reboot).

Note that the virtual machine's optical drive is unloaded and the reboot will automatic access to Android system

4. Custom Virtual Machine Resolution

Development will definitely need to test different resolutions, although I do not develop, but the software in the wonderful resolution can not work, it is questionable. So let's set it up.

Set Virtual Box First

VBoxManage.exe "Setextradata"android-x86 "CustomVideoMode1" "800x480x16"

Where android-x86 is the name of the virtual machine,800x480x16 This is a custom resolution, I changed to a horizontal version of the resolution, the following 16 refers to 16-bit color, do not modify

After the modification, start the virtual machine, select the option after the Android splash screen and press two E key to edit the kernel boot parameters, add a parameter Vga=ask

After editing, press ENTER to save the modified results, then go back to the previous page, at this time, press the B key to start

You will be prompted to press ENTER to enter the resolution selection screen and press ENTER to continue

After entering the page, you can see all the supported resolutions of the system, looking for the resolution of the previously set 800x480, note the previous 16 binary code 360, if you want to start the virtual machine at that resolution, enter 360 and then return

If you want Android to start the virtual machine directly at the specified resolution, you can edit the grub menu.list file and save it after adding vga=360 at the end of the first kernel line.

Add: Keyboard keys for home page, back, shutdown, menu in virtual machine
Home key, Win key
Menu key, keyboard menu key, usually on the right side of the win key and CTRL key
Back key: Right mouse button/esc key
Shutdown key: End key/f4 Key (2.2 is short press. 2/3 looks like a long press)
Back to main interface: Home key/windows Key

Switch between Chinese and English: Space+shift

PS: Some of the above keys can achieve the corresponding function, some do not

5. Install the game

The network default configuration is NAT and can be connected directly to the Internet. You can use Google Play to install the software (Google Account, of course), or open a browser directly from other websites to download, install.

Can I download it on the host and then copy it to the virtual machine and install it? The answer is yes. Need to use the ADB command in the official SDK

6. Mouse control

Some tablets can be connected to the USB mouse to operate, the interface will appear analog mouse. In fact, this system can be simulated Android tablet, the virtual machine detected by the USB mouse device directly assigned to the virtual machine to use it! ~~

Host can use the touch pad on top, hehe

enjoy!

Play an Android game with Android-x86 and VirtualBox

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.