This short guide shows how to run and obtain root permissions within BlueStacks 4, In turn, BlueStacks 4 does not offer a built-in root option, third-party software will be required
First of all you will have to download the following software:
BSTWeaker: https://bestim.org/download.html?dlm-dp-dl=6688
Root Checker: https://root-checker.it.uptodown.com/android (Not required: Only needed if you want to see if root was successful)
First of all go to the link above to download BSTWeaker 6, after waiting a few seconds on that page the download of a zip file with the name "bstweaker69010.zip" should start
after downloading it you can extract it wherever you want, and by opening the folder we run the program by double clicking on "BlueStacksTweaker.exe"
Now that BSTWeaker has been opened, right-click on the BlueStacks instance you want to root, and then "Force Kill" and the instance will be force-closed, Then go to the "Root" tab and click on the "Unlock" button
And when BSTWeaker 6 finishes unlocking rooting, start the BlueStacks instance, after startup click on "Patch" to obtain root permissions, then on "Install SuperSu" to install SuperSU and finally on "Update Su binary" to update the SuperSU binary, at the end of pressing these 3 buttons the BlueStacks instance will stop again, upon restart we can install Root Checker and check if the root was successful!