Jump to content

How to run shell scripts at startup ?


Recommended Posts

Guest The Virus 2013
Posted

Hi all ! :)

I'm planning to develop an app which need to run a script at startup. I mean, when a user click on a button, the phone reboot and run a script before the system load.

How can I do that ?

Posted
Hi all ! :)

I'm planning to develop an app which need to run a script at startup. I mean, when a user click on a button, the phone reboot and run a script before the system load.

How can I do that ?

depends

shell scripts in /system/etc/init.d that are chmod 755, chown 0.2000 are executed at after init.rc is run

but you cannot write in this directory (without recovery), except you have s-off

but there is the possibility that you first put an script in recovery in init.d and this script runs scripts from another directory in say /data/userinit.d (which is writable)

there are scripts in roms at xda, search for userinit.d

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.