system_server

886 views
Skip to first unread message

raja

unread,
Nov 21, 2013, 6:02:48 AM11/21/13
to android-...@googlegroups.com
in the ANDROID KitKat source code I did not find system_server code in

Source Code path in KK
frameworks/base/cmds/system_server
can someone give me some idea on where it is present in the KK source code
I failed to get the path by doing grep.

What it does?
can someone give me some idea on what system_server does.

Durgadoss Ramanathan

unread,
Nov 21, 2013, 10:13:42 AM11/21/13
to android-...@googlegroups.com
You can find the SystemServer code in
frameworks/base/services/java/com/android/server/SystemServer.java

Mainly, SystemServer starts various Services like Battery Service, Power Manager Service etc,
which play a key role in Android. Googling for "Android system services" will provide you with enough info to start with.

Thanks,
Durga


--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-platfo...@googlegroups.com.
To post to this group, send email to android-...@googlegroups.com.
Visit this group at http://groups.google.com/group/android-platform.
For more options, visit https://groups.google.com/groups/opt_out.



--
Regards
Durgadoss

SIDDHANT GOPAL PASARI

unread,
Nov 21, 2013, 11:09:04 AM11/21/13
to android-...@googlegroups.com
Raja Sir:) Can You Send Me the Source Code of the Android KitKat. Thanking you In Anticipation



On Thu, Nov 21, 2013 at 4:32 PM, raja <raja...@gmail.com> wrote:

--

shridutt kothari

unread,
Nov 22, 2013, 3:30:33 AM11/22/13
to android-...@googlegroups.com
Hi Raja,

frameworks/base/cmds/system_server is removed in July mid, And as per the commit logs it was removed because system server is always forks from Zygote so Android no longer need the system_server executable which was probably broken anyhow. This makes the initialization sequence slightly more intelligible.

So now there's only /frameworks/base/services/java/com/android/server/SystemServer.java is there,
Which is directly forked from Zygote i.e from here : http://androidxref.com/4.4_r1/xref/system/core/rootdir/init.rc#486

Thanks,
Shridutt Kothari,
Impetus Infotech Ltd.

Ron M

unread,
Nov 27, 2013, 11:54:07 AM11/27/13
to android-...@googlegroups.com
.../cmds/system_server has been dead code for a while, and the invocation of the code at SystemServer.java has been
in service zygote (i.e. init -->  init.rc --> app_process  ) for ages (definitely since gingerbread).
I am actually pretty sure that it hasn't changed at all since the first public versions of Android, except for some very minor change
of adding user/group permission (git log/blame/  system/core/root/init.rc  to justification in history).
AFAIK hardly anyone in google, or in the modern world had known what cmds/system_server is all about in the first place (probably some debugging measure, or something from prehistoric times), so it just found itself out of the tree on first chance.
Reply all
Reply to author
Forward
0 new messages