第1个回答 2015-06-08
电脑上安装刷机工具,例如:甜椒,刷机精灵,卓大师等,各大软件都有不同的刷机精灵工具。一种root工具不成功很正常。
毕竟安卓系统版本太多,硬件配置有高有低,各有不同。rom版本有原生,也有深度定制的,冷门杂牌手机注意能root就root,不能的话,也相当难刷机,毕竟有rom刷机才可以,一旦刷坏,很难解决。
手机端root的也有很多,也有可以用的。比如z4root,kingroot,一键root,移动叔叔等这些对2.3以下有用。电脑端的解决方案很多,一款软件支持不彻底,只能等待后续升级支持。
root成功,且必须有“超级用户”管理权限,否则root无法发挥作用。本回答被网友采纳
第2个回答 2016-01-03
电脑上安装刷机工具,例如:甜椒,刷机精灵,卓大师等,各大软件都有不同的刷机精灵工具。一种root工具不成功很正常。
毕竟安卓系统版本太多,硬件配置有高有低,各有不同。rom版本有原生,也有深度定制的,冷门杂牌手机注意能root就root,不能的话,也相当难刷机,毕竟有rom刷机才可以,一旦刷坏,很难解决。
手机端root的也有很多,也有可以用的。比如z4root,kingroot,一键root,移动叔叔等这些对2.3以下有用。电脑端的解决方案很多,一款软件支持不彻底,只能等待后续升级支持。
root成功,且必须有“超级用户”管理权限,否则root无法发挥作用。
第3个回答 2016-01-16
package com.linin.utils;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
/**
* root权限工具类
*
* @author linin
*
*/
public class RootUtil {
private static final String TAG = "linin.root";
private static boolean mHaveRoot = false;
/**
* 判断机器Android是否已经root,即是否获取root权限
*/
public static boolean haveRoot() {
if (!mHaveRoot) {
int ret = execRootCmdSilent("echo test"); // 通过执行测试命令来检测
if (ret != -1) {
L.i(TAG, "have root!");
mHaveRoot = true;
} else {
L.i(TAG, "not root!");
}
} else {
L.i(TAG, "mHaveRoot = true, have root!");
}
return mHaveRoot;
}
/** 获取root权限 */
public static boolean root() {
try {
Runtime.getRuntime().exec(
new String[] { "/system/bin/su", "-c",
"chmod 777 /dev/graphics/fb0" });
} catch (IOException e) {
e.printStackTrace();
L.i(TAG, "root fail!");
return false;
}
L.i(TAG, "root success!");
return true;
}
/**
* 执行命令并且输出结果
*/
public static String execRootCmd(String cmd) {
String result = "";
DataOutputStream dos = null;
DataInputStream dis = null;
try {
Process p = Runtime.getRuntime().exec("su");// 经过Root处理的android系统即有su命令
dos = new DataOutputStream(p.getOutputStream());
dis = new DataInputStream(p.getInputStream());
L.i(TAG, cmd);
dos.writeBytes(cmd + "\n");
dos.flush();
dos.writeBytes("exit\n");
dos.flush();
String line = null;
while ((line = dis.readLine()) != null) {
L.d("result", line);
result += line;
}
p.waitFor();
} catch (Exception e) {
e.printStackTrace();
} finally {
if (dos != null) {
try {
dos.close();
} catch (IOException e) {
e.printStackTrace();
}
}
if (dis != null) {
try {
dis.close();
} catch (IOException e) {
e.printStackTrace();
}
}
}
return result;
}
/**
* 执行命令但不关注结果输出
*/
public static int execRootCmdSilent(String cmd) {
int result = -1;
DataOutputStream dos = null;
try {
Process p = Runtime.getRuntime().exec("su");
dos = new DataOutputStream(p.getOutputStream());
L.i(TAG, cmd);
dos.writeBytes(cmd + "\n");
dos.flush();
dos.writeBytes("exit\n");
dos.flush();
p.waitFor();
result = p.exitValue();
} catch (Exception e) {
e.printStackTrace();
} finally {
if (dos != null) {
try {
dos.close();
} catch (IOException e) {
e.printStackTrace();
}
}
}
return result;
}
}
第4个回答 2015-12-25
现在kingroot的最新版已经实现了对安卓5.1到2.2系统的完美免解锁root,甚至5.1都可以了,这个是全球首个实现的
第5个回答 2016-01-16
有些杂牌机器是不需要的,有些如华为是必须的。。必须要先解锁,否则不可能root成功
第6个回答 2015-06-08
可以,现在一般大厂手机都自带root权限的,比如小米,魅族