Hi, You may want to write a JNI layer for this and have an activity to load the JNI shared lib. You need to implement a broadcast receiver for "BOOT_COMPLETED" intent to start this activity... Makes sense?
And regarding accessing libusb from JNI, I presume that the respective device node is configured with necessary permissions. Warm Regards, Anil On Thu, Feb 14, 2013 at 2:35 PM, Mr cool <[email protected]> wrote: > 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 > > -- > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > --- > You received this message because you are subscribed to the Google Groups > "Android Developers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

