If it's important, I'm trying to get an instance of the com.android.internal.telephony.Phone class, using the PhoneFactory (getting them with reflection).Getting reflection out of the way, it would look something like this:
The su command does not change the identity/permission of the process calling it - what it does is let you launch a child process with elevated permissions. But its not very clear how you could launch an android application that way (possibly by using app_process - but really installing as a system app is the proper way to do it).
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:
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:
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.
760c119bf3