Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to Root Visual Studio Emulator Android?

I am currently using 'Visual Studio Emulator for Android' to run android apps on my computer, i find that after using multiple types of emulators bluestacks, genymotion, andy etc. That VS is the most stable and easy-to-use out of them all.

The only problem that i have compared to the other emulators is running apps that require root permission, with this being an emulator i know that its not possible to go the route of rooting via fastboot/recovery, this is the only method i know of rooting as thats how i normally do it on my phone.

I have tried most of the 'rooting' APK's (kingo,towel,frama etc) and none of those have worked.

So would anybody happen to know how i can get root access on Visual Studio Android Emulator?

I am trying to run a touch-replication app (Frep & RepetiTouch) but all of them seem to require root access.

Any advice would be much appreciated. Thanks

like image 476
user5384711 Avatar asked Sep 28 '15 13:09

user5384711


People also ask

Can I root Android Studio emulator?

Please note that android emulators already are "rooted". You do not need to do anything to get a root adb shell, as it already runs as root by default.

Does Visual Studio have Android emulator?

Just open up the Visual Studio Emulator for Android entry in your Start Menu, hit play, and the emulator is ready to debug from any IDE. Download the standalone emulator today!

Can Vscode run Android emulator?

If you're working with Flutter or React Native, you can launch an iOS Simulator or an Android Emulator using VS Code (Visual Studio Code).

Does BlueStacks have root?

When it comes to gaming on PC, the BlueStacks motto claims to be “The fastest Android gaming platform.” Rooting BlueStacks is another option for getting the most out of your Android device. Your Android device can be used in any way possible with the rooted BlueStacks.


1 Answers

Yes, you can. Here are some basics before the steps. Fundamentally all Visual Studio Emulator has root access; if you do adb shell you will get a root prompt. The only thing that is missing is the su binary and access for applications to connect to root shell through su. You can get the su binary from superuser apk from clockworkmod and the access to the root shell through the su daemon.

Installing su binary

  1. Download superuser apk from clockworkmod. Ideal way is to download the app from google play store and navigate to /data/app/ and copy com.koushikdutta.superuser to your pc through adb pull /data/app/com.koushikdutta.superuser <local_path_in_your_system>
  2. Change the .apk extension to .zip.
  3. Navigate to assets/x86/ and copy the su binary to /system/xbin in your emulator

    adb push <location_of_su> /system/xbin
    
  4. chmod with suid and rwx

        adb shell
        chmod 6777 /system/xbin/su
    
  5. symlink to /system/bin

        ln -s /system/xbin/su /system/bin/su
    
  6. Run the su daemon

    /system/xbin/su --daemon
    

Giving Access to Applications through su

  1. Install the superuser binary by either dragging and dropping into the emulator or using adb install <path_to_superuser_apk>
  2. Download rootchecker free\basic or even a terminal emulator for that matter. We just want to check if our device is rooted.
  3. Run the rootchecker app to check root and you should be able to get the prompt from superuser.
like image 159
Antony Thomas Avatar answered Oct 25 '22 13:10

Antony Thomas