CIP Cyber

How to Install Android 9.0 On VirtualBox for Hacking

Table of Contents

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.

 

CIP Cyber Staff

CIP Cyber Staff

CIP Cyber Staff comprises CIP cybersecurity experts committed to delivering comprehensive information on critical infrastructure protection. The content covers diverse topics, equipping professionals to defend organizations and communities in an ever-evolving cyber landscape.

Most popular

Industrial Cybersecurity

Want always be up to date?

Don't miss the latest news

By subscribing to our mailing list, you will be enrolled to receive our new trainings, latest blog posts, product news, and more.

CIP Training & Certifications

Transform your cybersecurity skills with CIP Cyber’s comprehensive training & course offerings

Related Articles

Want always be up to date?

Don't miss the latest news

By subscribing to our mailing list, you will be enrolled to receive our new trainings, latest blog posts, product news, and more.

CIP Training & Certifications

Transform your cybersecurity skills with CIP Cyber’s comprehensive training & course offerings