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

时间:2015-09-28 13:18:18

标签: android visual-studio android-studio android-emulator root

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

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

我已经尝试了大部分'生根'APK(kingo,towel,frama等)并且没有一个有效。

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

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

非常感谢任何建议。感谢

1 个答案:

答案 0 :(得分:2)

是的,你可以。以下是步骤前的一些基础知识。从根本上说,所有Visual Studio模拟器都具有root访问权限;如果你adb shell,你会得到根提示。唯一缺少的是su二进制文件以及应用程序通过su连接到root shell的访问权限。您可以从clockworkmod 的 superuser apk获取su二进制文件,并通过su daemon访问root shell。

安装su二进制文件

  1. clockworkmod下载超级用户apk。理想的方法是从google play store下载应用并导航至/data/app/并通过adb pull /data/app/com.koushikdutta.superuser <local_path_in_your_system>
  2. 将com.koushikdutta.superuser复制到您的电脑
  3. 将.apk扩展名更改为.zip。
  4. 导航到assets / x86 /并将su二进制文件复制到模拟器中的/ system / xbin

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

        adb shell
        chmod 6777 /system/xbin/su
    
  6. 符号链接到/ system / bin

        ln -s /system/xbin/su /system/bin/su
    
  7. 运行su daemon

    /system/xbin/su --daemon
    
  8. 通过su

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