This looks like a general concern of rookie Android system players who have just rooted their phones. The most prevalent method may be throwing your script into
/system/etc/init.d. If the ROM supports
init.d then Voila but that's not always the case. So
How can I run my custom script at each startup? What's the user/group my script will be running as if I use your solution?
We welcome all kinds of solutions.