是否可以使用Root Visual Studio Emulator Android?

use*_*711 8 android root visual-studio android-emulator android-studio

我目前正在使用'Visual Studio Emulator for Android'在我的计算机上运行Android应用程序,我发现在使用多种类型的模拟器bluestacks,genymotion,andy等之后,VS是最稳定且易于使用的所有.

我与其他模拟器相比唯一的问题是运行需要root权限的应用程序,这是一个模拟器,我知道它不可能通过fastboot/recovery进行生根,这是我知道root的唯一方法就像我通常在手机上做的那样.

我已经尝试了大多数'生根'APK(kingo,towel,frama等),但这些都没有奏效.

那么有人会碰巧知道如何在Visual Studio Android Emulator上获得root访问权限吗?

我正在尝试运行触摸复制应用程序(Frep和RepetiTouch),但所有这些应用程序似乎都需要root访问权限.

任何建议将不胜感激.谢谢

Ant*_*mas 3

是的你可以。以下是执行步骤之前的一些基础知识。基本上所有 Visual Studio Emulator 都具有 root 访问权限;如果这样做,adb shell您将收到 root 提示。唯一缺少的是su二进制文件和应用程序通过su. 您可以从 Clockworkmod 的超级用户 apksu获取二进制文件,并通过.su daemon

安装su二进制文件

  1. 从Clockworkmod下载超级用户 apk 。理想的方法是从google play 商店下载应用程序,然后导航到/data/app/com.koushikdutta.superuser 并将其复制到您的电脑adb pull /data/app/com.koushikdutta.superuser <local_path_in_your_system>
  2. 将 .apk 扩展名更改为 .zip。
  3. 导航到 asset/x86/ 并将su二进制文件复制到模拟器中的 /system/xbin

    adb push <location_of_su> /system/xbin
    
    Run Code Online (Sandbox Code Playgroud)
  4. 带有 suid 和 rwx 的 chmod

        adb shell
        chmod 6777 /system/xbin/su
    
    Run Code Online (Sandbox Code Playgroud)
  5. 符号链接到 /system/bin

        ln -s /system/xbin/su /system/bin/su
    
    Run Code Online (Sandbox Code Playgroud)
  6. 运行 su 守护进程

    /system/xbin/su --daemon
    
    Run Code Online (Sandbox Code Playgroud)

通过以下方式授予对应用程序的访问权限su

  1. 通过拖放到模拟器中或使用来安装超级用户二进制文件adb install <path_to_superuser_apk>
  2. 下载 rootchecker free\basic 甚至终端模拟器。我们只是想检查我们的设备是否已root。
  3. 运行 rootchecker 应用程序来检查 root,您应该能够从超级用户那里得到提示。