Android Virtual Machine(VM) on VirtualBox - Windows 10

In this article, we are going to learn about Android, features, and hands-on demo on how to install, usage and uninstall on VirtualBox in windows operating system.  

Disclaimer: The articles provided on HackWithV is purely for informational and educational purpose only, and for those who are willing and curious to know & learn about Cyber Security, Ethical Hacking, Software Development and IT Operations. Anytime the word "Hacking" that is used on this site shall be regarded as Ethical Hacking.

Table of Content


What is Android ?

  • Android is a mobile operating system developed by Google
  • It is used by several smartphones, tablets and TVs. Examples include the Sony Xperia, the Samsung Galaxy, and the Google Nexus One. 
  • This operating system is based on a modified version of the Linux kernel and other open source software, designed primarily for touchscreen mobile devices.

Features 

  • Interface
    • Home screen
    • Status bar
    • Notifications
    • App lists
    • Navigation buttons
    • Split-screen view
    • Charging while powered off
    • Audio-coupled haptic effect
  • Applications
  • File manager
  • Adoptable storage
  • Memory management
  • Developer options

Hands-on 

    Requirements 

    • Operating System: Windows 10. 
    • Tools: firefox/chrome, VirtualBox, Android ISO. 

     Note: 


    Download

    • Click here to download from the official site. Click on Android-x86 64-bit ISO file. (It's about 800-900MB). 
     

    Install 

    •  Boot up VirtualBox. 

    Setting up Virtual Hardware in VirtualBox 

    • Click on New > Name: Android > Type: Linux > Version: Linux 2.6/3.x/4.x (64-bit) > Next

    • Allocate 3072MB of Memory(RAM) and click on Next
    • Setup Virtual Hard Disk. Click on Create a virtual hard disk now > Create > VDI > Next > Dynamically allocated > Next > Size: 16GB > Create
    • Setup the processor. Click on Android 9 > Settings > System > Processor > Processor(s): 2 > OK
    • Setup the display. Click on Android 9 > Settings > Display > Processor > Graphics Controller: VBoxSVGA > OK
    • Setup the network.  Click on Android 9 > Settings > Network > Adaptor 1 > Attached to: Bridged Adapter > OK
    • Virtual Hardware is successfully created

    Installation of Android 9 Virtual Machine(VM) using ISO File 

    • Attach the android-x86_64-9.0-r2.iso file to previously created virtual hardware
    • Click on Android 9 > Settings > Storage > Empty > disk icon > Choose a disk file > Select ISO: android-x86_64-9.0-r2.iso > Open > OK
    • Boot the Android 9 VM. Click on Android 9 > Start. A new VM window will be opened
    • Starts actual installation. Using enter, tab, up, down, left, right arrow keys, we are going to choose options
    • Choose Installation - Install Android-x86 to harddisk and hit enter
    • Create a partition. Click C to choose Create/Modify partitions > OK and hit enter
    • For GPT, Choose No and hit enter
    • In disk utility, choose New > Primary and hit enter
    • Allocate the default partition size(In my scenario its 17174.38 ) and hit enter
    • Choose Bootable and hit enter
    • Choose Write and hit enter
    • Type yes and hit enter
    • Once it’s finished, Choose Quit and hit enter
    • Click on S to choose sda1 partition, choose OK and hit enter
    • Setup File system. Choose ext4 > OK and hit enter
    • Confirm by choosing Yes and hit enter
    • Install Grub Boot Loader. Choose Yes and hit enter
    • Make the /system folder read-writable. Choose Yes and hit enter
    • Installation in progress. 
    • Android 9 is installed. Choose Reboot > OK and hit enter
    • If the installer opens after the reboot. Then click on X > Power off the machine > OK
    • Remove the android-x86_64-9.0-r2.iso file previously attached to virtual hardware
    • Click on Android 9 > Settings > Storage > android-x86_64-9.0-r2.iso > disk icon > Remove Disk from Virtual Drive > OK

    Usage 

    • Open the Android 9 VM. Click on Android 9 > Start

     Note: 

    • Wait for a few minutes to boot. 

    • Choose the language and Click START
    • Connect to the Network. Click on See all Networks > VirtWiFi
    • Based on the requirements choose your own options
    • Post Installation is successfully completed
    • Power off the machine. 

    Uninstall  

    • Android 9 VM can be removed as follows
    • Right click on Android 9 > Remove > Delete all files


    Conclusion 

    • Android 9 is installed and tested on VirtualBox in windows 10.     

     

    If you face any problem, Let me know in the comments or you can directly reach me at help.hackwithv@gmail.com

     

    Be Aware, Be Secure.

    Thank You 🙏

     

    Comments

    Popular posts from this blog

    Demo 1- How to Track Location by a Link

    Snyk - Ubuntu 20.04 (Linux)

    Cracking VNC Password Using Hydra