I was looking at some codes, and found this code
{ "su", "-c", "reboot" }
I know that this will make your phone to reboot, because it ask for su first then reboot, but I don't know what that -c means.
Its like an enter button on the keyboard? also could I add as much ones as I want? something like
{ "su", "-c", "code", "-c", "code", "-c", "code" }
Thanks
-c
is a flag that tells the su
command to execute the command following -c
. So in this case, it is simply, as root, telling the system to reboot.