再次强调一遍,执行完rageagainstthecage,通过查看日志能够确定成功获取了root
权限!在当时尝试z4root时,我怀疑也是因为这个磁盘空间满的问题导致了root失败。
五、获取Root权限完整的步骤,写在最后
我们在《三、获取Root权限 3.使用SuperOneClick》之后(不要重启手机或者拔掉
USB连接,否则还需要重新运行SuperOneClick点root按钮),紧接着从命令行进入
adb shell。提示如下信息:
F:/Own/Phone/Samsung/Tools/SuperOneClick>adb shell
#
这个“#”非常关键,表明当前已经是root权限了!如果是“$”说明SuperOneClick执行
不成功(也就是说rageagainstthecage执行没有成功),再次运行SuperOneClick.exe
点击root。直到输入adb shell出现#号!
执行如下命令:
1) 修改 /system 为可读写
# mount -o remount rw /system
2) 进入自带的应用目录
# cd /system/app
3) 删除三星自带的天气时钟,这样/system就有一些剩余空间,当然删之前也可以
先复制一份到SD卡上(命令:cp /system/app/SamsungWidget_WeatherClock.apk /mnt/sdcard/.)
# rm SamsungWidget_WeatherClock.apk
做完以上三步后,再次运行SuperOneClick.exe点击root,成功!
然后重启手机,手机应用会多一个授权管理(专门管理需要使用root权限的应用,其实
是SuperOneClick里的Superuser.apk,完全可以手工安装)。
然后手机上运行root explorer,会提示是否对当前应用授予root权限!如果授予的
话,root explorer就会以最高权限方式运行,所有目录内容都可以看到了!宁外授
权管理里也可以看到root explorer被授予root权限。
另附上root成功的完整SuperOneClick日志:
Killing ADB Server...
OK
Starting ADB Server...
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
OK
Waiting for device...
OK
Pushing rageagainstthecage...
337 KB/s (0 bytes in 5392.000s)
OK
chmod rageagainstthecage...
OK
Running rageagainstthecage...
OK
***IF IT KEEPS LOOPING, TRY DISABLING USB DEBUGGING NOW***
Killing ADB Server...
OK
Starting ADB Server...
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
OK
Waiting for device...
OK
Running rageagainstthecage...
ROOTED
Getting mount path...
/dev/block/stl6
OK
Remounting system with read-write access...
OK
Pushing su...
96 KB/s (0 bytes in 26264.000s)
OK
chmod su...
OK
Pushing Superuser.apk...
204 KB/s (0 bytes in 196521.000s)
OK
Remounting system with read-only access...
OK
Running a SU test...
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/sanxing/article-35424-5.html
挺好听的