The difference between root privileges and USB adb permissions for Android APK

Source: Internet
Author: User

The USB adb privilege means that when the ADB connects to the phone, the daemon in the phone adbd the permissions of the root, and its child processes also have root privileges, usually if the ADB shell sees:
Android 4.0 later version:
C:\USERS\MTK29\DESKTOP>ADB Shell
[Email protected]:/#
Android 2.3 Version:
C:\USERS\MTK29\DESKTOP>ADB Shell


That indicates that the ADB connection is root, and that if you see a $ that is the shell permission
Android apk itself is not rooted, if you want to enable root permissions, then you have to rely on the root of the process or a file with S bit, the current method is more common, after the phone root, the built-in Su to System/bin, The normal app can then use the SU command to reach the root switch.
On the network already has the colleague to modify the SU command, and through an apk to control the SU command the permission control.
such as the common superuser:http://androidsu.com/superuser/so that people can control the use of root permissions. (not updated for a long time, only for ICS and previous versions)
supersu:http://forum.xda-developers.com/showthread.php?t=1538053 (updated fast, recommended)

In summary, if the ADB already has root authority, then it is very easy to let the apk exercise root privileges. For example, in the JB version or the previous version:
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

The difference between root privileges and USB adb permissions for Android APK

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.