I need to start a service at boot time in android i don't use broadcast receiver , i wrote a service in c++ because i need access driver libusb layer to communicate with my extrernal device ,the service is working properly if i started manualy,if i want to start the service at boot time means i need to edit inir.rc file in android if i do that it also working good .but the problem is i cant edit the init.rc in all devices. i put my service in Sytem/bin location and edit the init.rc file as follow
service sampleservice/system/bin/sampleservice
oneshot
disable
for manualy i started the service from terminal like this
#./system/bin/sampleservice
but i cant start the service at each and every time when system restarts do have any idea to start the service at boot time with out edit init.rc