Search code examples
androidbroadcastbootbootcompleted

boot_complete delay or location


I would like to know if there is a way to delay the boot_complete broadcast without harming the boot stages? i.e. where in the AOSP code can I find the part where the intent is being broadcasted so I could run another code prior to sending it?

Another option is the code location where the bootanimation is being stoped...

Can anyone help?

Thanx!


Solution

  • Look into SystemServer.java. When boot is completed, Zygote forks system server process, where all pre-boot initialization is made, and java services started. You can create your service and start it here.

    Edit: bootanimation is started also as a service from init.rc file, line 422.