adb的root权限是在system/core/adb/adb.c中控制。
主要根据ro.secure 以及 ro.debuggable 等system property来控制。
默认即当ro.secure为0时,即开启root 权限,为1时,再根据ro.debuggable 等选项来确认是否可以用开启root 权限。为此如果要永久性开启adb 的root 权限,有两种修改的方式: