OpenSource For You

System services start-up

-

P. After bootJup, the Linux kernel starts the init process, which is the grandJdadd­y of all processes in the system, with a PfD = N. The following steps explain the startJup procedure until the Home screen shows upW N. A set of native services Ewritten in CLCHHF like vold, netd, installd and debuggerd are started. These services have root permission. O. Then the Service Manager and Media Server are started. These run with the system’s permission. init then starts the app_process (frameworks/base/ cmds/app_process/app_main.cpp). This launches the ‘zygote’ process, in a Dalvik sj via frameworks/ base/core/jni/AndroidRun­time.cpp and frameworks/ base/core/java/com/android/internal/os/ZygoteInit. java. This zygote process then becomes the parent of every applicatio­n. a. then the zygote starts, it has an active instance of the Dalvik sj that contains the classes required by the applicatio­ns preJloaded in its address space. fn Android, each applicatio­n runs its own Dalvik sj. then an applicatio­n is started, zygote ‘forks’ a child process Ewhich is the app processF; both the zygote and the app processes use the same sj instance until the child does a ‘write’ xmodifies the dataz, in which case a copy of the Dalvik sj is created, for the child. This ensures a faster startJup time for the applicatio­ns. Thus the zygote becomes the parent for all the applicatio­ns. b. te can actually check this in the adb shell using the R. This system_server process then starts all the system services. These services run as threads inside the system_server SUoFeVV. 7hLV FDn be veULfied by UunnLnJ Whe IoOOowLnJ command in the adb shell. This command lists the names of the threads running as part of the system_server process.

Newspapers in English

Newspapers from India