The Running Services user interface uses getRunningAppProcesses , getProcessMemoryInfo, and getRunningServices .
Please note that this only means that Java processes are controlled by a high-level system; getRunningAppProcesses will not return information about low-level processes of the daemon.
There is information in the kernel about open files under / proc, but you cannot get information about another process unless you use it as root.
Also, all current processes are under / proc, but keep in mind that / proc is not part of the Android SDK, and there is no guarantee that your application will work on all devices or versions of the platform if you use this. / proc is a private implementation.
hackbod
source share