如何创建具有root访问权限的Andr​​oid应用程序? [英] How to create android apps with root access?

查看:143
本文介绍了如何创建具有root访问权限的Andr​​oid应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从来没有发现它讲述具有root访问权限创建应用程序的任何教程。但我发现有这么多的应用程序在那里这需要root访问权限。

I have never found any tutorial which telling about creating apps with root access. but I found out that there's so many apps out there which required root access.

问题是,他们怎么能够创建应用程序?哪里他们发现所有的资源? 是否有关于超级用户访问权限的任何正式文件?还是会需要一些hackish的方式?

the question is, How they able to create that apps? where did they found all the resource? Is there any official document about the root access? or will it need some hackish way ?

和什么样的访问这需要root访问权限? 就是其中的代理吗?我没有找到任何文档,在任何地方访问代理。

and what kinds of access which required root access? is proxy one of them? i didn't found any documentation about accessing the proxy anywhere.

===更新====

=== UPDATE ====

我觉得有些人对我的问题是错误的。对不起,我的英文不好..大声笑。我知道,手机需要植根获得root权限。但我想搞清楚的事情是,什么样的服务都需要root访问权限? 一些我看到的无线系绳,另一种是清除缓存(是它甚至需要root访问权限只是清除缓存?),而其他应用程序在那里。有什么我样的优势,我从root访问得到任何名单?

I think some people mistaken by my question. sorry for my bad english.. lol . I know that the phone need to be rooted to get root access. but the things I want to find out is, what kind of services are need root access? some i see wireless tether , the other is to clear cache (is it even need root access just to clear cache??) , and the other apps out there. is there any list of what I kind of advantage I get from root access??

推荐答案

您需要苏安装(当然)的手机。细节在这里: <一href="http://forum.xda-developers.com/showthread.php?t=682828">http://forum.xda-developers.com/showthread.php?t=682828

You need su installed in the phone (of course). Details here: http://forum.xda-developers.com/showthread.php?t=682828

和使用它,很简单,只要运行su命令。下面是一个示例我用重新启动手机编程(从这个答案复制:<一href="http://stackoverflow.com/questions/4580254/android-2-2-reboot-device-programmatically/4772796#4772796">Android 2.2:重启设备编程的)

And to use it, is as simple as running su command. Here is a sample I use to reboot the phone programmatically (copied from this answer: Android 2.2: Reboot device programmatically )

try {
    Runtime.getRuntime().exec("su");
    Runtime.getRuntime().exec("reboot");
} catch (IOException e) {
} 

这篇关于如何创建具有root访问权限的Andr​​oid应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆