[英]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");
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.