How to find pid of Battery Service? I am able to find the pid of System server using ps. And I can find info about the system server process through /proc/pidof system_server. But I dont see (or unable to find) the pid of the other Android System Services like Battery Service, etc..

Is there any way to find the pid of Android System Services ?
There are quite a few apps that can show the PID of running apps and services.

One which I use to find a lot of info about what's going on in my phone is the Android System Info app, you can see the PIDs of some built-in services in this screenshot: