手机获取root权限 - mimi51
关于root权限的问题,在网上找了一些资料,最后搞定了,步骤如下:
1. 获得superuse
http://superuser.googlecode.com/svn/trunk/(源代码)
我当时从某个网站上直接拿到的superuser.apk和su的二进制文件,现在不记得是哪个网站了。
2. 把superuser.apk push到手机中
adb push superuser.apk /system/app
3. 把su二进制文件push到手机中
adb push su /system/bin
adb push su /system/xbin
为了保险起见,我push到两个文件夹中了。
4. 更改su二进制文件权限
adb shell
chmod 777 /system/bin/su
chmod 777 /system/xbin/su
5 重启手机
adb reboot
6. 运行想使用root权限的应用
会得到一些提示信息,可以选择允许还是不允许。
Enjoy it!