We have moved to a new Sailfish OS Forum. Please start new discussions there.
0

How to list running android processes?

asked 2014-02-02 23:54:09 +0300

sunkan gravatar image

I have noticed that I can see the android processes that are running by running: ps -eF | grep ^100

That works since they run as separate users that are not in the passwd file But is there a proper way to list these processes?

edit retag flag offensive close delete

Comments

There are some Android software components and processes that make up the hardware adaptation but as you're talking about processes with a UID > 10000 I'm guessing you mean Alien Dalvik. As per the Android Security Guide Android apps all run as their own UID and those will be unique per-device and ostensibly based upon the order in which you installed the apps (I'm guessing the Dalvik components themselves are probably the same on different Jollas however). In terms of 'listing' them your ps(1) command has done that. In terms of actually seeing what the runtime refers to them I have no idea if that's possible from 'outside' but should be possible from inside with one or more system process apps from Yandex/Play/F-Droid etc. The process name (CMD column in ps(1)) is usually a good indicator of the function however. What information in particular are you after?

steph ( 2014-02-03 00:23:04 +0300 )edit

I just thought that my way of listing the processes (outside of the android system) was a bit coarse. Using the fact that systemd launches processes within separate control groups (that then are inherited by other processes) makes that a perfect way to check. (thanks sauron)

sunkan ( 2014-02-03 08:24:55 +0300 )edit

1 Answer

Sort by » oldest newest most voted
1

answered 2014-02-03 00:16:54 +0300

sauron gravatar image

Hi, i think all android processes depends by aliendalvik.service, sailfishOS use systemd so typing systemd-cgls you will be able to see all you need Bye

edit flag offensive delete publish link more

Comments

Ah, control groups.. I forgot about them, this was exactly what I wanted.

sunkan ( 2014-02-03 08:13:39 +0300 )edit
Login/Signup to Answer

Question tools

Follow
1 follower

Stats

Asked: 2014-02-02 23:54:09 +0300

Seen: 2,065 times

Last updated: Feb 03 '14