I have an executable in /system/bin which is compiled from a small C program.
I have root, and can run this executable successfully in Re explorer and Script Manager.
Tried init.d method to auto run this executable during boot, but system stuck at boot logo.So I gave it up.
Now I'm wondering how can I auto run executable after system boot in an easy way since I'm a newbee to Android programming?
P.S.
Tried Script Manager to run it as root during boot, but system booted without running it.
You can use
/init.rcfor that. Just read it and find a suitable place to start your program, add this line there:Then, at the end of this file, define
myserviceas a service that runs/system/bin/myexecutabeand which is disabled by default (only started when someone issuesstartcommand) and is not restarted when it dies (oneshot), like this: