简体   繁体   English

哪些优点可让开发人员在Android上进行ROOT访问?

[英]Which advantages give to developer ROOT access on android ?

I use android platform about 1-2 years, and there are some apps which need to be root access. 我使用android平台大约1-2年,并且有些应用需要root用户访问权限。 When i creating android app what give me this ROOT access ? 当我创建Android应用程序时,该ROOT访问权限是什么? Clearly to say, 显然,

if (haveRootAccess) doSomethingSpecial()

what can be doSomethingSpecial() ? 可以做什么doSomethingSpecial()

Root access is required for apps which needs to execute operations on command-line with Super User rights. 需要使用超级用户权限在命令行上执行操作的应用程序需要root用户访问权限。 Its just like using Terminal on linux system with command sudo . 就像在Linux系统上使用sudo命令使用Terminal一样。

//for example
Process suPro = Runtime.getRuntime().exec("su");

For more info, read this 有关更多信息,请阅读

you can access /data/data/ folder of the device which helps to get data of each application installed in device and one can manipulate it. 您可以访问设备的/data/data/文件夹,该文件夹有助于获取设备中安装的每个应用程序的数据,并且可以对其进行操作。

you can able to run command like su ping ftp etc with command terminal. 您可以使用命令终端运行su ping ftp等命令。

Can add additional commandfile /system/bin folder. 可以添加其他命令文件/system/bin文件夹。

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

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