Recently due to debugging USB OTG freak stuff. This causes the USB port to be occupied, this entry. Although I am the project version number, but cannot run ADB shell, it is not possible to debug that.
So, I am now a system terminal APK, Planning http://download.csdn.net/detail/zangcf/8172151, unpacking extract so file libexec.so, put to system/lib below, source stacking to:/ Alps/vendor/mediatek/project_xxx/artifacts/out/target/product/project_xxx/system/lib.
Put the source program files under the./alps/vendor/mediatek/project_xxx/artifacts/out/target/product/project_xxx/system/app/
Change/MEDIA/ZANGCF/WORKS/ANDROID/MTK/6572/CARPAD/ALPS_ADD_ICS_ETHERNET/SYSTEM/EXTRAS/SU/SU.C, delete
/*
myUID = Getuid ();
if (myuid! = Aid_root && myUID! = Aid_shell) {
fprintf (stderr, "su:uid%d not allowed to su\n", myUID);
return 1;
}
*/
This section of code
In addition, the properties of SU are changed to 24775 during post
Change init.rc in the source code, join./alps/mediatek/config/mt6572/init.rc join chmod 24755/system/xbin/su.
And then compile it again. and ability Shell terminal to run Su,shell from tip $, change #, which represents a successful switchover.
Copyright notice: This article Bo Master original articles, blogs, without consent may not be reproduced.
System how to root the terminal app ability