简体   繁体   English

如何检查自定义android是否已植根?

[英]How to check if custom android is rooted?

We've bought some custom android tablets, that we're going to use as kiosk tablets.我们购买了一些定制的安卓平板电脑,我们将把它们用作自助服务终端平板电脑。 For our kiosk app to work properly the app needs root access.为了让我们的自助服务终端应用程序正常工作,该应用程序需要 root 访问权限。

How can I check if the device is rooted properly?如何检查设备是否正确植根? And how can I root it if it isn't?如果不是,我怎么能root呢?

Things that point to that the device IS rooted:表明设备已植根的事情:

  1. When I ADB shell into the tablet the line starts with "#" (I read somewhere that this means that the tablet is rooted).当我 ADB shell 进入平板电脑时,该行以“#”开头(我在某处读到这意味着平板电脑已植根)。
  2. When I run "su" in the shell nothing happens (no errors).当我在 shell 中运行“su”时,什么也没有发生(没有错误)。
  3. This file exist /system/xbin/su"这个文件存在/system/xbin/su”

Things that point to that the device IS NOT rooted:表明设备未植根的事情:

  1. I have installed Root Checker, it says "Sorry! This device does not have root access"我已经安装了 Root Checker,它说“对不起!这个设备没有 root 访问权限”
  2. When I run the following code in our app, which I know for a fact is working on other rooted devices:当我在我们的应用程序中运行以下代码时,我知道它正在其他有根设备上运行:

     Process process = Runtime.getRuntime().exec("su"); os = new DataOutputStream(process.getOutputStream()); os.writeBytes(cmd + "\\n");

    I get an error: "java.io.IOException: write failed: EPIPE (Broken pipe)".我收到错误消息:“java.io.IOException:写入失败:EPIPE(管道破裂)”。

Had to try a number of different root tools. 不得不尝试许多不同的根工具。 Turns out KingRoot ( https://kingroot.net/ ) did the job. 事实证明KingRoot( https://kingroot.net/ )完成了这项工作。 Afterwards Root Checker says that it is rooted correctly and my app works again. 之后,Root Checker说它已经正确植根,我的应用程序又可以正常工作了。

There is this nice guide which you can follow to check if the phone is rooted or not. 有一个很好的指南,您可以按照该指南检查手机是否已植根。

Link to website 链接到网站

Your post has indicated you have been able to purchase custom rooted android devices.您的帖子表明您已经能够购买自定义的 root 安卓设备。

Can you advise where you were able to source these from, I am needing the same but preferable mobile phone size form factor rather than tablet.你能告诉你从哪里获得这些吗,我需要相同但更好的手机尺寸而不是平板电脑。

The app I have devices needs to gain access to some of the functionality only available on a rooted android device我拥有设备的应用程序需要访问某些仅在有 root 权限的 android 设备上可用的功能

Ideally I am looking to commercialise my application and so would need a supplier able to supply commercial quantities of the rooted devices.理想情况下,我希望将我的应用程序商业化,因此需要一家能够提供商业数量的 root 设备的供应商。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM