latest because I want to debug the USB OTG thing, so that the USB port is occupied, so, although I am a project version, but cannot execute the ADB shell, resulting in unable to debug.
So I now a system terminal APK, program http://download.csdn.net/detail/zangcf/8172151, extract so file libexec.so, put to system/lib below, source code put to: /alps/vendor/mediatek/project_xxx/artifacts/out/target/product/project_xxx/system/lib. Place the source program files under the./alps/vendor/mediatek/project_xxx/artifacts/out/target/product/project_xxx/system/app/
Modify/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) {
& nbsp fprintf (stderr, "su:uid%d not allowed to su\n", myUID);
return 1;
}
*/
This section of code
In addition, modify Su's properties during post to 24775
in the source code to modify Init.rc, Add./alps/mediatek/config/mt6572/init.rc Add chmod 24755/system/xbin/su.
then recompile, and the prompt to execute Su,shell at the shell terminal from $, to #, indicates a successful switchover.
How to get root permissions in the system terminal app