You're moving in the right direction. You need to check the sources for su.c The only problem that you can face is how to run your program as root. To do this you need to set SUID sticky bit for the executable of your application. To do this you need to modify system/core/include/private/android_filesystem_config.h file (structure android_files[]), for instance for su program you can see how this bit is set:
Am I missing something? In particular, running it as root in the Androidsdoes not make the stuff in Linux computers (where ST runs as a regularuser, of course) more vulnerable or exposed. And were the android deviceto be stolen, it would be about as vulnerable rooted or unrooted (exceptfor the no-encryption-possible issue).
Rooting your Android phone makes you a super user by getting your device free from earlier carrier restrictions. You can root android device with iRoot both by using PC and without PC. There are many advantages of rooting your phone, which will make you more confirmed about rooting your phone like:
When you are going to root your android device with the most effective android rooting tool on your android device, however, you'll be able to choose the most effective and also the best suited rooting app for your android. In my expertise, there are unlimited android rooting applications within the rooting app market, and a few of them are most usable however additionally harmful to my android devices. If you're fed up with selecting the correct fitting root app to your android mobiles, I will suggest you use the iRoot Root Application because it is the most trustworthy and reliable rooting application for you. it's a well-liked technique for bypassing any device restrictions on your android device to create all the modifications on your android.
According to the developers of the android rooting tools to the global market, they're continuously too busy to create the most effective android version supported rooting app to the android users. In simple, rooting is that the only way to bypass all the android restrictions imposed by the company. so all the android users are willing to get these superb skills on their handsets. Indeed, you'll be able to manage all the complete system changers with no limits by the manufacturer. Also, you'll be able to install custom ROMs or Stock ROMs on your android as you want. additionally, if you need to get rid of any pre-installed app on your android rooting is that the best technique to do that only 1 click. without using an android rooting tool, you'll take away any restrictions on your android. 1st of all, you need to use the 100 percent secure android rooting app on your android. within the rooting app market, you'll be able to see the various kinds of rooting apps like Kingo Root, vRoot, iRoot Root Application, Root Genius, Kingroot, Stump Root, SuperSu, and more. consistent with my best experience, I will suggest you download the iRoot Root Application because of the best rooting app for your android.
I am the most effective use of the iRoot App on my android to get root privileges. Indeed, with the iRoot Root Application, I can root access to my android with a one-click answer. as a result of iRoot App is the best one-click android rooting application that comes as each APK and computer versions. it's compatible with the 10000+ android device all around the world. the great news is currently you do not need to have any Windows computer to run this smart application. as a result of it comes as the APK direct download package to your android.
As the best vRoot app use, you'll find the most recent version of this tool. but iRoot is that the latest version of this iRoot Root Application. It means that iRoot is the development version of the vRoot app by the team Mgyun. For that matter, iRoot Root Application is the latest version that comes because of the ideal rooting app for all android users.
Although the above mentioned apps are one of the best apps to root android without PC, however, if for some reason you are still unable to perform Android root, i.e., say you can't install custom recovery or your device is not supported by the software, there is still another way to give it a shot. You can also try rooting using a PC. PC rooting doesn't require you to install apk files on your Android phone. Instead you install software on your PC and connect your Android device to the software to perform root.
Unlike Kingroot or Framaroot, iRoot requires internet connection to root your Android device. So, after installing the iroot.apk file on your device, you will need to enable internet connection before using it for rooting your device.
35fe9a5643