BlueStacks Root GUI is a utility designed to easily toggle root access settings and enable read/write (R/W) permissions for your BlueStacks 5 instances (specifically targeting the BlueStacks_nxt
structure and the MSI App Player's BlueStacks_msi5
). It aims to simplify the process described in the original guide: Root BlueStacks with Kitsune Mask by providing a graphical interface.
- Auto-Detection: Discovers BlueStacks installation paths via the Windows Registry (
SOFTWARE\BlueStacks_nxt
orSOFTWARE\BlueStacks_msi5
). - Instance Listing: Reads
bluestacks.conf
to find and list configured instances. - Root Toggle: Modifies
bst.instance.<name>.enable_root_access
andbst.feature.rooting
inbluestacks.conf
. - Read/Write Toggle: Modifies the
Type
attribute (Normal
vsReadonly
) for key disk files (fastboot.vdi
,Root.vhd
) within instance-specific.bstk
files. - Process Handling: Detects running BlueStacks processes and attempts graceful termination before applying changes.
- Status Display: Shows the current Root and R/W status for each detected instance.
- Responsive UI: Uses background threads (
QThread
) for potentially long operations (file I/O, process termination) to keep the GUI responsive. - Basic Internationalization: Includes English and Japanese translations.
- Operating System: Windows 10 or later (due to registry keys and file paths used).
- BlueStacks Version: BlueStacks 5 or MSI App Player (versions using the
BlueStacks_nxt
orBlueStacks_msi5
registry keys and configuration structure). Compatibility with other versions is not guaranteed. - Python (for development): Python 3.7+
- Administrator Rights: Required to read the HKLM registry and terminate BlueStacks processes effectively. Run the application as an administrator.
- Dependencies: Listed in
requirements.txt
. Key dependencies includePyQt5
,pywin32
,psutil
.
- Download the Latest Executable: Go to the Releases page on GitHub and download the latest
.exe
file. - Run as Administrator: Right-click the downloaded
.exe
and select "Run as administrator". This is necessary for registry access and process termination. - Important Pre-Run Steps:
- Clean BlueStacks Install Recommended: If you encounter issues, fully uninstall all previous BlueStacks versions using the official BlueStacks Cleaner tool.
- Install Latest BlueStacks 5: Download and install the latest version from the official BlueStacks website.
-
Clone the Repository:
git clone https://github.com/RobThePCGuy/BlueStacks-Root-GUI.git cd BlueStacks-Root-GUI
-
Create a Virtual Environment (Recommended):
python -m venv venv .\venv\Scripts\activate
-
Install Dependencies:
pip install -r requirements.txt
-
Run the Application:
python main.py
(Remember to run your terminal/IDE as administrator if running directly)
-
Build the Executable (Optional):
pip install pyinstaller pyinstaller --onefile --windowed --icon="favicon.ico" --add-data "favicon.ico;." --name BlueStacksRootGUI main.py
The executable will be in the
dist/
folder.
- Launch as Administrator: Start the GUI (
.exe
orpython main.py
) with administrator privileges. - Instance Detection: The GUI will attempt to find your BlueStacks installation and list the instances found in
bluestacks.conf
. Statuses (Root, R/W) will be displayed. - Select Instances: Check the box(es) next to the instance(s) you want to modify.
- Toggle Root:
- Click "Toggle Root". This enables the necessary settings in
bluestacks.conf
. - Turn this ON only temporarily while you are installing Kitsune Mask.
- Click "Toggle Root". This enables the necessary settings in
- Toggle R/W:
- Click "Toggle R/W". This sets the instance's disk files (
Root.vhd
,fastboot.vdi
) toNormal
(Read/Write) mode. - This needs to be left ON for the system modifications (like Kitsune Mask) to persist after the instance restarts.
- Click "Toggle R/W". This sets the instance's disk files (
- Install Kitsune Mask:
- Ensure Root is ON and R/W is ON in the GUI for the target instance.
- Download the latest Kitsune Mask APK.
- Launch the modified instance using the BlueStacks Multi-Instance Manager.
- Install the downloaded Kitsune Mask APK onto the instance (drag-and-drop usually works).
- Open the Kitsune Mask app inside the instance.
- Tap Install.
- Tap Next.
- Select the option "Direct Install to /system".
- Troubleshooting: If the "Direct Install" option is missing, fully close and reopen the Kitsune Mask app inside BlueStacks. It should then appear.
- Let the installation complete and reboot when prompted (the instance will restart).
- Final GUI Step:
- Crucially: Once Kitsune Mask is successfully installed to
/system
, return to the BlueStacks Root GUI. - Select the instance again.
- Click "Toggle Root" to turn the configuration setting OFF.
- Leave "Toggle R/W" ON.
- Crucially: Once Kitsune Mask is successfully installed to
- Verify: Launch the instance. Open Kitsune Mask; it should show as installed and active. Root applications should now work.
- Close: Close the BlueStacks Root GUI.
- "Path Not Found" / No Instances Listed:
- Ensure you ran the GUI as Administrator.
- Verify BlueStacks 5 or MSI App Player is installed correctly and the registry keys (
HKLM\SOFTWARE\BlueStacks_nxt\UserDefinedDir
andDataDir
orHKLM\SOFTWARE\BlueStacks_msi5
) exist. - A clean reinstall of BlueStacks using the official cleaner tool might be necessary.
- Permission Errors during Toggle:
- You must run the GUI as Administrator.
- R/W Toggle Doesn't Stick:
- Ensure BlueStacks processes (
HD-Player.exe
,HD-Agent.exe
, etc.) were fully terminated before toggling. The GUI attempts this, but manual termination via Task Manager might be needed if issues persist. - Ensure you are leaving the R/W setting ON in the GUI after installing Kitsune Mask.
- Ensure BlueStacks processes (
- "Direct Install to /system" Missing in Kitsune Mask:
- Make sure Root and R/W were both ON in the GUI before launching the instance and attempting installation.
- Try closing and reopening the Kitsune Mask app within the BlueStacks instance.
- Errors during Toggle Operations: Check the status bar in the GUI and the application logs (if run from source/console) for specific error messages.
Follow the steps in Installation & Download > For Developers.
Key modules:
main.py
: PyQt5 GUI, application logic, threading.config_handler.py
: Reads/writesbluestacks.conf
.instance_handler.py
: Modifies.bstk
files, handles processes.registry_handler.py
: Reads BlueStacks paths from Windows Registry.constants.py
: Shared constant values (keys, filenames, modes, etc.).
Contributions are welcome! Please follow these guidelines:
- Maintain code style and structure.
- Use the
logging
module appropriately. - Add/update docstrings for new/modified code.
- Ensure UI remains responsive (use background threads for blocking tasks).
- Update
constants.py
if adding new configurable values. - Submit pull requests with clear descriptions of changes.
- Open an issue to discuss significant changes beforehand.