
(click on yes ifĪ pop up ask if you would like to make changes to your devices.Īfter that you would only see another pop up that suddenly
right click on adb.exe and run as administrator. for example->ĭ:\AppData\Local\Android\Sdk\platform-tools For me its isĬustom installed in my D drive. find your android studio sdk platform tool folder. I am using windows 10, Android Studio 4.0.1, Bluestacks 4.200. Hence that could be one of the reason why you could not add adb to bluestack4. Each time i open up my bluestack emulator, i notice that its ip is always different. (Even if you had detect the device using adb devices command earlier on). Hence i think the problem both of us are encountering could be due to bluestack device ip has changed. After the restart, when opening SuperSU you see it is enabled.I did exactly as the chosen approved answer but i still could not connect my android studio to Bluestack 4. The emulator needs to be restarted after this as it hangs. When su -daemon is running SuperSU Android UI should detect the root when started: Now run the installer for Superuser.apk in the emulator through Media Manager. # Extract su command and run its post-install Mount -o rw,remount,exec,rw /storage/emulated # Use the provided BlueStacks binary to switch to root Then work inside the emulator shell: # Start shell session in the emulator VM Push the zip file to the /mnt/sdcard of the emulated device.
# This is the default port exposed by BlueStacks
Make sure the emulator is not running when you edit this file.Įnable ADB bridge in the emulator settings.ĭownload SuperSU zip file on your local computer. On macOS, the file can be found ~/Library/BlueStacks/Android/Android.vbox. Make sure that the emulator is off and turn all disks in VirtualBox configuration file to read-write. We still need to change VirtualBox settings, though.Īdb command can be obtained from Android Studio SDK by Google or it is also found in /Applications/BlueStacks.app/Contents/MacOS/adb. Luckily BlueStacks has left a primitive su binary on the disk image, so we do not need to add this binary to the image ourselves. It ships with two VirtualBox VDI disk images, Prebundled.bdi and Root.vdi. The emulator is internally using VirtualBox and runs Android 圆4 binaries (64 bit). No Microsoft Windows or BlueStacks Tweaker needed. The instructions work on OSX, Linux and Windows. These instructions require that you understand the UNIX command line basics.