ADB (2)-Get the highest permissions on the device root

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.