In this gist we will explain if it is possible to root emulators via Kingroot
First of all before explaining whether it can be done or not, I would first explain what Kingroot is and what it does
Kingroot is an application for Android devices that allows users to gain root privileges on their device quickly and easily. It is a tool developed by a Chinese team and is known for its ease of use and its ability to root a wide range of Android devices without requiring in-depth technical knowledge.
Kingroot's user interface is quite intuitive, and in many cases, a single tap on the screen is enough to start the rooting process. It uses a variety of exploits to attempt to gain root privileges on the device. When a compatible exploit is found, Kingroot uses it to gain root access, all this if only the application detects a vulnerability in the Android system, which has been fixed on Android 5.0+ Lollipop, which in the past was possible to root old devices with this application without resorting to unlocking the bootloader and flashing a TWRP recovery or the boot.img patch from Magisk and reflashing, unfortunately rooting apps like Kingroot have become obsolete
Now returning to the initial discussion, from Kingroot everything was based on searching an online cloud database for an exploit appropriate for your device and if it was found it was installed on the device and thus you obtained root access, which would be equivalent to trying to root an emulator with kingroot looking for an exploit that could root a non-real device and that makes it problematic, I guess Kingroot was designed to root physical devices so it would probably be unlikely to be able to root emulators like BlueStacks, MEmu, Nox App Player etc..., it's something I don't recommend because it doesn't make much sense
If I were able to root with Kingroot with an emulator I would have a half-rooted emulator.
The short answer is NO, most of the time, no
Yes, usually, most of the popular Android emulators like MEmu, Nox App Player, LDPlayer already have an option to root the emulator in their settings while BlueStacks in turn does not provide an option to get access root, if you want to root on BlueStacks you will need to download a third-party software called BSTWeaker which allows you to root on BlueStacks, a guide on how to root on BlueStacks 4 / 5 will be released soon.
However, if it is a Genymotion virtual emulator, they are all already rooted