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