How to Create a Rooted Android VM
This article will guide you through creating a rooted Android Virtual Machine (VM) using BlueStacks. Rooting gives you administrative access to the Android operating system, enabling you to modify system files and settings.
Launch BlueStacks on your computer.
1. Click on the Multi-instance Manager (or Instance button) from the main screen.
2. Click Create instance to start the setup for a new virtual machine.
The New instance window will open
Select Fresh instance
Set the Instance type to Android 11
Confirm the selection and click Next
Select your preferred CPU cores
Select your preferred Memory allocation
Choose a Performance mode
Click Download to get the necessary Android files
Once the download is complete
Click Start to open the new instance
Click the gear icon
(Settings) near the bottom-right corner of the Bluestacks VM
Go to the Advanced tab
Toggle ADB (Android Debug Bridge) to On
Click Save changes
Edit BlueStacks Configuration File for Root Access
Close all BlueStacks windows (Close the VM, the multi-instance manager, and Bluestacks)
Right-click the BlueStacks icon in the system tray and select Exit
Open File Explorer
In the search bar type in %programdata%
Find the folder BlueStacks_nxt
Open it
Locate the file named bluestacks.conf
Open it with a text editor (e.g., Notepad)
Search for "root" and change it's values from 0 to 1 for all root results which are listed below:
bst.feature.rooting="0" to
bst.feature.rooting="1"- bst.instance.Pie64.enable_root_access="0" to bst.instance.Pie64.enable_root_access="1"
- bst.instance.Rvc64.enable_root_access="0" to bst.instance.Rvc64.enable_root_access="1"
Save the changes and close bluestacks.conf
In the same BlueStacks_nxt directory find the folder Engine
Open it
Inside Engine, find the folder Rvc64
Open it
Inside Rvc64 locate the following bstk files Android.bstk.in
Rvc64.bstk
Rvc64.bstk-prev
Open each bstk file with a text editor (e.g., Notepad)
In each one, almost at the top, you will find the xml snippet referring to the <HardDisks> section. (Android.bstk.in, Rvc64.bstk, and Rvc64.bstk-prev)
Once you locate the the <HardDisks> section
Change the "Readonly" values to "Normal" values (on all three bstk files, Android.bstk.in, Rvc64.bstk, and Rvc64.bstk-prev)
Save the changes
Reopen BlueStacks and start the newly created instance
The VM should now have root access enabled
Related Articles
Setting up a BlueStacks VM to Monitor Traffic with ADB and HTTP Toolkit
This guide will walk you through setting up ADB and HTTP Toolkit to capture and monitor HTTP traffic within a BlueStacks Android VM. Before starting, make sure you've gone through all the steps in the following articles: Installing BlueStacks How to ...
Install Android Debug Bridge
Android Debug Bridge (ADB) is a versatile command-line tool that allows you to communicate with Android devices, manage files, install apps, and debug your applications. Go to This PC Click on your C: drive In your C: drive, create a new folder and ...
Adding a New Virtual Disk to a VM
In this article we will guide you through adding a new virtual disk to a VM. In your Host computer, go to your VMs folder. Create a folder with the name of the VM you want to add the virtual disk to. (In this example, the VM I will add the disk to is ...
Create a MSSQL BACPAC Backup
To create a BACPAC backup, do the following steps: Open Management Studio and connect to the database server. Right click on the database you wish to backup and select Tasks > Export Data-tier Application... In the dialog that appears click "Next >" ...
Create a MSSQL BAK Backup
To create a BAK backup, do the following steps: 1. Shrink the Database (Optional) Open Management Studio and connect to the database server. Change the Recovery Model to Simple: 1. Right click on the database you wish to backup and select Properties. ...