System how to root the terminal app ability

Source: Internet
Author: User

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

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.