adb root 获取root权限,为了让adb 具备更高的权限,
比如操作系统io, 修改系统文件属性,运行可实行程序。
命令行如下:
adb root
命令实行前的 adb shell 如下:
Seven:~ Seven$ adb shell
shell@localhost:/ $
命令实行后的 adb shell 如下:
Seven:~ Seven$ adb root
restarting adbd as root
Seven:~ Seven$ adb shell
root@localhost:/ #
命令实行前后的区别就在于实行后具备了root权限,之后就可以实行你想实行的指令。