banner



How To Install Android X86 On Virtualbox

This tutorial shows how to utilise VirtualBox to accelerate debugging of Android apps with native components. We will evidence how to create an Android VirtualBox VM, configure information technology for debugging and utilise VisualGDB to debug the San-Angeles projection. Before yous begin, download the latest VirtualBox and become an x86 Android ISO from the android-x86.org website.

  1. Install and run VirtualBox. Click the "New" button to create a new VM:01-virtualbox
  2. Select "Linux -> Other Linux (32-scrap)" as the machine blazon:02-android
  3. Proceed with the default retention size:03-memory
  4. Select "Create a virtual difficult disk now":04-makedisk
  5. Proceed with the default virtual disk format:05-disktype
  6. On the side by side folio select "dynamically allocated":06-dynamic
  7. Finally y'all can customize the disk size. The default value of 8GB should be enough for virtually cases:07-makedisk
  8. Before yous tin can start installing the Android OS into your VM, yous need to mount the ISO file in it. Click "Settings" to open the VM settings:08-settings
  9. Go to the "Storage" tab, select the empty CD-ROM device and click the disc icon to scan for a disc epitome:09-disk
  10. Specify the path to the Android image y'all downloaded. It will appear in the Settings window:10-androidimg
  11. Go to the network settings and select either Host-only adapter (if you don't accept a local DHCP server) or Bridged manner (if your network has a DHCP server):10a-network
  12. Finally press OK to salve the settings and first the VM:11-start
  13. In the boot menu select "Installation" and press Enter:12-bootmenu
  14. Wait until the Android Os boots:13-boot
  15. Select "Create/modify partitions":14-partition
  16. Select "New" to create a new partition:15-new
  17. Select "Primary" to create a partitioning that can be used to shop a bootable Os:16-primary
  18. Keep with the size suggested by the sectionalization utility. By default the new division volition cover the entire disk: 17-size
  19. Select the "Bootable" button and printing Enter to marking the segmentation as bootable:18-boot
  20. Finally select "Write" and press Enter to save the partition table to the disk:19-write
  21. Type "yes" and press Enter to confirm the write:20-yes
  22. Now you can select the newly created partition in the sectionalisation list and press OK:21-sda1
  23. Choose to format it with the ext3 filesystem:22-ext3
  24. Confirm the format performance:23-format
  25. Choose "Yes" to install the boot loader so that yous can boot into the operating system:24-grub
  26. Choose to brand the system directory writable as this will permit fixing permission problems described later:25-rw
  27. The Android Bone will at present be installed. Once the installation completes, cull "Reboot":26-reboot
  28. To avert booting into the installer again, open VM properties and remove the virtual CD-ROM device:17-remove
  29. Once the Os boots, select your language and press the button to the correct to continue: 27-english
  30. If you cannot see the mouse pointer, try toggling the mouse integration in the Input menu:28-mouseint
  31. Skip the WiFi choice as we will be using a virtual network adapter anyhow:29-skipwifi
  32. Enter the user name that will be associated with your virtual Bone installation:30-demouser
  33. At present the installation is complete and you lot tin can finally beginning using your OS. It is recommended to create a VM snapshot at this point so that you tin return to information technology later if something breaks:31-desktop
  34. Open up the Final app from the apps list and run the following commands to prepare the run-equally permission bug and determine the current IP address:

    32-configUnless you update the permission on the run-as tool, you won't be able to debug native Android lawmaking, equally the Android system won't be able to launch the gdbserver under the correct user account.
  35. Open up a command prompt window on your Windows auto and run the "adb connect <IP Accost>:5555" command followed by "adb crush". You should encounter the Android beat out of your virtual device:33-shellYou can shut the crush by pressing Ctrl-D and exit the command prompt window.
  36. Now nosotros will evidence how to create and debug a basic OpenGL app with Visual Studio and VisualGDB. Start Visual Studio and launch the VisualGDB Android Projection Magician:34-androidprj
  37. Select "Clone a sample from NDK":35-clone
  38. Select the san-angeles projection from the sample list:36-sanangeles
  39. Select the Android Bone version that matches the version yous installed into VirtualBox and select "x86" as the hardware platform:37-x86
  40. Once the project is created, remove the app-linux.c and app-win32.c files:38-remove
  41. Build the project with Ctrl-Shift-B:39-build
  42. If your Android VM screen appears blank, the Android Bone has most likely gone into the sleep mode and won't react on keyboard and mouse events. Use the Car->ACPI shutdown control to wake information technology up by emulating the ability push button press: 40-wakeup
  43. Striking F5 in Visual Studio to showtime debugging. Yous volition see the san-angeles demo being rendered in the VirtualBox window:41-demo
  44. Gear up a breakpoint somewhere in the code (e.1000. in the camTrack() part). It should hitting as before long as the role gets executed:42-break
  45. Y'all can now use the normal Visual Studio debugging techniques to debug your application. If you are using the Clang-based IntelliSense that comes with VisualGDB, you lot can also utilize avant-garde features like Preprocessor Lens and C++ Code Map:43-codemap

Source: https://visualgdb.com/tutorials/android/virtualbox/

Posted by: dealusio1963.blogspot.com

Related Posts

0 Response to "How To Install Android X86 On Virtualbox"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel