android - 是否可以 Root Visual Studio Emulator Android?

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

我目前正在使用“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 访问权限。

如有任何建议,我们将不胜感激。谢谢

最佳答案

是的,你可以。以下是步骤之前的一些基础知识。从根本上说,所有 Visual Studio Emulator 都具有 root 访问权限;如果你这样做adb shell你会得到一个根提示符。唯一缺少的是 su应用程序的二进制文件和访问权限以通过 su 连接到 root shell .你可以获得 su来自来自 clockworkmod 的 super 用户 apk 的二进制文件以及通过 su daemon 访问 root shell .

正在安装 su二进制

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

    adb push <location_of_su> /system/xbin
    
  4. 使用 suid 和 rwx 进行 chmod

        adb shell
        chmod 6777 /system/xbin/su
    
  5. 符号链接(symbolic link)到/system/bin

        ln -s /system/xbin/su /system/bin/su
    
  6. 运行 su 守护进程

    /system/xbin/su --daemon
    

通过su 授予对应用程序的访问权限|

  1. 通过拖放到 模拟器或使用 adb install <path_to_superuser_apk>
  2. 下载 rootchecker free\basic 或者甚至是终端模拟器 事情。我们只想检查我们的设备是否已获得 root 权限。
  3. 运行 rootchecker 应用程序来检查 root,你应该能够得到 来自 super 用户的提示。

关于android - 是否可以 Root Visual Studio Emulator Android?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32824042/

相关文章:

android-studio - 如何运行 Android Studio 的多个实例

java - Android:点击按钮时的新 View

android - addView() 之后的 "resultIndex is -1, the polygon must be invalid!"

android - 从网络下载图片时如何处理url中的空白区域?

android - 单击具有自定义主题的按钮时崩溃

c# - 如果在 "Tab"之后按 "else",VS 会自动添加括号。在任何代码块打开器之后,我怎样才能做到这一点?

android.dexOptions.incremental 属性已弃用

Android overdraw 背景。如何正确设置?

visual-studio - 使用 msbuild 从命令行创建应用程序包

c++ - 异步串行通信 : why does ReadFile() set the event in the OVERLAPPED struct?