[General Topics] bayu elf sabayonz:
for some reason the original user post was deleted by the user, so i will leave it here

from here

Installing Kitsune Mask (aka Magisk Delta) on Bluestacks 5.20.10.xxx

IMPORTANT

Tested on BlueStacks App Player 5.20.10.1003 (Android 11)

WARNING

In BlueStacks, Magisk installation fails because the root partition is mounted as read-only. However, modifying values in certain files allows Magisk to install itself to the /system partition without external tools.

Summary of Steps:

1. Edit BlueStacks Config: Open bluestacks.conf and enable rooting and root access for your Android instance.

2. Modify Instance Files: In the BlueStacks Engine folder, change specific settings in the instance files from "ReadOnly" to "Normal" for both the system and fastboot files. Apply these changes for both master and any cloned instances.

3. Install Kitsune Mask to /system and revert all changes in the bluestacks.conf

4. Modify Master instance Files: revert back from "Normal" to "ReadOnly" for both the system and fastboot files. Apply these changes for master instance only.

Requirements:

- Kitsune Mask (aka Magisk Delta)

Step 1: Modify BlueStacks Configuration

1. Open C:\ProgramData\BlueStacks_nxt\bluestacks.conf.

(or wherever you install bluestack if not the default location)

2. Change the following settings:

- bst.feature.rooting="0" to bst.feature.rooting="1"

- bst.instance.Rvc64.enable_root_access="0" to bst.instance.Rvc64.enable_root_access="1"

WARNING

If you have created additional instances (clones), ensure to change both the master and cloned instances to enable_root_access="1".

- Master Instances:

- Rvc64 = Android 11

- Pie64 = Android 9

- Nougat64 = Android Nougat

- Cloned Instances:

- Rvc64_1 = First Clone of Android 11

- Pie64_1 = First Clone of Android 9

- Nougat64_1 = First Clone of Nougat

Step 2: Modify Instance Files

1. Navigate to C:\ProgramData\BlueStacks_nxt\Engine. Open the folder corresponding to the Master Instance you modified in bluestacks.conf. For example, for the Rvc64 instance, open C:\ProgramData\BlueStacks_nxt\Engine\Rvc64.

- Within this folder, locate and modify the following files:

- Android.bstk.in

- Rvc64.bstk

2. In each file make the following changes:

- Change location="Root.vhd" format="VHD" type="ReadOnly"/> to location="Root.vhd" format="VHD" type="Normal"/>

AND

- Change location="fastboot.vdi" format="VHD" type="ReadOnly"/> to location="fastboot.vdi" format="VHD" type="Normal"/>

3. Return to C:\ProgramData\BlueStacks_nxt\Engine and enter the directory corresponding to any cloned instances you modified in bluestacks.conf. For example, the first clone of Rvc64 is C:\ProgramData\BlueStacks_nxt\Engine\Rvc64_1.

4. Find and modify the file that matches the instance name (e.g., Rvc64_1.bstk), applying the same changes as above:

- Change location="Root.vhd" format="VHD" type="ReadOnly"/> to location="Root.vhd" format="VHD" type="Normal"/>

AND

- Change location="fastboot.vdi" format="VHD" type="ReadOnly"/> to location="fastboot.vdi" format="VHD" type="Normal"/>

5. Save all the changes.

Step 3: Install Kitsune Mask

1. Launch the instance and install Kitsune Mask.

2. In Kitsune Mask, select the Install option under the Magisk field. Use the Direct Install into system partition option (not just "Direct Install"). If this option is not visible, close and reopen the Kitsune Mask app.

3. After installation, close the emulator.

4. Revert all changes in the bluestacks.conf file ( from step 1 )

Step 4: Revert changes on MASTER instance - Rvc64.bstk (or Pie64.bstk if you also use Pie)

i experience some stuck on booting with multiple instance after modifying the Rvc64.bstk File so if you experience that, you need to revert back changes this file on the Master instance, if not, then you dont need to do the Step 4.

1.In this case of Android 11 go to BlueStacks_nxt\Engine\Rvc64\Rvc64.bstk file make the following changes (Revert changes from step 2)

- Change location="Root.vhd" format="VHD" type="Normal"/> to location="Root.vhd" format="VHD" type="ReadOnly"/>

AND

- Change location="fastboot.vdi" format="VHD" type="Normal"/> to location="fastboot.vdi" format="VHD" type="ReadOnly"/>

Do not revert the file Android.bstk.in and keep all on "Normal"

=================================

i personally tested it on latest bluestack 5.20.0.1037 (android 11), get updated offline installer HERE ( you dont need offline installer, i just prefer offline installer because i only need the bluestack 5 without the bluestack x and stuff)

this may aswell work on next bluestack update

thanks

=================================

edit 27 feb 2024: add step 4 for failed boot for multi instance launch ( windows10, hyperv active, Bluestack v5.20.0.1037)

tags: Bluestack Hyperv Magisk XDA, Bluestack magisk hyper-v, bluestack magisk, bluestack root