Init.rc documentation for ice cream sandwich

Init behavior. *. Rc in Ice Cream Sandwich seems to have changed. Previously, I could start the service at boot with the following entry:

service my_kool_service /system/bin/my_kool_service

I found this post that gave a hint to change to:

service my_kool_service /system/bin/my_kool_service
    class main

So what is it class mainand why is it needed?

This documentation does speak of an class“option,” but does not provide details of the default behavior or observed changes.

Is the current ICS initialization language documented anywhere, formally or otherwise?

Thank.

+6
source share
3 answers

, init.rc readme. class service class_start class_stop.

, core, main late_start Android 3.0 late_start (. " Android" " Android 3.0"). , :

. , . late_start , / .

+4

, , start_class. . 10 , , start_class, 10 , . ...

. init.rc. https://github.com/android/platform_system_core/blob/master/init/readme.txt

, ..:)

+3

- class main - . , class late-start. .

+1

All Articles