I have read a lots of articles regarding root. But I haven't found any specific information on what's the proccess and the steps that are required to grand root access on a device. For example. If I copy "su" script and install Superuser.apk, I immediately grant root access?

And last but not least, I want to program a temporary root application.(Root until device reboots) Does that even possible?

  • To the first question: No, you need a service (daemonsu, invoked by init.d, which has root access already) to manage root access, but the procedure isn't any more complicated than copying 2 additional files. To the second question: Yes this is possible, if you remove everything related to your rooting procedure on shutdown of the device. – GiantTree Jan 10 '16 at 11:31
  • Thanks for answering! Do you know any good way on how to invoke daemonsu or a how to get all this proccess done? Like a tutorial? – Captain Lemon Jan 10 '16 at 11:43
  • Not a tutorial, but it needs to be invoked during init, so putting a script into /system/etc/init.d will likely be enough to launch it. The hard part is: Make sure the kernel supports init.d and how do you even write to /system. – GiantTree Jan 10 '16 at 11:44
  • I see..what do you mean by "putting a script in init.d". What should this script contain? – Captain Lemon Jan 10 '16 at 11:50
  • Everything that is needed to invoke daemonsu. For example SuperSU's way: #!/system/bin/sh /system/xbin/daemonsu --auto-daemon &. This launches daemonsu in the background (&) with the parameter --auto-daemon. – GiantTree Jan 10 '16 at 11:53

Every phone model and manufacturer will have different processes for gaining root access. Make absolutely sure that you are following the specific instructions for the device, kernel and software version for the phone. Otherwise, you can easily "brick" your phone, effectively turning it into a paperweight.

That being said, here is a great resource for rooting Android devices.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.