How to Install Android 9.0 On VirtualBox for Hacking

Android is the most used open source, Linux-based Operating System with 2.5 billion active users. Because of its wide range of application support, users also want to run it on personal computers.

For Mobile penetration testing, it is essential to have an android virtual machine. This android virtual machine is helpful in testing several security tools and techniques, to know how to hack android devices and to maintain access after exploiting an android device.

We will install the Android version 9 (latest up to the date) on VirtualBox. You can also install it on VMware. Before installation there are some prerequisites to follow:

Prerequisites:

  1. VirtualBox should be installed
  2. At least 4GB of RAM is required
  3. At least 20GB to 30GB of free disk space
  4. Virtualization feature should enable on the processor

 

Installation Steps:

Step.no: 01 Download an android iso file from an official site https://www.android-x86.org/

Select the version you wanted to install. (i.e. Android 9.0-r2)

Step.no: 01 Download an android iso file from an official site

This gives you two sites to download this iso file. Download it from here

Download it from hereI will download 64-bit image file.

I will download 64-bit image file.

Step.no 02 Create an Android virtual machine

Select option “New” to create a virtual machine.

Step.no 02 Create an Android virtual machine

Type name of the machine, select OS type as Linux, select version of OS as Linux 2.6 / 3.x / 4.x (32 bit or 64 bit) then Click on Next.

select OS type as Linux, select version of OS

Select Memory size to be allocated, normally 2GB of RAM is sufficient for Android.

Select Memory size to be allocated

Create a virtual hard disk, the recommended size of the hard disk is 8GB.

Create a virtual hard disk

Next it will ask a hard drive file type so, leave it default as we want to make a VDI file.

Next it will ask a hard drive file

It will ask then the storage on the physical hard drive, select this option based upon your requirement. The best practice is to select default i.e. “Dynamically allocated”

Dynamically allocated

Select the File location and size of this android VDI hard drive. We will give it at least 10GB of memory. You can specify it according to your resources but remember at least 8GB is required for this machine.

Select the File location and size of this android VDI hard drive

Step.no 03 Configure the virtual machine

Now right click on the machine and go to settings.

Step.no 03 Configure the virtual machine

Select ”System”, in Processor section give atleast 2 processors to your android machine and enable “PAE/NX” option

System

In Acceleration section make default the paravirtualization interface option and enable Nested Paging.

Acceleration section

 

Now in the next step, set up display settings. Go to Display and increase your Video memory to at least 128Mb or more. And in the Graphics controller, change VMSVGA to VBoxVGA.

change VMSVGA to VBoxVGA

Go to Storage tab and select Controller: IDE, select Empty and from the right most corner select the tiny CD icon from where you can browse the ISO file that you have downloaded on your PC. Select the image file.

Select the image file

You have successfully created an android virtual machine on your virtual box.

Step.no 04 Install Android 9.0 to harddisk

Start the machine

Step.no 04 Install Android 9.0 to harddiskHere you can see many options to install android 9.0 on hard disk. The easiest and simplest way is to go in “Advance options…” tab.

Select “Auto Installation – Auto Install to specified harddisk” and press Enter.

Auto Installation - Auto Install to specified harddisk

This will be asking that you have chosen Auto installation option, the installer will erase the whole /dev/sda and install Android 9.0 to it. Select Yes and press Enter.

install Android 9.

Now select reboot option and hit ok.

Now select reboot option and hit ok

You must detach the iso file from the machine in order to save the state of your machine and prevent it from running the installation steps again and again.

Go to Storage section and remove the disk image from virtual drive.

Go to Storage section and remove the disk image from virtual drive.

Step.no 05 Finally run the Android 9.0 machine on virtual box

Start the virtual machine again and select first option to boot your android virtual machine. it will start booting the installed android OS.

Step.no 05 Finally run the Android 9.0 machine on virtual box

This logo will appear after 2-3 minutes. And this means your android machine is ready to use.

Some post configuration needs to be set up at first. Select your language.

Some post configuration needs to be set up at first. Select your language.Select the “VirtWifi” option to connect to the internet.

Select the “VirtWifi” option to connect to the internet.

Enter your Gmail ID or skip this step.

Enter your Gmail ID or skip this step.

Set the date and time of your region.

Set the date and time of your region.

Select the “Accept” option.

Select the “Accept” option.

And finally, You have got an android 9.0 virtual machine on your virtual box.

And finally, You have got an android 9.0 virtual machine on your virtual box.

This article shows the easiest and shortest method to install and run Android 9.0 virtual machine in windows 10. And you can also follow the same method for QEMU & VMware.

This is a great way to get more familiar with standard Android OS and use it to learn mobile penetration testing of android application.

 

Ehacking Staff
With more than 50 global partners, we are proud to count the world’s leading cybersecurity training provider. EH Academy is the brainchild of Ehacking, which has been involved in the field of training since the past Five years and continues to help in creating professional IT experts.

Most Popular

Top Suggestions To Minimize Cyber Attack Risks

The Cyber Protection and Cyber Attack definition play an important role in maintaining both global security and operational productivity due to the rapid proliferation...

Policing the Dark Web (TOR): How Authorities track People on Darknet

The darknet, especially the TOR network, can be hacked, or the information of the people using it can be extracted in the plain text....

Best VPNs for Android – and Why You Need One Now

Most people protect their laptops and computers from potential cyber-attacks but only consider the cybersecurity of their mobile devices when it’s too late. In recent...

The Levels of the Internet Surface Web, Deep Web, and Dark Web

The internet, invented by Vinton Cerf and Bob Cahn, has evolved since its creation in the 1960s. In 1990, the World Wide Web transformed...

LOOKING FOR HACKING RECIPES FORM THE PRO?

Then sign up for FREE to the ehacking’s exclusive group. You will get the exclusive tips/tricks, tutorials, webinars & courses that I ONLY share with my fellow on this exclusive newsletter.