I have created a simple script file "exampleser.sh" in system/core/rootdir/bin/ and added few lines in system/core/rootdir/init.rc file:
on property:sys.boot_complete=1 start example
service example /system/bin/sh /system/bin/exampleser.sh class core user root oneshot
And did make at the root directory of android source code, make is successfully done, but after flashing the service is not running. It is not shown in the adb shell, and the file is not added to /system/bin/ path of the device.
Can anyone please help me what to do? Or the process on how to add the service to the source code?