Sometimes we do not take effect when we use the ADB command, so we need to root the device so that we can execute high-privilege commands at will.
An example shows:
Two specific explanations:
Run ADBD with root privileges
ADB operating principle is the PC side of the ADB server and the mobile phone daemon adbd Establish a connection, and then the PC side of the ADB client through the ADB server forwarding command, ADBD receive command after parsing run.
So if ADBD is executed with normal permissions, some commands that require root permission cannot be executed directly adb xxx . At this point can adb shell then su execute the command, you can also let adbd with root permissions to execute, this can be arbitrary execution of high-privilege commands.
Now run again adb shell and see if the command-line prompt is turned # ?
Some phone root can not be adb root command to let adbd with root permission to execute, such as some models of Samsung, will be prompted adbd cannot run as root in production builds , you can install ADBD Insecure, and then adb root try.
Accordingly, you can use the command if you want to restore adbd to non-root permissions adb unroot .
ADB (2)-Get the highest permissions on the device root