Differences between the root permission and USB adb permission of android apk

Source: Internet
Author: User

Differences between the root permission and USB adb permission of android apk
USB adb permission means that when adb connects to the mobile phone, the permission of the daemon adbd in the mobile phone is root, so that its sub-process also has root permission. Generally, If adb shell sees:
Android 4.0 and later versions:
C: \ Users \ mtk29 \ Desktop> adb shell
Root @ android :/#
Android 2.3:
C: \ Users \ mtk29 \ Desktop> adb shell


This indicates that the adb connection has the root permission. On the contrary, if the value is $, it indicates the shell permission.
Android APK itself does not have the root permission. To enable the root permission, you must use a process with the root permission or a file with the s bit. Currently, the more common method is, after the mobile phone is root, su is built into the system/bin, and then the common APP can use the su command to achieve root permission switching.
Some colleagues on the network have modified the su command and used an APK to control the permission control of the su command.
Such as the common Superuser: http://androidsu.com/superuser/ so that you can manually control the use of root permissions. (Because it has not been updated for a long time, it can only be used for ICS and earlier versions ))
SuperSU: http://forum.xda-developers.com/showthread.php? T = 1538053 (fast update, recommended)

To sum up, if adb already has the root permission, it would be easy for apk to exercise the root permission. For example, in JB or earlier versions:
Adb remount
Adb push su/system/bin
Adb push Superuser.apk/system/app
Adb shell chmod 0644/system/app/Superuser.apk
Adb shell chmod 6755/system/bin/su
Adb reboot

Related Article

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.